New issue 129: py33 environment uses python2.7 virtualenv.py?
https://bitbucket.org/hpk42/tox/issue/129/py33-environment-uses-python27

Jorgen Schäfer:

I'm using tox in a pretty simple setup, and can't get it to run with the py33 
environment. It is quite likely that this is a bad setup on my local system, 
but I can't figure out why it is doing what it is doing.

```
$ cat setup.py 
#!/usr/bin/env python

from setuptools import setup, find_packages

setup(name="test")

$ cat tox.ini
[tox]
envlist = py33

[testenv]
commands = ls

$ tox
GLOB sdist-make: /tmp/tox-test/setup.py
py33 create: /tmp/tox-test/.tox/py33
ERROR: invocation failed, logfile: /tmp/tox-test/.tox/py33/log/py33-0.log
ERROR: actionid=py33
msg=getenv
cmdargs=['/home/forcer/bin/python3.3', 
'/home/forcer/.local/lib/python2.7/site-packages/virtualenv.py', 
'--setuptools', '--python', '/home/forcer/bin/python3.3', 'py33']
env=[...]
Already using interpreter /home/forcer/bin/python3.3
Traceback (most recent call last):
  File "/home/forcer/.local/lib/python2.7/site-packages/virtualenv.py", line 
2308, in <module>
    main()
  File "/home/forcer/.local/lib/python2.7/site-packages/virtualenv.py", line 
821, in main
    symlink=options.symlink)
  File "/home/forcer/.local/lib/python2.7/site-packages/virtualenv.py", line 
952, in create_environment
    home_dir, lib_dir, inc_dir, bin_dir = path_locations(home_dir)
  File "/home/forcer/.local/lib/python2.7/site-packages/virtualenv.py", line 
1017, in path_locations
    inc_dir = join(home_dir, 'include', stdout.strip(), py_version + abiflags)
  File "/home/forcer/Programs/Python/python3.3/lib/python3.3/posixpath.py", 
line 92, in join
    "components.") from None
TypeError: Can't mix strings and bytes in path components.
ERROR: InvocationError: /home/forcer/bin/python3.3 
/home/forcer/.local/lib/python2.7/site-packages/virtualenv.py --setuptools 
--python /home/forcer/bin/python3.3 py33 (see 
/tmp/tox-test/.tox/py33/log/py33-0.log)
___________________________________ summary ____________________________________
ERROR:   py33: InvocationError: /home/forcer/bin/python3.3 
/home/forcer/.local/lib/python2.7/site-packages/virtualenv.py --setuptools 
--python /home/forcer/bin/python3.3 py33 (see 
/tmp/tox-test/.tox/py33/log/py33-0.log)
```

I can't figure out why it is using the virtualenv.py from python2.7. Shouldn't 
it be using venv.py from python3.3?


_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to