[pypy-dev] pypy 1.4 and virtualenv 1.5.1

Michael Foord fuzzyman at gmail.com
Sat Nov 27 00:22:16 CET 2010


On 26 November 2010 23:19, holger krekel <holger at merlinux.eu> wrote:

> Hi Michael,
>
> On Fri, Nov 26, 2010 at 22:15 +0000, Michael Foord wrote:
> > Congratulations on the new release.
> >
> > Unfortunately it seems that virtualenv 1.5.1 and pypy 1.4 do not play
> well
> > together on Mac OS X. At least the "--distribute" option doesn't work,
> which
> > is needed by tox.
>
> It's not needed, with tox you can configure "distribute=False" in your test
> env
> and this would install setuptools.
>
> > I tried to create an issue on the PyPy issue tracker, but new registrants
> > are unable to create issues:
> >
> > Here is the output on Linux:
> >
> > $ virtualenv -p /compile/pypy-1.4/bin/pypy pypy --distribute
> > --no-site-packages
>
> Does that work for you without --distribute?
>

Yes it does. mvt on #pypy has tracked it down to plat-mac/plist.py not being
included in pypy. This error is somehow being masked when distribute is
installed:


   1. ~/src/distribute-0.6.14 $ mkvirtualenv --distribute --no-site-packages
   --python=/Users/mvantellingen/pypy/bin/pypy pypy-test2
   2. Running virtualenv with interpreter /Users/mvantellingen/pypy/bin/pypy
   3. New pypy-c executable in pypy-test2/bin/pypy
   4. Not overwriting existing pypy-c script pypy-test2/bin/pypy-c (you must
   use pypy-test2/bin/pypy)
   5. Installing distribute...Extracting in
   /var/folders/Dk/DkuwVxyEH4CIjPxKNOHaCE+++TI/-Tmp-/tmpjCepU2
   6. Now working in
   /var/folders/Dk/DkuwVxyEH4CIjPxKNOHaCE+++TI/-Tmp-/tmpjCepU2/distribute-0.6.14
   7. Installing Distribute
   8. Traceback (most recent call last):
   9.   File "app_main.py", line 33, in run_toplevel
   10.   File "setup.py", line 37, in <module>
   11.     exec(open(init_path).read(), d)
   12.   File "<string>", line 8, in <module>
   13.   File
   "/private/var/folders/Dk/DkuwVxyEH4CIjPxKNOHaCE+++TI/-Tmp-/tmpjCepU2/distribute-0.6.14/setuptools/__init__.py",
   line 2, in <module>
   14.     from setuptools.extension import Extension, Library
   15.   File
   "/private/var/folders/Dk/DkuwVxyEH4CIjPxKNOHaCE+++TI/-Tmp-/tmpjCepU2/distribute-0.6.14/setuptools/extension.py",
   line 2, in <module>
   16.     from setuptools.dist import _get_unpatched
   17.   File
   "/private/var/folders/Dk/DkuwVxyEH4CIjPxKNOHaCE+++TI/-Tmp-/tmpjCepU2/distribute-0.6.14/setuptools/dist.py",
   line 6, in <module>
   18.     from setuptools.command.install import install
   19.   File
   "/private/var/folders/Dk/DkuwVxyEH4CIjPxKNOHaCE+++TI/-Tmp-/tmpjCepU2/distribute-0.6.14/setuptools/command/__init__.py",
   line 8, in <module>
   20.     from setuptools.command import install_scripts
   21.   File
   "/private/var/folders/Dk/DkuwVxyEH4CIjPxKNOHaCE+++TI/-Tmp-/tmpjCepU2/distribute-0.6.14/setuptools/command/install_scripts.py",
   line 3, in <module>
   22.     from pkg_resources import Distribution, PathMetadata,
   ensure_directory
   23.   File
   "/private/var/folders/Dk/DkuwVxyEH4CIjPxKNOHaCE+++TI/-Tmp-/tmpjCepU2/distribute-0.6.14/pkg_resources.py",
   line 685, in <module>
   24.     class Environment(object):
   25.   File
   "/private/var/folders/Dk/DkuwVxyEH4CIjPxKNOHaCE+++TI/-Tmp-/tmpjCepU2/distribute-0.6.14/pkg_resources.py",
   line 688, in Environment
   26.     def __init__(self, search_path=None,
   platform=get_supported_platform(), python=PY_MAJOR):
   27.   File
   "/private/var/folders/Dk/DkuwVxyEH4CIjPxKNOHaCE+++TI/-Tmp-/tmpjCepU2/distribute-0.6.14/pkg_resources.py",
   line 77, in get_supported_platform
   28.     plat = 'macosx-%s-%s' % ('.'.join(_macosx_vers()[:2]),
   m.group(3))
   29.   File
   "/private/var/folders/Dk/DkuwVxyEH4CIjPxKNOHaCE+++TI/-Tmp-/tmpjCepU2/distribute-0.6.14/pkg_resources.py",
   line 192, in _macosx_vers
   30.     import plistlib
   31. ImportError: No module named plistlib
   32. Something went wrong during the installation.
   33. See the error message above.
   34. None
   35. done.
   36.   Complete output from command /Users/mvantellingen/virtualen.../pypy
   /Users/mvantellingen/virtualen...stall
   /Library/Python/2.6/site-packa...ar.gz:
   37.   Traceback (most recent call last):
   38.   File "app_main.py", line 33, in run_toplevel
   39. IOError: [Errno 2] No such file or directory:
   '/Users/mvantellingen/virtualenvs/pypy-test2/bin/easy_install'
   40. ----------------------------------------
   41. Traceback (most recent call last):
   42.   File "app_main.py", line 33, in run_toplevel
   43.   File
   "/Library/Python/2.6/site-packages/virtualenv-1.5.1-py2.6.egg/virtualenv.py",
   line 1647, in <module>
   44.     main()
   45.   File
   "/Library/Python/2.6/site-packages/virtualenv-1.5.1-py2.6.egg/virtualenv.py",
   line 558, in main
   46.     prompt=options.prompt)
   47.   File
   "/Library/Python/2.6/site-packages/virtualenv-1.5.1-py2.6.egg/virtualenv.py",
   line 656, in create_environment
   48.     install_pip(py_executable)
   49.   File
   "/Library/Python/2.6/site-packages/virtualenv-1.5.1-py2.6.egg/virtualenv.py",
   line 415, in install_pip
   50.     filter_stdout=_filter_setup)
   51.   File
   "/Library/Python/2.6/site-packages/virtualenv-1.5.1-py2.6.egg/virtualenv.py",
   line 624, in call_subprocess
   52.     % (cmd, proc.returncode))
   53. OSError: Command
   ['/Users/mvantellingen/virtualenvs/pypy-test2/bin/pypy',
   '/Users/mvantellingen/virtualenvs/pypy-test2/bin/easy_install',
   '/Library/Python/2.6/site-packages/virtualenv-1.5.1-py2.6.egg/virtualenv_support/pip-0.8.1.tar.gz']
   failed with error code 1
   54. ~/src/distribute-0.6.14 $


