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 1.11.6 not working with pypy 2.4 and pypy3 2.4 #666

Closed
hurie opened this issue Nov 6, 2014 · 3 comments
Closed

virtualenv 1.11.6 not working with pypy 2.4 and pypy3 2.4 #666

hurie opened this issue Nov 6, 2014 · 3 comments

Comments

@hurie
Copy link

hurie commented Nov 6, 2014

Windows 7 using pypy 2.4

C:\Python\pypy-2.4.0-win32>pypy.exe ..\virtualenv\virtualenv.py C:\Users\Azhar\VirtualEnv\others-pypy24
New pypy executable in C:\Users\Azhar\VirtualEnv\others-pypy24\bin\pypy.exe
debug: WARNING: Library path not found, using compiled-in sys.path.
debug: WARNING: 'sys.prefix' will not be set.
debug: WARNING: Make sure the pypy binary is kept inside its tree of files.
debug: WARNING: It is ok to create a symlink to it from somewhere else.
debug: OperationError:
debug:  operror-type: ImportError
debug:  operror-value: No module named os
ERROR: The executable C:\Users\Azhar\VirtualEnv\others-pypy24\bin\pypy.exe is not functioning
ERROR: It thinks sys.prefix is u'c:\\python\\pypy-2.4.0-win32' (should be u'c:\\users\\azhar\\virtualenv\\others-pypy24')
ERROR: virtualenv is not compatible with this system or executable
Note: some Windows users have reported this error when they installed Python for "Only this user" or have multiple versions of Python installed. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem.

C:\Python\pypy-2.4.0-win32>pypy.exe --version
Python 2.7.8 (f5dcc2477b97, Sep 18 2014, 14:30:11)
[PyPy 2.4.0 with MSC v.1500 32 bit]

C:\Python\pypy-2.4.0-win32>pypy.exe ..\virtualenv\virtualenv.py --version
1.11.6

Using pypy3 2.4

C:\Python\pypy3-2.4.0-win32>pypy.exe ..\virtualenv\virtualenv.py C:\Users\Azhar\VirtualEnv\others-pypy324
New pypy executable in C:\Users\Azhar\VirtualEnv\others-pypy324\bin\pypy.exe
debug: OperationError:
debug:  operror-type: ImportError
debug:  operror-value: No module named traceback
debug: OperationError:
debug:  operror-type: AttributeError
debug:  operror-value: stdout
ERROR: The executable C:\Users\Azhar\VirtualEnv\others-pypy324\bin\pypy.exe is not functioning
ERROR: It thinks sys.prefix is 'c:\\python\\pypy3-2.4.0-win32' (should be 'c:\\users\\azhar\\virtualenv\\others-pypy324')
ERROR: virtualenv is not compatible with this system or executable
Note: some Windows users have reported this error when they installed Python for "Only this user" or have multiple versions of Python installed. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem.

C:\Python\pypy3-2.4.0-win32>pypy.exe --version
Python 3.2.5 (b2091e973da6, Oct 19 2014, 21:25:51)
[PyPy 2.4.0 with MSC v.1500 32 bit]

Downgrading to virtualenv 1.9.1, pypy 2.4 success but pypy3 2.4 still fail.

@hurie
Copy link
Author

hurie commented Nov 6, 2014

Using develop branch I'm able to get virtualenv work using pypy 2.4, but still no luck with pypy3 2.4

C:\Python\virtualenv>C:\Users\Azhar\VirtualEnv\test.sh
+ C:/Python/Python26/python.exe C:/Python/virtualenv/virtualenv.py --version
12.0.dev1
+ rm -rf C:/Users/Azhar/VirtualEnv/others-pypy24
+ C:/Python/pypy-2.4.0-win32/pypy.exe C:/Python/virtualenv/virtualenv.py C:/Users/Azhar/VirtualEnv/others-pypy24
New pypy executable in C:/Users/Azhar/VirtualEnv/others-pypy24\bin\pypy.exe
Installing setuptools, pip...done.
+ rm -rf C:/Users/Azhar/VirtualEnv/others-pypy324
+ C:/Python/pypy3-2.4.0-win32/pypy.exe C:/Python/virtualenv/virtualenv.py C:/Users/Azhar/VirtualEnv/others-pypy324
New pypy executable in C:/Users/Azhar/VirtualEnv/others-pypy324\bin\pypy.exe
Installing setuptools, pip...
  Complete output from command C:\Users\Azhar\Virtu...pypy324\bin\pypy.exe -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip:
  Ignoring indexes: http://localhost:5000/simple/
Downloading/unpacking setuptools
Downloading/unpacking pip
Installing collected packages: setuptools, pip
Cleaning up...
Exception:
Traceback (most recent call last):
  File "C:\Python\virtualenv\virtualenv_support\pip-1.5.6-py2.py3-none-any.whl\pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\Python\virtualenv\virtualenv_support\pip-1.5.6-py2.py3-none-any.whl\pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "C:\Python\virtualenv\virtualenv_support\pip-1.5.6-py2.py3-none-any.whl\pip/req.py", line 1435, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "C:\Python\virtualenv\virtualenv_support\pip-1.5.6-py2.py3-none-any.whl\pip/req.py", line 671, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "C:\Python\virtualenv\virtualenv_support\pip-1.5.6-py2.py3-none-any.whl\pip/req.py", line 901, in move_wheel_files
    pycompile=self.pycompile,
  File "C:\Python\virtualenv\virtualenv_support\pip-1.5.6-py2.py3-none-any.whl\pip/wheel.py", line 337, in move_wheel_files
    generated.extend(maker.make(spec))
  File "C:\Python\virtualenv\virtualenv_support\pip-1.5.6-py2.py3-none-any.whl\pip/_vendor/distlib/scripts.py", line 311, in make
    self._make_script(entry, filenames, options=options)
  File "C:\Python\virtualenv\virtualenv_support\pip-1.5.6-py2.py3-none-any.whl\pip/_vendor/distlib/scripts.py", line 215, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File "C:\Python\virtualenv\virtualenv_support\pip-1.5.6-py2.py3-none-any.whl\pip/_vendor/distlib/scripts.py", line 157, in _write_script
    launcher = self._get_launcher('t')
  File "C:\Python\virtualenv\virtualenv_support\pip-1.5.6-py2.py3-none-any.whl\pip/_vendor/distlib/scripts.py", line 290, in _get_launcher
    result = finder(distlib_package).find(name).bytes
AttributeError: 'NoneType' object has no attribute 'bytes'

Storing debug log for failure in c:/Users/Azhar\pip\pip.log
----------------------------------------
...Installing setuptools, pip...done.
Traceback (most recent call last):
  File "C:/Python/virtualenv/virtualenv.py", line 2373, in <module>
    main()
  File "C:/Python/virtualenv/virtualenv.py", line 846, in main
    symlink=options.symlink)
  File "C:/Python/virtualenv/virtualenv.py", line 1014, in create_environment
    install_wheel(to_install, py_executable, search_dirs)
  File "C:/Python/virtualenv/virtualenv.py", line 982, in install_wheel
    'PIP_NO_INDEX': '1'
  File "C:/Python/virtualenv/virtualenv.py", line 924, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command C:\Users\Azhar\Virtu...pypy324\bin\pypy.exe -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 2

@dstufft dstufft mentioned this issue Jan 5, 2015
5 tasks
@ionelmc
Copy link

ionelmc commented Jan 17, 2015

This is likely a problem with pip (it still fails on the rewrite).

@ionelmc
Copy link

ionelmc commented Jan 17, 2015

Ok, finally tracked this down, it's a pypi bug with zipimport: https://bitbucket.org/pypy/pypy/issue/1696/can-not-install-pip-with-get-pippy

This issue can be closed.

@hurie hurie closed this as completed Apr 11, 2015
@pypa pypa 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

2 participants