New issue 127: Possible problem with python3.4?
https://bitbucket.org/hpk42/tox/issue/127/possible-problem-with-python34

Marc Abramowitz:

I just installed python 3.4a3 this morning and when I try to use it with tox, I 
get some strange errors:

```
marca@marca-mac:~/dev/git-repos/tox-test$ tox -e py27,py33,py34
GLOB sdist-make: /Users/marca/dev/git-repos/tox-test/setup.py
py27 inst-nodeps: /Users/marca/dev/git-repos/tox-test/.tox/dist/foo-0.0.0.zip
py27 runtests: commands[0] | py.test -v
============================================================================== 
test session starts 
===============================================================================
platform darwin -- Python 2.7.3 -- pytest-2.4.2 -- 
/Users/marca/dev/git-repos/tox-test/.tox/py27/bin/python
collected 1 items

test_foo.py:3: test_foo PASSED

============================================================================ 1 
passed in 0.01 seconds 
============================================================================
py33 create: /Users/marca/dev/git-repos/tox-test/.tox/py33
py33 installdeps: pytest
py33 inst: /Users/marca/dev/git-repos/tox-test/.tox/dist/foo-0.0.0.zip
py33 runtests: commands[0] | py.test -v
============================================================================== 
test session starts 
===============================================================================
platform darwin -- Python 3.3.2 -- pytest-2.4.2 -- 
/Users/marca/dev/git-repos/tox-test/.tox/py33/bin/python3.3
collected 1 items

test_foo.py:3: test_foo PASSED

============================================================================ 1 
passed in 0.03 seconds 
============================================================================
py34 create: /Users/marca/dev/git-repos/tox-test/.tox/py34
ERROR: invocation failed, logfile: 
/Users/marca/dev/git-repos/tox-test/.tox/py34/log/py34-0.log
ERROR: actionid=py34
msg=getenv
cmdargs=['/usr/local/bin/python3.4', 
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py',
 '--setuptools', '--python', '/usr/local/bin/python3.4', 'py34']
env={'HISTFILE': '/Users/marca/.bash_history-', 'PYMSSQL_TEST_DATABASE': 
'pymssql_dev', 'TDSPWDPWD': 'M0nk3y$', 'LOGNAME': 'marca', 'USER': 'marca', 
'TDSPWDSRV': 'localhost', 'TDSPWDUID': 'sa_monkey', 'HOME': '/Users/marca', 
'PS1': '${debian_chroot:+($debian_chroot)}\\u@\\h:\\w\\$ ', 'DISPLAY': 
'/tmp/launch-3QN6DX/org.macosforge.xquartz:0', 'TERM_PROGRAM': 'iTerm.app', 
'LANG': 'en_US.UTF-8', '__CF_USER_TEXT_ENCODING': '0x1F6:0:0', 'TERM': 
'xterm-256color', 'Apple_PubSub_Socket_Render': '/tmp/launch-3zOWu2/Render', 
'COLORFGBG': '7;0', 'SHLVL': '1', 'SHMUX_SSH_OPTS': '', 'LESS': '-ich4MP%t?f%f 
:stdin .?pb%pb\\%:?lbLine %lb:?bbByte %bb:-...', 'SECURITYSESSIONID': '186a4', 
'TDSPWDDB': 'pymssql_dev', 'ITERM_SESSION_ID': 'w0t6p0', 'EDITOR': 'vim', 
'HISTIGNORE': '&:ls:mutt:[bf]g:exit', 'SSH_AUTH_SOCK': 
'/tmp/launch-4nnSVt/Listeners', 'PYMSSQL_TEST_SERVER': 'localhost', 'PATH': 
'/Users/marca/dev/git-repos/tox-test/.tox/py34/bin:/Library/Frameworks/Python.framework/Versions/Current/bi
 
n:/Users/marca/bin:/usr/local/opt/ruby/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.3/bin:/Library/Frameworks/Python.framework/Versions/3.2/bin:/Users/marca/ruby/bin:/sbin:/bin:/usr/sbin/:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/X11R6/bin:/Library/Frameworks/Python.framework/Versions/3.3/bin',
 'SHELL': '/bin/bash', 'P4CONFIG': '.p4config', 'CLICOLOR': 'true', 
'ITERM_PROFILE': 'Default', '_': 
'/Library/Frameworks/Python.framework/Versions/2.7/bin/tox', 'CVSEDITOR': 
'vim', 'PERL5LIB': '/Users/marca/lib/perl', 'LSCOLORS': 
'ExGxCxDxCxegedabagacad', 'PYMSSQL_TEST_USERNAME': 'sa_monkey', 'TMPDIR': 
'/var/folders/nk/8f8f6wjn7v3b9cb2gjqf6vph0000gp/T/', 'OLDPWD': 
'/Users/marca/dev/git-repos', 'NODE_PATH': '/usr/local/lib/node', 
'PYMSSQL_TEST_IPADDRESS': '127.0.0.1', 'Apple_Ubiquity_Message': 
'/tmp/launch-9ggFY6/Apple_Ubiquity_Message', 'PWD': 
'/Users/marca/dev/git-repos/tox-test', 'PIP_DOWNLOAD_CACHE': '/Users/marca/.pip
 /download-cache', 'PYMSSQL_TEST_PASSWORD': 'M0nk3y$', 'TDSPWDSKIPCOMPUTE': 
'1', 'PAGER': 'less', 'COMMAND_MODE': 'unix2003'}
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
  File 
"/Users/marca/dev/git-repos/tox-test/.tox/py34/bin/../lib/python3.4/locale.py", 
line 17, in <module>
    import re
  File 
"/Users/marca/dev/git-repos/tox-test/.tox/py34/bin/../lib/python3.4/re.py", 
line 124, in <module>
    import functools
  File 
"/Users/marca/dev/git-repos/tox-test/.tox/py34/bin/../lib/python3.4/functools.py",
 line 21, in <module>
    from collections import namedtuple
  File 
"/Users/marca/dev/git-repos/tox-test/.tox/py34/bin/../lib/python3.4/collections/__init__.py",
 line 8, in <module>
    __all__ += collections.abc.__all__
AttributeError: 'module' object has no attribute 'abc'
Already using interpreter /usr/local/bin/python3.4
Using base prefix '/Library/Frameworks/Python.framework/Versions/3.4'
New python executable in py34/bin/python3.4
Also creating executable in py34/bin/python
ERROR: The executable py34/bin/python3.4 is not functioning
ERROR: It thinks sys.prefix is '/Users/marca/dev/git-repos/tox-test/.tox' 
(should be '/Users/marca/dev/git-repos/tox-test/.tox/py34')
ERROR: virtualenv is not compatible with this system or executable

ERROR: InvocationError: /usr/local/bin/python3.4 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py
 --setuptools --python /usr/local/bin/python3.4 py34 (see 
/Users/marca/dev/git-repos/tox-test/.tox/py34/log/py34-0.log)
____________________________________________________________________________________
 summary 
_____________________________________________________________________________________
  py27: commands succeeded
  py33: commands succeeded
ERROR:   py34: InvocationError: /usr/local/bin/python3.4 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py
 --setuptools --python /usr/local/bin/python3.4 py34 (see 
/Users/marca/dev/git-repos/tox-test/.tox/py34/log/py34-0.log)
```

Here's the tiny little test package that I was testing with:

https://github.com/msabramo/tox-test


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

Reply via email to