All the best,

Michael Foord


>
> holger
>
> > Running virtualenv with interpreter /compile/pypy-1.4/bin/pypy
> > New pypy-c executable in pypy/bin/pypy
> > Also creating executable in pypy/bin/pypy-c
> > Installing
> >
> distribute....................................................................................................................................................................................done.
> >
> >
> > Here is the failed output on OS X:
> >
> > $ virtualenv -p /compile/pypy-1.4-osx/bin/pypy pypy --distribute
> > --no-site-packages
> > Running virtualenv with interpreter /compile/pypy-1.4-osx/bin/pypy
> > New pypy-c executable in pypy/bin/pypy
> > Also creating executable in pypy/bin/pypy-c
> > Please make sure you remove any previous custom paths from your
> > /Volumes/Second Drive/michael/.pydistutils.cfg file.
> > Installing distribute................................done.
> > Complete output from command /compile/pypy/bin/pypy
> > /compile/pypy/bin/easy_install /Library/Frameworks/Python.fra...ar.gz:
> > Traceback (most recent call last):
> > File "app_main.py", line 33, in run_toplevel
> > IOError: [Errno 2] No such file or directory:
> '/compile/pypy/bin/easy_install'
> > ----------------------------------------
> > Traceback (most recent call last):
> > File "app_main.py", line 33, in run_toplevel
> > File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/virtualenv.py",
> > line 1647, in <module>
> > main()
> > File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/virtualenv.py",
> > line 558, in main
> > prompt=options.prompt)
> > File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/virtualenv.py",
> > line 656, in create_environment
> > install_pip(py_executable)
> > File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/virtualenv.py",
> > line 415, in install_pip
> > filter_stdout=_filter_setup)
> > File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/virtualenv.py",
> > line 624, in call_subprocess
> > % (cmd_desc, proc.returncode))
> > OSError: Command /compile/pypy/bin/pypy /compile/pypy/bin/easy_install
> > /Library/Frameworks/Python.fra...ar.gz failed with error code 1
> >
> >
> > The nice thing is that for unittest2 and mock all tests pass with pypy
> 1.4.
> > Not unexpected, but still nice.
> >
> > All the best,
> >
> > Michael Foord
> >
> > --
> > http://www.voidspace.org.uk
>
> > _______________________________________________
> > pypy-dev at codespeak.net
> > http://codespeak.net/mailman/listinfo/pypy-dev
>
> --
>



-- 
http://www.voidspace.org.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20101126/26d12411/attachment.html>


More information about the Pypy-dev mailing list