Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"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?

like image 415
Erel Segal-Halevi Avatar asked Jul 30 '20 19:07

Erel Segal-Halevi


1 Answers

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

like image 175
Deepak Tatyaji Ahire Avatar answered Nov 16 '22 03:11

Deepak Tatyaji Ahire