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

ERROR: InterpreterNotFound: pypy #48

Closed
pytoxbot opened this issue Sep 17, 2016 · 7 comments
Closed

ERROR: InterpreterNotFound: pypy #48

pytoxbot opened this issue Sep 17, 2016 · 7 comments

Comments

@pytoxbot
Copy link

@pytoxbot pytoxbot commented Sep 17, 2016

On my Windows box I have pypy.exe in the path (i.e. typing pypy at the command line works), but if I add pypy to the tox envlist, I get

ERROR: InterpreterNotFound: pypy
@pytoxbot
Copy link
Author

@pytoxbot pytoxbot commented Sep 17, 2016

Original comment by @hpk42

I've applied your fix and added a test. thanks.

@pytoxbot
Copy link
Author

@pytoxbot pytoxbot commented Sep 17, 2016

Original comment by @tabo

I can confirm that this problem exist. Please review pull request #22 that solves this issue.

@pytoxbot
Copy link
Author

@pytoxbot pytoxbot commented Sep 17, 2016

Original comment by @hpk42

can you provide a download/repository including the tox.ini and a full output of a tox run?

@pytoxbot
Copy link
Author

@pytoxbot pytoxbot commented Sep 17, 2016

Original comment by @mchaput

Yes, it's definitely on the path. It's in the PATH variable and as I said I can type pypy on the command line to run it.

My [testenv] section //does// have deps=nose.

@pytoxbot
Copy link
Author

@pytoxbot pytoxbot commented Sep 17, 2016

Original comment by @hpk42

Usually tox finds pypy.exe if it is on the path. Are you sure it's on the PATH? As to the pasted output you should make sure to define deps=nose in your [testenv] section to avoid picking up global installation which might or might not be present.

@pytoxbot
Copy link
Author

@pytoxbot pytoxbot commented Sep 17, 2016

Original comment by @mchaput

No, same error. If I do

{{{
[testenv:pypy]
basepython=c:/pypy/pypy
}}}

it doesn't work either. But if I do

{{{
[testenv:pypy]
basepython=c:/pypy/pypy.exe
}}}

I get the following:

{{{
GLOB sdist-make: E:\My Dropbox\workspace\whoosh\setup.py
pypy sdist-reinst: E:\My Dropbox\workspace\whoosh.tox\dist\Whoosh-2.5.0.zip
WARNING:test command found but not installed in testenv
cmd: C:\Python27\Scripts\pip.EXE
env: E:\My Dropbox\workspace\whoosh.tox\pypy
Maybe forgot to specify a dependency?
pypy runtests: commands[0]
WARNING:test command found but not installed in testenv
cmd: C:\Python27\Scripts\nosetests.EXE
env: E:\My Dropbox\workspace\whoosh.tox\pypy
Maybe forgot to specify a dependency?
}}}

...then it proceeds to run the tests.

@pytoxbot
Copy link
Author

@pytoxbot pytoxbot commented Sep 17, 2016

Original comment by @hpk42

Does it work if you add a section like this:
{{{
#!python

[testenv:pypy]
basepython=pypy

}}}

?

@pytoxbot pytoxbot closed this Sep 17, 2016
@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant