Menu

#1 Does not work on Python 3.x

unread
nobody
None
blocker
enhancement
2020-01-23
2020-01-23
No

We use this tox plugin to test our driver API bindings on both 32-bit and 64-bit Windows. With the EOL 2.x looming ahead, we need to be able to use this tox plugin from Python 3.x.

It installs ok but it raises when using the --scan option:

[C:\Users\msilva\Documents\GitHub\nimi-python]c:\Python37\python -m tox --scan c:/python*/python.exe c:/python*/python3.exe
Traceback (most recent call last):
File "C:\Python37\lib\runpy.py"line 193in _run_module_as_main
"__main__"mod_spec)
File "C:\Python37\lib\runpy.py"line 85in _run_code
exec(coderun_globals)
File "C:\Python37\lib\site-packages\tox\__main__.py"line 4in 
tox.cmdline()
File "C:\Python37\lib\site-packages\tox\session\__init__.py"line 44in cmdline
main(args)
File "C:\Python37\lib\site-packages\tox\session\__init__.py"line 64in main
config = load_config(args)
File "C:\Python37\lib\site-packages\tox\session\__init__.py"line 80in load_config
config = parseconfig(args)
File "C:\Python37\lib\site-packages\tox\config\__init__.py"line 266in parseconfig
pm.hook.tox_configure(config=config) # post process config object
File "C:\Python37\lib\site-packages\pluggy\hooks.py"line 286in __call__
return self._hookexec(selfself.get_hookimpls()kwargs)
File "C:\Python37\lib\site-packages\pluggy\manager.py"line 92in _hookexec
return self._inner_hookexec(hookmethodskwargs)
File "C:\Python37\lib\site-packages\pluggy\manager.py"line 86in 
firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
File "C:\Python37\lib\site-packages\pluggy\callers.py"line 208in _multicall
return outcome.get_result()
File "C:\Python37\lib\site-packages\pluggy\callers.py"line 80in get_result
raise ex[1].with_traceback(ex[2])
File "C:\Python37\lib\site-packages\pluggy\callers.py"line 187in _multicall
res = hook_impl.function(*args)
File "C:\Python37\lib\site-packages\tox_globinterpreter.py"line 314in tox_configure
return global_interpreter_plugin.tox_configure(config)
File "C:\Python37\lib\site-packages\tox_globinterpreter.py"line 237in tox_configure
self.scan()
File "C:\Python37\lib\site-packages\tox_globinterpreter.py"line 255in scan
il.write(file_name)
File "C:\Python37\lib\site-packages\tox_globinterpreter.py"line 129in write
assert ' ' not in base_name
TypeErrora bytes-like object is requirednot 'str'

Since this project has been untouched for a couple of years, we are wondering if you are accepting PRs and would republish to PyPI.

(originally posted on 2019-09-12 at 19:57:44 by Marcos Kirsch <Marcos Kirsch@bitbucket>)

Discussion


Log in to post a comment.