Skip to content
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

setting PYTHONPATH causes tox to crash #146

pytoxbot opened this issue Sep 17, 2016 · 1 comment

setting PYTHONPATH causes tox to crash #146

pytoxbot opened this issue Sep 17, 2016 · 1 comment


Copy link

@pytoxbot pytoxbot commented Sep 17, 2016

When I try to set the PYTHONPATH environment variable, tox fails with this traceback:

$ PYTHONPATH=../pypy tox
GLOB sdist-make: /Users/DasIch/Development/rply/
Traceback (most recent call last):
  File "/Users/DasIch/Development/dotfiles/virtualenv/envs/rply/bin/tox", line 9, in <module>
    load_entry_point('tox==1.6.1', 'console_scripts', 'tox')()
  File "/Users/DasIch/Development/dotfiles/virtualenv/envs/rply/lib/python2.7/site-packages/tox/", line 26, in main
    retcode = Session(config).runcommand()
  File "/Users/DasIch/Development/dotfiles/virtualenv/envs/rply/lib/python2.7/site-packages/tox/", line 301, in runcommand
    return self.subcommand_test()
  File "/Users/DasIch/Development/dotfiles/virtualenv/envs/rply/lib/python2.7/site-packages/tox/", line 433, in subcommand_test
    if self.setupenv(venv):
  File "/Users/DasIch/Development/dotfiles/virtualenv/envs/rply/lib/python2.7/site-packages/tox/", line 367, in setupenv
    commandpath = venv.getcommandpath("python")
  File "/Users/DasIch/Development/dotfiles/virtualenv/envs/rply/lib/python2.7/site-packages/tox/", line 85, in getcommandpath
    p = py.path.local.sysfind(name, paths=[self.envconfig.envbindir])
TypeError: sysfind() got an unexpected keyword argument 'paths'

What I would like tox to do is execute the commands in the testenv with PYTHONPATH as I've set it.


This comment has been minimized.

Copy link

@obestwalter obestwalter commented Feb 17, 2017

The code has changed significantly since this issue was created and I can't reproduce the error with a recent version, so closing this as resolved

@obestwalter obestwalter added this to backlog in Squash all the bugs Mar 10, 2017
@obestwalter obestwalter moved this from backlog to fixed in Squash all the bugs Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Squash all the bugs
2 participants
You can’t perform that action at this time.