| Store | Cart

[Distutils] Virtualenv bug breaking tox runs

From: Randy Syring <ran...@thesyrings.us>
Wed, 15 Jul 2015 00:55:50 -0400
I'm trying to use tox from python2 to test a python3 environment. But I 
get an exception like the following:

> rsyr...@loftex:~/projects/blaze/blazeutils-src$ python -m virtualenv > --python python3 ~/tmp/testvenv> Running virtualenv with interpreter /home/rsyring/bin/python3> Traceback (most recent call last):>   File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line > 14, in <module>>     import shutil>   File "/opt/python34/lib/python3.4/shutil.py", line 11, in <module>>     import fnmatch>   File "/opt/python34/lib/python3.4/fnmatch.py", line 15, in <module>>     import functools>   File "/opt/python34/lib/python3.4/functools.py", line 21, in <module>>     from collections import namedtuple>   File "/opt/python34/lib/python3.4/collections/__init__.py", line 17, > in <module>>     from reprlib import recursive_repr as _recursive_repr>   File "/usr/local/lib/python2.7/dist-packages/reprlib.py", line 3, in > <module>>     from repr import *> ImportError: No module named 'repr'

There is a bug for this in virtualenv:

     https://github.com/pypa/virtualenv/issues/625

So, I realize I could use `python3 -m virtualenv` if I was running the 
command myself.  But, tox is making the call to virtualenv.

This was working the last time I tested it but has now broken.  I'm 
guessing that is because I upgraded tox or virtualenv?

Any pointers welcome as to the best way to resolve this issue now?

Thanks in advance.

*Randy Syring*
Husband | Father | Redeemed Sinner

/"For what does it profit a man to gain the whole world
and forfeit his soul?" (Mark 8:36 ESV)/


_______________________________________________
Distutils-SIG maillist  -  Dist...@python.org
https://mail.python.org/mailman/listinfo/distutils-sig

Recent Messages in this Thread
Randy Syring Jul 15, 2015 04:55 am
Marius Gedminas Jul 15, 2015 06:08 am
Ionel Cristian Mărieș Jul 15, 2015 06:42 am
Randy Syring Jul 16, 2015 03:20 pm
Messages in this thread