Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtualenv creation failure under pypy-1.5a0 #9

Closed
pytoxbot opened this issue Sep 17, 2016 · 1 comment
Closed

virtualenv creation failure under pypy-1.5a0 #9

pytoxbot opened this issue Sep 17, 2016 · 1 comment

Comments

@pytoxbot
Copy link

For the following tox.ini configuration:

#!text

[tox]
envlist = 
    py25,py26,py27,jython,pypy

[testenv]
commands = 
    python setup.py test -q
deps =
    Sphinx
    WebTest
    repoze.sphinx.autointerface
    virtualenv

[testenv:jython]
commands = 
   jython setup.py test -q

Running "tox -e pypy" (which finds pypy 1.5a0 on my PATH), produces this:

#!text

[chrism@thinko pyramid]$ tox -e pypy
_________________________________ [tox sdist] __________________________________
[TOX] ***creating sdist package
[TOX] /home/chrism/projects/pyramid$ /home/chrism/opt/Python-2.6.6/bin/python setup.py sdist --formats=zip --dist-dir .tox/dist >.tox/log/0.log
[TOX] ***copying new sdistfile to '/home/chrism/.tox/distshare/pyramid-1.1b2.zip'
______________________________ [tox testenv:pypy] ______________________________
[TOX] ***creating virtualenv pypy
[TOX] /home/chrism/projects/pyramid/.tox$ /home/chrism/projects/pypy/pypy/translator/goal/pypy-c ../../../opt/Python-2.6.6/lib/python2.6/site-packages/tox-1.1-py2.6.egg/tox/virtualenv.py --distribute --no-site-packages pypy >pypy/log/0.log
[TOX] ERROR: invocation failed, logfile: /home/chrism/projects/pyramid/.tox/pypy/log/0.log
[TOX] ERROR: /home/chrism/projects/pyramid/.tox$ /home/chrism/projects/pypy/pypy/translator/goal/pypy-c ../../../opt/Python-2.6.6/lib/python2.6/site-packages/tox-1.1-py2.6.egg/tox/virtualenv.py --distribute --no-site-packages pypy >pypy/log/0.log
New pypy executable in pypy/bin/pypy-c
Also creating executable in pypy/bin/pypy
Installing distribute........
  Complete output from command /home/chrism/project....tox/pypy/bin/pypy-c -c "#!python
\"\"\"Bootstra... main(sys.argv[1:])
" --always-copy -U distribute:
  Traceback (most recent call last):
  File "app_main.py", line 53, in run_toplevel
  File "app_main.py", line 506, in run_it
  File "<string>", line 20, in <module>
ImportError: No module named tempfile
----------------------------------------
...Installing distribute...done.
Traceback (most recent call last):
  File "app_main.py", line 53, in run_toplevel
  File "../../../opt/Python-2.6.6/lib/python2.6/site-packages/tox-1.1-py2.6.egg/tox/virtualenv.py", line 1922, in <module>
    main()
  File "../../../opt/Python-2.6.6/lib/python2.6/site-packages/tox-1.1-py2.6.egg/tox/virtualenv.py", line 796, in main
    never_download=options.never_download)
  File "../../../opt/Python-2.6.6/lib/python2.6/site-packages/tox-1.1-py2.6.egg/tox/virtualenv.py", line 893, in create_environment
    search_dirs=search_dirs, never_download=never_download)
  File "../../../opt/Python-2.6.6/lib/python2.6/site-packages/tox-1.1-py2.6.egg/tox/virtualenv.py", line 594, in install_distribute
    search_dirs=search_dirs, never_download=never_download)
  File "../../../opt/Python-2.6.6/lib/python2.6/site-packages/tox-1.1-py2.6.egg/tox/virtualenv.py", line 563, in _install_req
    cwd=cwd)
  File "../../../opt/Python-2.6.6/lib/python2.6/site-packages/tox-1.1-py2.6.egg/tox/virtualenv.py", line 864, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /home/chrism/project....tox/pypy/bin/pypy-c -c "#!python
\"\"\"Bootstra... main(sys.argv[1:])
" --always-copy -U distribute failed with error code 1

[TOX] ERROR: InvocationError: /home/chrism/projects/pypy/pypy/translator/goal/pypy-c ../../../opt/Python-2.6.6/lib/python2.6/site-packages/tox-1.1-py2.6.egg/tox/virtualenv.py --distribute --no-site-packages pypy (see /home/chrism/projects/pyramid/.tox/pypy/log/0.log)
________________________________ [tox summary] _________________________________
[TOX] ERROR: pypy: InvocationError: /home/chrism/projects/pypy/pypy/translator/goal/pypy-c ../../../opt/Python-2.6.6/lib/python2.6/site-packages/tox-1.1-py2.6.egg/tox/virtualenv.py --distribute --no-site-packages pypy (see /home/chrism/projects/pyramid/.tox/pypy/log/0.log)
@pytoxbot
Copy link
Author

Original comment by @mcdonc

Ignore this. Using the PyPy 1.5 tarball fixes this.

@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant