You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a python package with a lot of requirements from conda-forge and bioconda.
Whenever i run tox -e py37 i get a
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/pyparsing/core.py", line 1129, in parse_string
instring = instring.expandtabs()
AttributeError: 'LocalPath' object has no attribute 'expandtabs'
The complete stacktrace is here:
Stacktrace
```
(g2p-test) jules@framework:~/path/to/package/$ tox -e py37
.package create: /path/to/package/.tox/.package
.package installdeps: setuptools, wheel
Traceback (most recent call last):
File "/home/jules/miniconda3/envs/g2p-test/bin/tox", line 10, in
sys.exit(cmdline())
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/session/__init__.py", line 44, in cmdline
main(args)
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/session/__init__.py", line 69, in main
exit_code = session.runcommand()
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/session/__init__.py", line 197, in runcommand
return self.subcommand_test()
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/session/__init__.py", line 213, in subcommand_test
venv.package = self.hook.tox_package(session=self, venv=venv)
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/pluggy/_callers.py", line 60, in _multicall
return outcome.get_result()
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/package/__init__.py", line 16, in tox_package
session.package, session.dist = get_package(session)
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/package/__init__.py", line 29, in get_package
package = acquire_package(config, session)
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/package/__init__.py", line 40, in acquire_package
path = build_package(config, session)
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/package/builder/__init__.py", line 9, in build_package
return build(config, session)
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/package/builder/isolated.py", line 40, in build
canonicalize_name(Requirement(r.name).name) for r in package_venv.envconfig.deps
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/package/builder/isolated.py", line 40, in
canonicalize_name(Requirement(r.name).name) for r in package_venv.envconfig.deps
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/packaging/requirements.py", line 102, in __init__
req = REQUIREMENT.parseString(requirement_string)
File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/pyparsing/core.py", line 1129, in parse_string
instring = instring.expandtabs()
AttributeError: 'LocalPath' object has no attribute 'expandtabs'
```
Hey,
Tox / Tox-conda crashes with an ambiguous error.
I have a python package with a lot of requirements from conda-forge and bioconda.
Whenever i run
tox -e py37
i get aThe complete stacktrace is here:
Stacktrace
``` (g2p-test) jules@framework:~/path/to/package/$ tox -e py37 .package create: /path/to/package/.tox/.package .package installdeps: setuptools, wheel Traceback (most recent call last): File "/home/jules/miniconda3/envs/g2p-test/bin/tox", line 10, in sys.exit(cmdline()) File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/session/__init__.py", line 44, in cmdline main(args) File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/session/__init__.py", line 69, in main exit_code = session.runcommand() File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/session/__init__.py", line 197, in runcommand return self.subcommand_test() File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/session/__init__.py", line 213, in subcommand_test venv.package = self.hook.tox_package(session=self, venv=venv) File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/pluggy/_hooks.py", line 265, in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/pluggy/_manager.py", line 80, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/pluggy/_callers.py", line 60, in _multicall return outcome.get_result() File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/pluggy/_result.py", line 60, in get_result raise ex[1].with_traceback(ex[2]) File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/pluggy/_callers.py", line 39, in _multicall res = hook_impl.function(*args) File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/package/__init__.py", line 16, in tox_package session.package, session.dist = get_package(session) File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/package/__init__.py", line 29, in get_package package = acquire_package(config, session) File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/package/__init__.py", line 40, in acquire_package path = build_package(config, session) File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/package/builder/__init__.py", line 9, in build_package return build(config, session) File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/package/builder/isolated.py", line 40, in build canonicalize_name(Requirement(r.name).name) for r in package_venv.envconfig.deps File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/tox/package/builder/isolated.py", line 40, in canonicalize_name(Requirement(r.name).name) for r in package_venv.envconfig.deps File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/packaging/requirements.py", line 102, in __init__ req = REQUIREMENT.parseString(requirement_string) File "/home/jules/miniconda3/envs/g2p-test/lib/python3.7/site-packages/pyparsing/core.py", line 1129, in parse_string instring = instring.expandtabs() AttributeError: 'LocalPath' object has no attribute 'expandtabs' ```I have following
tox.ini
configuration:And my environment (and the one i want to use with tox-conda) is here:
As i'm now struggeling for several weeks i decided to ask if somebody has any idea.
Thanks a lot,
~Jules
The text was updated successfully, but these errors were encountered: