Skip to content

INTERNALERROR> ValueError: stat: path too long for Windows #3020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
UANEMESIS opened this issue Dec 12, 2017 · 9 comments
Closed

INTERNALERROR> ValueError: stat: path too long for Windows #3020

UANEMESIS opened this issue Dec 12, 2017 · 9 comments
Labels
type: bug problem that needs to be addressed

Comments

@UANEMESIS
Copy link

UANEMESIS commented Dec 12, 2017

INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\main.py", line 111, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\main.py", line 147, in _main
INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 745, in __call__
INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 339, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 334, in <lambda>
INTERNALERROR>     _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 614, in execute
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\main.py", line 170, in pytest_runtestloop
INTERNALERROR>     item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 745, in __call__
INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 339, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 334, in <lambda>
INTERNALERROR>     _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 613, in execute
INTERNALERROR>     return _wrapped_call(hook_impl.function(*args), self.execute)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 254, in _wrapped_call
INTERNALERROR>     return call_outcome.get_result()
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 279, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 265, in __init__
INTERNALERROR>     self.result = func()
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 613, in execute
INTERNALERROR>     return _wrapped_call(hook_impl.function(*args), self.execute)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 254, in _wrapped_call
INTERNALERROR>     return call_outcome.get_result()
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 279, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 265, in __init__
INTERNALERROR>     self.result = func()
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 614, in execute
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\runner.py", line 63, in pytest_runtest_protocol
INTERNALERROR>     runtestprotocol(item, nextitem=nextitem)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\runner.py", line 77, in runtestprotocol
INTERNALERROR>     reports.append(call_and_report(item, "call", log))
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\runner.py", line 161, in call_and_report
INTERNALERROR>     hook.pytest_runtest_logreport(report=report)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 745, in __call__
INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 339, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 334, in <lambda>
INTERNALERROR>     _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR>   File "c:\python36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 614, in execute
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "c:\python36\lib\site-packages\pytest_html\plugin.py", line 470, in pytest_runtest_logreport
INTERNALERROR>     self.append_failed(report)
INTERNALERROR>   File "c:\python36\lib\site-packages\pytest_html\plugin.py", line 280, in append_failed
INTERNALERROR>     self._appendrow('Failed', report)
INTERNALERROR>   File "c:\python36\lib\site-packages\pytest_html\plugin.py", line 252, in _appendrow
INTERNALERROR>     result = self.TestResult(outcome, report, self.logfile, self.config)
INTERNALERROR>   File "c:\python36\lib\site-packages\pytest_html\plugin.py", line 112, in __init__
INTERNALERROR>     self.append_extra_html(extra, extra_index, test_index)
INTERNALERROR>   File "c:\python36\lib\site-packages\pytest_html\plugin.py", line 163, in append_extra_html
INTERNALERROR>     os.path.isfile(content):
INTERNALERROR>   File "c:\python36\lib\genericpath.py", line 30, in isfile
INTERNALERROR>     st = os.stat(path)
INTERNALERROR> ValueError: stat: path too long for Windows```
@RonnyPfannschmidt
Copy link
Member

based on the traceback this is a bug in pytest-html , please report it there

cc @davehunt

@UANEMESIS
Copy link
Author

Please, clarify "please report it there". I should attach script?

@pytestbot pytestbot added the type: bug problem that needs to be addressed label Dec 12, 2017
@pytestbot
Copy link
Contributor

GitMate.io thinks the contributor most likely able to help you is @nicoddemus.

@RonnyPfannschmidt
Copy link
Member

yes, please resport the traceback to pytest-html, as far as i can tel lthe code in question checks if something is a fille without ensuring its a valid filename

@nicoddemus
Copy link
Member

yes, please resport the traceback to pytest-html, as far as i can tel lthe code in question checks if something is a fille without ensuring its a valid filename

Yep, perhaps it should put a try/except around that call and check for ValueError as well.

GitMate.io thinks the contributor most likely able to help you is @nicoddemus.

I wonder why... is GitMate clever enough to perhaps realize I usually take care of Windows issues? 🤔

@nicoddemus
Copy link
Member

@UANEMESIS pytest-html's issue tracker is here.

@davehunt
Copy link
Contributor

davehunt commented Dec 13, 2017 via email

@nicoddemus
Copy link
Member

Indeed there is: pytest-dev/pytest-html#136, thanks @davehunt.

I'm closing this issue then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug problem that needs to be addressed
Projects
None yet
Development

No branches or pull requests

6 participants
@davehunt @RonnyPfannschmidt @nicoddemus @pytestbot @UANEMESIS and others