Erel Segal-Halevi
Erel Segal-Halevi

Reputation: 36793

"ERROR: py37: InterpreterNotFound: python3.7" when running tox from github

I have a project on GitHub with a tox.ini file:

[tox]
envlist = py3

[testenv]
deps = -rrequirements.txt
commands =
    pytest --doctest-modules

It works well. But when I replace "py3" with "py37", it fails with the error:

ERROR:  py37: InterpreterNotFound: python3.7

As far as I know, tox should support Python 3.7. Is this a problem specifically with tox on github?

Upvotes: 11

Views: 14305

Answers (2)

davidmpaz
davidmpaz

Reputation: 1387

From a combination of the answers and resources provided here. What I did was:

  • through pyenv I did install all python version I needed.
  • I did symlinked all of them in a bin folder which was already in my PATH. Symlinks already were named the same as tox was expecting: python3.7, python3.8 and pypy3
  • no renaming in tox was required

Upvotes: 0

Deepak Tatyaji Ahire
Deepak Tatyaji Ahire

Reputation: 5311

In the tox.ini file, write python3.7 instead of py37 and you will see that it works.

All credits to the Github user glinskyc for his thread on Github issues.

Also make sure that you are using the latest version for tox, that is 3.23.1

Upvotes: 17

Related Questions