[Python-modules-team] Bug#625784: Bug#625784: (no subject)

Carl Chenet chaica at ohmytux.com
Sun May 22 20:22:15 UTC 2011


Le 06/05/2011 20:02, Barry Warsaw a écrit :
> Actually, try this patch.  (I'm having some difficulty committing this to svn.)
>    
>    
Hi Barry,

I'm testing your patch and it works just fine for python3.1 but I have 
an issue I can not explain yet with python3.2. Here is the log :

# virtualenv -v -p python3.2 TMP32
Running virtualenv with interpreter /usr/bin/python3.2
Creating TMP32/lib/python3.2
Symlinking Python bootstrap modules
Symlinking TMP32/lib/python3.2/config-3.2mu
Symlinking TMP32/lib/python3.2/lib-dynload
Symlinking TMP32/lib/python3.2/os.py
Ignoring built-in bootstrap module: posix
Symlinking TMP32/lib/python3.2/posixpath.py
Cannot import bootstrap module: nt
Symlinking TMP32/lib/python3.2/ntpath.py
Symlinking TMP32/lib/python3.2/genericpath.py
Symlinking TMP32/lib/python3.2/fnmatch.py
Symlinking TMP32/lib/python3.2/locale.py
Symlinking TMP32/lib/python3.2/encodings
Symlinking TMP32/lib/python3.2/codecs.py
Symlinking TMP32/lib/python3.2/stat.py
Cannot import bootstrap module: UserDict
Cannot import bootstrap module: copy_reg
Symlinking TMP32/lib/python3.2/types.py
Symlinking TMP32/lib/python3.2/re.py
Cannot import bootstrap module: sre
Symlinking TMP32/lib/python3.2/sre_parse.py
Symlinking TMP32/lib/python3.2/sre_constants.py
Symlinking TMP32/lib/python3.2/sre_compile.py
Ignoring built-in bootstrap module: zlib
Symlinking TMP32/lib/python3.2/_abcoll.py
Symlinking TMP32/lib/python3.2/warnings.py
Symlinking TMP32/lib/python3.2/linecache.py
Symlinking TMP32/lib/python3.2/abc.py
Symlinking TMP32/lib/python3.2/io.py
Symlinking TMP32/lib/python3.2/_weakrefset.py
Symlinking TMP32/lib/python3.2/copyreg.py
Symlinking TMP32/lib/python3.2/tempfile.py
Symlinking TMP32/lib/python3.2/random.py
Symlinking TMP32/lib/python3.2/__future__.py
Symlinking TMP32/lib/python3.2/collections.py
Symlinking TMP32/lib/python3.2/keyword.py
Symlinking TMP32/lib/python3.2/tarfile.py
Symlinking TMP32/lib/python3.2/shutil.py
Symlinking TMP32/lib/python3.2/struct.py
Symlinking TMP32/lib/python3.2/copy.py
Creating TMP32/lib/python3.2/site-packages
Writing TMP32/lib/python3.2/site.py
Writing TMP32/lib/python3.2/orig-prefix.txt
Creating parent directories for TMP32/include
Symlinking TMP32/include/python3.2mu
Creating TMP32/bin
New python executable in TMP32/bin/python3.2
Changed mode of TMP32/bin/python3.2 to 0o755
Also creating executable in TMP32/bin/python
Changed mode of TMP32/bin/python to 0o755
Testing executable with TMP32/bin/python3.2 -c "import sys; 
print(sys.prefix)"
Got sys.prefix result: '/tmp/TMP32'
Creating TMP32/lib/python3.2/distutils
Writing TMP32/lib/python3.2/distutils/__init__.py
Writing TMP32/lib/python3.2/distutils/distutils.cfg
Using existing distribute egg: ./distribute-0.6.16.tar.gz
Installing 
distribute...........................................................................................................................................................................................................................................................................................................................................................done.
Installing existing pip-1.0.1.tar.gz distribution: 
/usr/share/python-virtualenv/pip-1.0.1.tar.gz
Installing pip...
/tmp/TMP32/bin/python3.2: can't open file '/tmp/TMP32/bin/easy_install': 
[Errno 2] No such file or directory
Complete output from command /tmp/TMP32/bin/python3.2 
/tmp/TMP32/bin/easy_install /usr/share/python-virtualenv/pip-1.0.1.tar.gz:
/tmp/TMP32/bin/python3.2: can't open file '/tmp/TMP32/bin/easy_install': 
[Errno 2] No such file or directory
----------------------------------------
...Installing pip...done.
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/virtualenv.py", line 1981, in 
<module>
main()
File "/usr/lib/python2.6/dist-packages/virtualenv.py", line 811, in main
never_download=options.never_download)
File "/usr/lib/python2.6/dist-packages/virtualenv.py", line 913, in 
create_environment
install_pip(py_executable, search_dirs=search_dirs, 
never_download=never_download)
File "/usr/lib/python2.6/dist-packages/virtualenv.py", line 642, in 
install_pip
filter_stdout=_filter_setup)
File "/usr/lib/python2.6/dist-packages/virtualenv.py", line 879, in 
call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /tmp/TMP32/bin/python3.2 /tmp/TMP32/bin/easy_install 
/usr/share/python-virtualenv/pip-1.0.1.tar.gz failed with error code 2


