Closed
Description
When running tox
or tox -v
on my project, I get the UnicodeDecodeError
below, but not if I run tox -vv
.
How to reproduce?
I can reproduce with this toy example: https://github.com/ferencberes/tox-example
System
- Windows 10 Build 18362
tox --version
: 3.14.6python --version
: Python 3.7.2
The error I get:
GLOB sdist-make: I:\Projects\Python\tox-example\setup.py
tox_example_env create: I:\Projects\Python\tox-example\.tox\tox_example_env
tox_example_env installdeps: pytest, numpy, networkx
tox_example_env inst: I:\Projects\Python\tox-example\.tox\.tmp\package\1\tox-example-0.0.1.zip
___________________________________________________________________________________________ summary ___________________________________________________________________________________________
tox_example_env: commands succeeded
ERROR: tox_2-7-10: undefined
Traceback (most recent call last):
File "i:\languages\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "i:\languages\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "I:\Languages\Python\Python37\Scripts\tox.exe\__main__.py", line 9, in <module>
File "i:\languages\python\python37\lib\site-packages\tox\session\__init__.py", line 44, in cmdline
main(args)
File "i:\languages\python\python37\lib\site-packages\tox\session\__init__.py", line 68, in main
exit_code = session.runcommand()
File "i:\languages\python\python37\lib\site-packages\tox\session\__init__.py", line 194, in runcommand
return self.subcommand_test()
File "i:\languages\python\python37\lib\site-packages\tox\session\__init__.py", line 222, in subcommand_test
run_sequential(self.config, self.venv_dict)
File "i:\languages\python\python37\lib\site-packages\tox\session\commands\run\sequential.py", line 18, in run_sequential
installpkg(venv, venv.package)
File "i:\languages\python\python37\lib\site-packages\tox\session\commands\run\sequential.py", line 46, in installpkg
venv.installpkg(path, action)
File "i:\languages\python\python37\lib\site-packages\tox\venv.py", line 374, in installpkg
self.install_pkg(sdistpath, action, "inst")
File "i:\languages\python\python37\lib\site-packages\tox\venv.py", line 368, in install_pkg
self._install(target, extraopts=pip_flags, action=action)
File "i:\languages\python\python37\lib\site-packages\tox\venv.py", line 459, in _install
self.run_install_command(packages=packages, options=options, action=action)
File "i:\languages\python\python37\lib\site-packages\tox\venv.py", line 409, in run_install_command
env=env,
File "i:\languages\python\python37\lib\site-packages\tox\venv.py", line 576, in _pcall
report_fail=not is_test_command,
File "i:\languages\python\python37\lib\site-packages\tox\action.py", line 118, in popen
lines = out_path.read_text("UTF-8").split("\n")
File "i:\languages\python\python37\lib\site-packages\py\_path\common.py", line 171, in read_text
return f.read()
File "i:\languages\python\python37\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xeb in position 537: invalid continuation byte