I've just forked a Python project that was built with test driven development. I certainly see its value and I'm looking forward to making further use out of it.
I've installed all the required Python interpreters (see tox.ini
) using pyenv
. Running tox -r
, I end up with the following problem with 2.6 (I have other issues but those I can resolve):
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 20, in <module>
import distutils.sysconfig
ImportError: No module named distutils.sysconfig
ERROR: InvocationError: /home/wxl/.pyenv/shims/python2.6 /usr/lib/python2.7/dist-packages/virtualenv.py --setuptools --python /home/wxl/.pyenv/shims/python2.6 py26 (see /home/wxl/dev/git/blogofobe/.tox/py26/log/py26-0.log)
Clearly not an issue with the code so much as attempting to invoke the virtualenv
. The traceback seems to suggest it has something to do with missing modules, but those should be in the standard library, even in 2.6.
Interestingly, though if I run python2.6
and try to import distutils.sysconfig
it fails. On the other hand, if I switch to that version with pyenv shell 2.6.9
and try the same thing, it works fine.
What am I missing?
FWIW, I'm on Ubuntu 14.04 and:
$ python --version
Python 2.7.6
$ python2.7 --version
Python 2.7.6
$ python2.6 --version
Python 2.6.9