And indeed files seem missing in the virtual environment :

# tree TMP32/
TMP32/
├── bin
│ ├── python
│ └── python3.2
├── include
│ └── python3.2mu -> /usr/include/python3.2mu
└── lib
└── python3.2
├── _abcoll.py -> /usr/lib/python3.2/_abcoll.py
├── abc.py -> /usr/lib/python3.2/abc.py
├── codecs.py -> /usr/lib/python3.2/codecs.py
├── collections.py -> /usr/lib/python3.2/collections.py
├── config-3.2mu -> /usr/lib/python3.2/config-3.2mu
├── copy.py -> /usr/lib/python3.2/copy.py
├── copyreg.py -> /usr/lib/python3.2/copyreg.py
├── distutils
│ ├── distutils.cfg
│ ├── __init__.py
│ └── __pycache__
│ └── __init__.cpython-32.pyc
├── encodings -> /usr/lib/python3.2/encodings
├── fnmatch.py -> /usr/lib/python3.2/fnmatch.py
├── __future__.py -> /usr/lib/python3.2/__future__.py
├── genericpath.py -> /usr/lib/python3.2/genericpath.py
├── io.py -> /usr/lib/python3.2/io.py
├── keyword.py -> /usr/lib/python3.2/keyword.py
├── lib-dynload -> /usr/lib/python3.2/lib-dynload
├── linecache.py -> /usr/lib/python3.2/linecache.py
├── locale.py -> /usr/lib/python3.2/locale.py
├── ntpath.py -> /usr/lib/python3.2/ntpath.py
├── orig-prefix.txt
├── os.py -> /usr/lib/python3.2/os.py
├── posixpath.py -> /usr/lib/python3.2/posixpath.py
├── __pycache__
│ ├── abc.cpython-32.pyc
│ ├── _abcoll.cpython-32.pyc
│ ├── codecs.cpython-32.pyc
│ ├── collections.cpython-32.pyc
│ ├── copy.cpython-32.pyc
│ ├── copyreg.cpython-32.pyc
│ ├── fnmatch.cpython-32.pyc
│ ├── __future__.cpython-32.pyc
│ ├── genericpath.cpython-32.pyc
│ ├── io.cpython-32.pyc
│ ├── keyword.cpython-32.pyc
│ ├── linecache.cpython-32.pyc
│ ├── locale.cpython-32.pyc
│ ├── os.cpython-32.pyc
│ ├── posixpath.cpython-32.pyc
│ ├── random.cpython-32.pyc
│ ├── re.cpython-32.pyc
│ ├── shutil.cpython-32.pyc
│ ├── site.cpython-32.pyc
│ ├── sre_compile.cpython-32.pyc
│ ├── sre_constants.cpython-32.pyc
│ ├── sre_parse.cpython-32.pyc
│ ├── stat.cpython-32.pyc
│ ├── struct.cpython-32.pyc
│ ├── tarfile.cpython-32.pyc
│ ├── tempfile.cpython-32.pyc
│ ├── types.cpython-32.pyc
│ ├── warnings.cpython-32.pyc
│ └── _weakrefset.cpython-32.pyc
├── random.py -> /usr/lib/python3.2/random.py
├── re.py -> /usr/lib/python3.2/re.py
├── shutil.py -> /usr/lib/python3.2/shutil.py
├── site-packages
│ ├── distribute-0.6.15-py3.2.egg
│ │ ├── easy_install.py
│ │ ├── easy_install.pyc
│ │ ├── EGG-INFO
│ │ │ ├── dependency_links.txt
│ │ │ ├── entry_points2.txt
│ │ │ ├── entry_points.txt
│ │ │ ├── PKG-INFO
│ │ │ ├── SOURCES.txt
│ │ │ ├── top_level.txt
│ │ │ └── zip-safe
│ │ ├── pkg_resources.py
│ │ ├── pkg_resources.pyc
│ │ ├── setuptools
│ │ │ ├── archive_util.py
│ │ │ ├── archive_util.pyc
│ │ │ ├── cli.exe
│ │ │ ├── command
│ │ │ │ ├── alias.py
│ │ │ │ ├── alias.pyc
│ │ │ │ ├── bdist_egg.py
│ │ │ │ ├── bdist_egg.pyc
│ │ │ │ ├── bdist_rpm.py
│ │ │ │ ├── bdist_rpm.pyc
│ │ │ │ ├── bdist_wininst.py
│ │ │ │ ├── bdist_wininst.pyc
│ │ │ │ ├── build_ext.py
│ │ │ │ ├── build_ext.pyc
│ │ │ │ ├── build_py.py
│ │ │ │ ├── build_py.pyc
│ │ │ │ ├── develop.py
│ │ │ │ ├── develop.pyc
│ │ │ │ ├── easy_install.py
│ │ │ │ ├── easy_install.pyc
│ │ │ │ ├── egg_info.py
│ │ │ │ ├── egg_info.pyc
│ │ │ │ ├── __init__.py
│ │ │ │ ├── __init__.pyc
│ │ │ │ ├── install_egg_info.py
│ │ │ │ ├── install_egg_info.pyc
│ │ │ │ ├── install_lib.py
│ │ │ │ ├── install_lib.pyc
│ │ │ │ ├── install.py
│ │ │ │ ├── install.pyc
│ │ │ │ ├── install_scripts.py
│ │ │ │ ├── install_scripts.pyc
│ │ │ │ ├── register.py
│ │ │ │ ├── register.pyc
│ │ │ │ ├── rotate.py
│ │ │ │ ├── rotate.pyc
│ │ │ │ ├── saveopts.py
│ │ │ │ ├── saveopts.pyc
│ │ │ │ ├── sdist.py
│ │ │ │ ├── sdist.pyc
│ │ │ │ ├── setopt.py
│ │ │ │ ├── setopt.pyc
│ │ │ │ ├── test.py
│ │ │ │ ├── test.pyc
│ │ │ │ ├── upload_docs.py
│ │ │ │ ├── upload_docs.pyc
│ │ │ │ ├── upload.py
│ │ │ │ └── upload.pyc
│ │ │ ├── depends.py
│ │ │ ├── depends.pyc
│ │ │ ├── dist.py
│ │ │ ├── dist.pyc
│ │ │ ├── extension.py
│ │ │ ├── extension.pyc
│ │ │ ├── gui.exe
│ │ │ ├── __init__.py
│ │ │ ├── __init__.pyc
│ │ │ ├── package_index.py
│ │ │ ├── package_index.pyc
│ │ │ ├── sandbox.py
│ │ │ ├── sandbox.pyc
│ │ │ └── tests
│ │ │ ├── doctest.py
│ │ │ ├── doctest.pyc
│ │ │ ├── __init__.py
│ │ │ ├── __init__.pyc
│ │ │ ├── server.py
│ │ │ ├── server.pyc
│ │ │ ├── test_build_ext.py
│ │ │ ├── test_build_ext.pyc
│ │ │ ├── test_develop.py
│ │ │ ├── test_develop.pyc
│ │ │ ├── test_easy_install.py
│ │ │ ├── test_easy_install.pyc
│ │ │ ├── test_packageindex.py
│ │ │ ├── test_packageindex.pyc
│ │ │ ├── test_resources.py
│ │ │ ├── test_resources.pyc
│ │ │ ├── test_sandbox.py
│ │ │ ├── test_sandbox.pyc
│ │ │ ├── test_upload_docs.py
│ │ │ └── test_upload_docs.pyc
│ │ ├── site.py
│ │ └── site.pyc
│ ├── easy-install.pth
│ └── setuptools.pth
├── site.py
├── sre_compile.py -> /usr/lib/python3.2/sre_compile.py
├── sre_constants.py -> /usr/lib/python3.2/sre_constants.py
├── sre_parse.py -> /usr/lib/python3.2/sre_parse.py
├── stat.py -> /usr/lib/python3.2/stat.py
├── struct.py -> /usr/lib/python3.2/struct.py
├── tarfile.py -> /usr/lib/python3.2/tarfile.py
├── tempfile.py -> /usr/lib/python3.2/tempfile.py
├── types.py -> /usr/lib/python3.2/types.py
├── warnings.py -> /usr/lib/python3.2/warnings.py
└── _weakrefset.py -> /usr/lib/python3.2/_weakrefset.py

especially in the TMP32/bin directory.

Bye,
Carl Chenet






More information about the Python-modules-team mailing list