<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I'm trying to use tox from python2 to test a python3 environment. 
    But I get an exception like the following:<br>
    <br>
    <blockquote type="cite"><tt>rsyring@loftex:~/projects/blaze/blazeutils-src$
        python -m virtualenv --python python3 ~/tmp/testvenv</tt><tt><br>
      </tt><tt>Running virtualenv with interpreter
        /home/rsyring/bin/python3</tt><tt><br>
      </tt><tt>Traceback (most recent call last):</tt><tt><br>
      </tt><tt>  File
        "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 14,
        in &lt;module&gt;</tt><tt><br>
      </tt><tt>    import shutil</tt><tt><br>
      </tt><tt>  File "/opt/python34/lib/python3.4/shutil.py", line 11,
        in &lt;module&gt;</tt><tt><br>
      </tt><tt>    import fnmatch</tt><tt><br>
      </tt><tt>  File "/opt/python34/lib/python3.4/fnmatch.py", line 15,
        in &lt;module&gt;</tt><tt><br>
      </tt><tt>    import functools</tt><tt><br>
      </tt><tt>  File "/opt/python34/lib/python3.4/functools.py", line
        21, in &lt;module&gt;</tt><tt><br>
      </tt><tt>    from collections import namedtuple</tt><tt><br>
      </tt><tt>  File
        "/opt/python34/lib/python3.4/collections/__init__.py", line 17,
        in &lt;module&gt;</tt><tt><br>
      </tt><tt>    from reprlib import recursive_repr as _recursive_repr</tt><tt><br>
      </tt><tt>  File
        "/usr/local/lib/python2.7/dist-packages/reprlib.py", line 3, in
        &lt;module&gt;</tt><tt><br>
      </tt><tt>    from repr import *</tt><tt><br>
      </tt><tt>ImportError: No module named 'repr'</tt><br>
    </blockquote>
    <br>
    There is a bug for this in virtualenv: <br>
    <br>
        <a class="moz-txt-link-freetext" href="https://github.com/pypa/virtualenv/issues/625">https://github.com/pypa/virtualenv/issues/625</a><br>
    <br>
    So, I realize I could use `python3 -m virtualenv` if I was running
    the command myself.  But, tox is making the call to virtualenv.<br>
    <br>
    This was working the last time I tested it but has now broken.  I'm
    guessing that is because I upgraded tox or virtualenv?<br>
    <br>
    Any pointers welcome as to the best way to resolve this issue now?<br>
    <br>
    Thanks in advance.<br>
    <div class="moz-signature"><br>
      <b>Randy Syring</b><br>
      <small>Husband | Father | Redeemed Sinner</small><br>
      <br>
      <i><small>"For what does it profit a man to gain the whole world<br>
          and forfeit his soul?" (Mark 8:36 ESV)</small></i>
      <br>
      <br>
    </div>
  </body>
</html>