Hello,<br><br>I am new to tox. I read to doc at <a href="http://tox.testrun.org/en/latest/example/pytest.html">http://tox.testrun.org/en/latest/example/pytest.html</a> to get started but I am stuck with an error.<br><br>I have a simple Python project with a layout like that:<br>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">TestPython</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    src</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        calc.py</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        setup.py</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        tox.ini</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    tests</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        test_calc.py</span><br><br><br>My setup.py and tox.ini are as follow:<br><br>setup.py:<br><span style="font-family: courier new,monospace;">from distutils.core import setup</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">setup(name=&#39;calc&#39;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">      version=&#39;1.0&#39;,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">      py_modules=[&#39;calc&#39;],</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">      )</span><br style="font-family: courier new,monospace;">
<br><br><br>tox.ini:<br><span style="font-family: courier new,monospace;">[tox]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">envlist = py26,py27</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[testenv]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">changedir=tests</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">deps=pytest</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">commands=</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  py.test \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    --basetemp={envtmpdir}  \ # py.test tempdir setting</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    []                        # substitute with tox&#39; positional arguments</span><br style="font-family: courier new,monospace;" clear="all"><br><br>Calling tox from src, I have this error:<br>
<br><span style="font-family: courier new,monospace;">_________________________________________________ [tox sdist] __________________________________________________</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[TOX] ***creating sdist package</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[TOX] /home/pierreth/Workspace/TestPython/src$ /usr/bin/python2.7 setup.py sdist --formats=zip --dist-dir .tox/dist &gt;.tox/log/0.log</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[TOX] ***copying new sdistfile to &#39;/home/pierreth/.tox/distshare/calc-1.0.zip&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">______________________________________________ [tox testenv:py26] ______________________________________________</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[TOX] ***creating virtualenv py26</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[TOX] /home/pierreth/Workspace/TestPython/src/.tox$ /usr/local/bin/python2.6 ../../../../../../usr/local/lib/python2.7/site-packages/tox-1.1-py2.7.egg/tox/virtualenv.py --distribute --no-site-packages py26 &gt;py26/log/0.log</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[TOX] ERROR: invocation failed, logfile: /home/pierreth/Workspace/TestPython/src/.tox/py26/log/0.log</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[TOX] ERROR: /home/pierreth/Workspace/TestPython/src/.tox$ /usr/local/bin/python2.6 ../../../../../../usr/local/lib/python2.7/site-packages/tox-1.1-py2.7.egg/tox/virtualenv.py --distribute --no-site-packages py26 &gt;py26/log/0.log                                                                                                            </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/usr/local/bin/python2.6: can&#39;t find &#39;__main__.py&#39; in &#39;../../../../../../usr/local/lib/python2.7/site-packages/tox-1.1-py2.7.egg/tox/virtualenv.py&#39;                                                                             </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">                                                                                                                </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[TOX] ERROR: InvocationError: /usr/local/bin/python2.6 ../../../../../../usr/local/lib/python2.7/site-packages/tox-1.1-py2.7.egg/tox/virtualenv.py --distribute --no-site-packages py26 (see /home/pierreth/Workspace/TestPython/src/.tox/py26/log/0.log)                                                                                       </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">______________________________________________ [tox testenv:py27] ______________________________________________</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[TOX] ***creating virtualenv py27</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[TOX] /home/pierreth/Workspace/TestPython/src/.tox$ /usr/bin/python2.7 ../../../../../../usr/local/lib/python2.7/site-packages/tox-1.1-py2.7.egg/tox/virtualenv.py --distribute --no-site-packages py27 &gt;py27/log/0.log</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[TOX] ERROR: invocation failed, logfile: /home/pierreth/Workspace/TestPython/src/.tox/py27/log/0.log</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[TOX] ERROR: /home/pierreth/Workspace/TestPython/src/.tox$ /usr/bin/python2.7 ../../../../../../usr/local/lib/python2.7/site-packages/tox-1.1-py2.7.egg/tox/virtualenv.py --distribute --no-site-packages py27 &gt;py27/log/0.log  </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/usr/bin/python2.7: can&#39;t find &#39;__main__&#39; module in &#39;../../../../../../usr/local/lib/python2.7/site-packages/tox-1.1-py2.7.egg/tox/virtualenv.py&#39;                                                                               </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">                                                                                                                </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[TOX] ERROR: InvocationError: /usr/bin/python2.7 ../../../../../../usr/local/lib/python2.7/site-packages/tox-1.1-py2.7.egg/tox/virtualenv.py --distribute --no-site-packages py27 (see /home/pierreth/Workspace/TestPython/src/.tox/py27/log/0.log)                                                                                             </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">________________________________________________ [tox summary] _________________________________________________</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[TOX] ERROR: py26: InvocationError: /usr/local/bin/python2.6 ../../../../../../usr/local/lib/python2.7/site-packages/tox-1.1-py2.7.egg/tox/virtualenv.py --distribute --no-site-packages py26 (see /home/pierreth/Workspace/TestPython/src/.tox/py26/log/0.log)                                                                                 </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[TOX] ERROR: py27: InvocationError: /usr/bin/python2.7 ../../../../../../usr/local/lib/python2.7/site-packages/tox-1.1-py2.7.egg/tox/virtualenv.py --distribute --no-site-packages py27 (see /home/pierreth/Workspace/TestPython/src/.tox/py27/log/0.log)   <br>
<br><br><span style="font-family: arial,helvetica,sans-serif;">Do you have an idea how I can fix this problem?</span>                                                                                 </span><br style="font-family: courier new,monospace;">
-- <br><br><br>A+<br><br>-------------<br><font color="#888888"><font style="color:rgb(51, 102, 255)" size="2"><span style="color:rgb(0, 0, 153)">Pierre Thibault<br></span></font><div style="color:rgb(51, 102, 255)"><font><font color="#888888"><font color="#888888"><font style="color:rgb(51, 102, 255)" size="2"><span style="color:rgb(0, 0, 153)"><img src="http://static.inky.ws/image/630/image.jpg"><br>
</span></font></font></font></font>Python Developer/Développeur Python<br>Montréal, QC<br></div><div><i style="color:rgb(51, 102, 255)"><a href="mailto:pierre.thibault1@gmail.com" target="_blank">pierre.thibault1@gmail.com</a></i><br style="color:rgb(51, 102, 255)">
<span style="color:rgb(51, 102, 255)">(514) 716-8350</span><br></div><div></div><div><font><font color="#888888"><font color="#888888"><font style="color:rgb(51, 102, 255)" size="2"><span style="color:rgb(0, 0, 153)"><br>
</span></font></font></font></font><img src="http://static.inky.ws/image/629/image.jpg"><font color="#888888"><font style="color:rgb(51, 102, 255)" size="2"><span style="color:rgb(0, 0, 153)"></span></font></font></div><div>
<br></div></font><br><br>