Debian Bug report logs -
#695707
[libpython2.7-stdlib] Breaks python-virtualenv
Reported by: Yannick Roehlly <yannick.roehlly@gmail.com>
Date: Tue, 11 Dec 2012 21:36:03 UTC
Severity: normal
Found in version python-virtualenv/1.8.4-1
Fixed in version python-virtualenv/1.8.4-2
Done: Barry Warsaw <barry@python.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#695707; Package libpython2.7-stdlib.
(Tue, 11 Dec 2012 21:36:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Yannick Roehlly <yannick.roehlly@gmail.com>:
New Bug report received and forwarded. Copy sent to Matthias Klose <doko@debian.org>.
(Tue, 11 Dec 2012 21:36:07 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: libpython2.7-stdlib
Version: 2.7.3-11
Severity: normal
--- Please enter the report below this line. ---
Hi Matthias,
The patch closing bug #695596 makes packages installable on the system but the
multi-arch breaks the use of python-virtualenv. For instance (use
virtualenvwrapper):
========================================================================
$ mkvirtualenv test
New python executable in test/bin/python
Installing distribute.................................
Complete output from command /home/yannick/.virtualenvs/test/bin/python -c
"#!python
\"\"\"Bootstra... sys.exit(main())
":
Extracting in /tmp/tmpa33XGw
Now working in /tmp/tmpa33XGw/distribute-0.6.31
Installing Distribute
running install
Traceback (most recent call last):
File "setup.py", line 240, in <module>
scripts = scripts,
File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 971, in run_command
cmd_obj.ensure_finalized()
File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/tmp/tmpa33XGw/distribute-0.6.31/setuptools/command/install.py", line
29, in finalize_options
_install.finalize_options(self)
File "/usr/lib/python2.7/distutils/command/install.py", line 321, in
finalize_options
(prefix, exec_prefix) = get_config_vars('prefix', 'exec_prefix')
File "/home/yannick/.virtualenvs/test/lib/python2.7/distutils/__init__.py",
line 92, in sysconfig_get_config_vars
real_vars = old_get_config_vars(*args)
File "/usr/lib/python2.7/distutils/sysconfig.py", line 498, in
get_config_vars
func()
File "/usr/lib/python2.7/distutils/sysconfig.py", line 442, in _init_posix
from _sysconfigdata import build_time_vars
File "/usr/lib/python2.7/_sysconfigdata.py", line 6, in <module>
from _sysconfigdata_nd import *
ImportError: No module named _sysconfigdata_nd
Something went wrong during the installation.
See the error message above.
----------------------------------------
...Installing distribute...done.
Traceback (most recent call last):
File "/usr/bin/virtualenv", line 3, in <module>
virtualenv.main()
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 965, in main
never_download=options.never_download)
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 1072, in
create_environment
search_dirs=search_dirs, never_download=never_download)
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 617, in
install_distribute
search_dirs=search_dirs, never_download=never_download)
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 583, in
_install_req
cwd=cwd)
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 1043, in
call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /home/yannick/.virtualenvs/test/bin/python -c "#!python
\"\"\"Bootstra... sys.exit(main())
" failed with error code 2
========================================================================
I don't understand well if the problem should be corrected in virtualenv or in
the multi-arch Python packaging.
Regards,
Yannick
PS: I created this bug report on a system with the non-multiarch Python 2.7,
so there may be something missing in the informations below.
--- System information. ---
Architecture: amd64
Kernel: Linux 3.6-trunk-amd64
Debian Release: wheezy/sid
500 unstable ftp.fr.debian.org
1 experimental ftp.fr.debian.org
--- Package information. ---
Depends (Version) | Installed
==========================================-+-==================
libpython2.7-minimal (= 2.7.3-11) | 2.7.3-11
mime-support | 3.52-2
libbz2-1.0 | 1.0.6-4
libc6 (>= 2.11) |
libdb5.1 |
libexpat1 (>= 2.1~beta3) |
libgcc1 (>= 1:4.1.1) |
libncursesw5 (>= 5.6+20070908) |
libreadline6 (>= 6.0) |
libsqlite3-0 (>= 3.5.9) |
libssl1.0.0 (>= 1.0.0) |
libtinfo5 |
Package's Recommends field is empty.
Package's Suggests field is empty.
--
Todo bicho que camina, va a parar al asador.
-- Refrán.
Information forwarded
to debian-bugs-dist@lists.debian.org:
Bug#695707; Package libpython2.7-stdlib.
(Tue, 11 Dec 2012 22:12:12 GMT) (full text, mbox, link).
Acknowledgement sent
to Matthias Klose <doko@debian.org>:
Extra info received and forwarded to list.
(Tue, 11 Dec 2012 22:12:12 GMT) (full text, mbox, link).
Message #10 received at 695707@bugs.debian.org (full text, mbox, reply):
Am 11.12.2012 22:33, schrieb Yannick Roehlly:
> Package: libpython2.7-stdlib
> Version: 2.7.3-11
> Severity: normal
> The patch closing bug #695596 makes packages installable on the system but the
> multi-arch breaks the use of python-virtualenv. For instance (use
> virtualenvwrapper):
- the plat-linux2 directory is now renamed to plat-<multiarch>.
I assume virtualenv uses plat-linux2 directly, however I can't
find any reference to that in virtualenv.py.
This will need a fix in the python-virtualenv package.
Does this show up for new virtualenvs too?
- the _sysconfigdata.py module is a backport from python3.3,
so you won't see this with a python2.7 upstream release. I
assume that python3.3 shows the same behaviour.
Information forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#695707; Package libpython2.7-stdlib.
(Tue, 11 Dec 2012 22:54:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Yannick Roehlly <yannick.roehlly@gmail.com>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>.
(Tue, 11 Dec 2012 22:54:03 GMT) (full text, mbox, link).
Message #15 received at 695707@bugs.debian.org (full text, mbox, reply):
Hi Matthias,
Thanks for the quick answer.
Le mardi 11 décembre 2012 23:08:04 Matthias Klose a écrit :
> - the plat-linux2 directory is now renamed to plat-<multiarch>.
> I assume virtualenv uses plat-linux2 directly, however I can't
> find any reference to that in virtualenv.py.
> This will need a fix in the python-virtualenv package.
I had a quick look to the virtualenv source and I noticed in the
virtualenv_embedded/site.py this line:
plat_path = os.path.join(path, 'plat-%s' % sys.platform)
But I'm not sure this is used in the Debian package. Nevertheless, on a multi-
arch installation sys.platform is 'linux2'. Shouldn't it be the full
architecture name?
I'll try to investigate more on virtualenv later.
> Does this show up for new virtualenvs too?
I was trying to create a new virtualenv.
Regards,
Yannick
Information forwarded
to debian-bugs-dist@lists.debian.org:
Bug#695707; Package libpython2.7-stdlib.
(Tue, 11 Dec 2012 23:09:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Matthias Klose <doko@debian.org>:
Extra info received and forwarded to list.
(Tue, 11 Dec 2012 23:09:05 GMT) (full text, mbox, link).
Message #20 received at 695707@bugs.debian.org (full text, mbox, reply):
Am 11.12.2012 23:50, schrieb Yannick Roehlly:
> Hi Matthias,
>
> Thanks for the quick answer.
>
> Le mardi 11 décembre 2012 23:08:04 Matthias Klose a écrit :
>> - the plat-linux2 directory is now renamed to plat-<multiarch>.
>> I assume virtualenv uses plat-linux2 directly, however I can't
>> find any reference to that in virtualenv.py.
>> This will need a fix in the python-virtualenv package.
>
> I had a quick look to the virtualenv source and I noticed in the
> virtualenv_embedded/site.py this line:
>
> plat_path = os.path.join(path, 'plat-%s' % sys.platform)
>
> But I'm not sure this is used in the Debian package. Nevertheless, on a multi-
> arch installation sys.platform is 'linux2'. Shouldn't it be the full
> architecture name?
No. A part of the standard library must not be changed. Proposing to change
this as:
ma = sysconfig.get_config_var('MULTIARCH')
if ma:
plat_path = os.path.join(path, 'plat-%s' % ma)
else:
plat_path = os.path.join(path, 'plat-%s' % sys.platform)
hmm, except that sysconfig.get_config_var already relies on the platform path.
so maybe use glob('plat-*')?
Information forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#695707; Package libpython2.7-stdlib.
(Wed, 12 Dec 2012 19:39:15 GMT) (full text, mbox, link).
Acknowledgement sent
to Barry Warsaw <barry@python.org>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>.
Your message did not contain a Subject field. They are recommended and
useful because the title of a $gBug is determined using this field.
Please remember to include a Subject field in your messages in future.
(Wed, 12 Dec 2012 19:39:15 GMT) (full text, mbox, link).
Message #25 received at 695707@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
How horrible is it to use dpkg-architecture? It adds a dependency on
dpkg-dev, but that doesn't seem so bad to *me*. :)
Attached is a patch that uses dpkg-architecture and fixes the problem for me.
[695707.diff (text/x-patch, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#695707; Package libpython2.7-stdlib.
(Wed, 12 Dec 2012 20:09:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Barry Warsaw <barry@python.org>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>.
Your message did not contain a Subject field. They are recommended and
useful because the title of a $gBug is determined using this field.
Please remember to include a Subject field in your messages in future.
(Wed, 12 Dec 2012 20:09:05 GMT) (full text, mbox, link).
Message #30 received at 695707@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Or this one...
[695707.diff (text/x-patch, attachment)]
Added tag(s) pending.
Request was from warsaw-guest@users.alioth.debian.org
to control@bugs.debian.org.
(Wed, 12 Dec 2012 20:36:03 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org:
Bug#695707; Package libpython2.7-stdlib.
(Thu, 13 Dec 2012 10:09:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Matthias Klose <doko@debian.org>:
Extra info received and forwarded to list.
(Thu, 13 Dec 2012 10:09:03 GMT) (full text, mbox, link).
Message #37 received at 695707@bugs.debian.org (full text, mbox, reply):
Am 12.12.2012 21:06, schrieb Barry Warsaw:
> Or this one...
when creating a virtualenv, you usually know which interpreter you'll be using
for the new env, so why not use the interpreter to get the name of the dir?
python -S -c 'import sys, os.path; print [os.path.basename(d) for d in sys.path
if os.path.basename(d).startswith("plat-")][0]'
Information forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#695707; Package libpython2.7-stdlib.
(Thu, 13 Dec 2012 16:18:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Barry Warsaw <barry@python.org>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>.
(Thu, 13 Dec 2012 16:18:03 GMT) (full text, mbox, link).
Message #42 received at 695707@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Dec 13, 2012, at 11:04 AM, Matthias Klose wrote:
>Am 12.12.2012 21:06, schrieb Barry Warsaw:
>> Or this one...
>
>when creating a virtualenv, you usually know which interpreter you'll be
>using for the new env, so why not use the interpreter to get the name of the
>dir?
>
>python -S -c 'import sys, os.path; print [os.path.basename(d) for d in
>sys.path if os.path.basename(d).startswith("plat-")][0]'
I really don't want to promote hacks like this. It will lead everyone to
inventing their own slightly different ways of doing it, and then we'll have
no clear recommendations, but a million opinions and hacks.
Please see the discussion on debian-python.
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#695707; Package libpython2.7-stdlib.
(Mon, 17 Dec 2012 19:33:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Barry Warsaw <barry@python.org>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>.
(Mon, 17 Dec 2012 19:33:03 GMT) (full text, mbox, link).
Message #47 received at 695707@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
If you apply the multarchi27.diff patch in bug #695958, then this patch to
virtualenv will do the trick.
Ignore the earlier two python-virtualenv patches.
[695707.diff (text/x-patch, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#695707; Package libpython2.7-stdlib.
(Thu, 20 Dec 2012 16:51:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Barry Warsaw <barry@python.org>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>.
Your message did not contain a Subject field. They are recommended and
useful because the title of a $gBug is determined using this field.
Please remember to include a Subject field in your messages in future.
(Thu, 20 Dec 2012 16:51:03 GMT) (full text, mbox, link).
Message #52 received at 695707@bugs.debian.org (full text, mbox, reply):
Alioth svn updated with latest patch based on comments in bug #695958. Once
that gets uploaded, then svn can get sponsored to fix the problem.
Information forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#695707; Package libpython2.7-stdlib.
(Fri, 21 Dec 2012 20:39:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Yannick Roehlly <yannick.roehlly@gmail.com>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>.
Your message did not contain a Subject field. They are recommended and
useful because the title of a $gBug is determined using this field.
Please remember to include a Subject field in your messages in future.
(Fri, 21 Dec 2012 20:39:03 GMT) (full text, mbox, link).
Message #57 received at 695707@bugs.debian.org (full text, mbox, reply):
Hi Barry,
I updated Python 2.7 to experimental and rebuild python-virtualenv with the
multiarch patch. Now that works.
But I add to delete and re-create my virtual environment (sorry, I did not
note down the error message / problem). Maybe this worth an entry in the
readme / changelog / news.
Thanks for the patch (also to Python team).
Yannick
No longer marked as found in versions python2.7/2.7.3-11.
Request was from Stefano Rivera <stefanor@debian.org>
to control@bugs.debian.org.
(Tue, 25 Dec 2012 07:15:03 GMT) (full text, mbox, link).
Marked as found in versions python-virtualenv/1.8.4-1.
Request was from Stefano Rivera <stefanor@debian.org>
to control@bugs.debian.org.
(Tue, 25 Dec 2012 07:15:04 GMT) (full text, mbox, link).
Added blocking bug(s) of 695707: 695958
Request was from Stefano Rivera <stefanor@debian.org>
to control@bugs.debian.org.
(Tue, 25 Dec 2012 07:15:04 GMT) (full text, mbox, link).
Reply sent
to Barry Warsaw <barry@python.org>:
You have taken responsibility.
(Tue, 25 Dec 2012 07:51:07 GMT) (full text, mbox, link).
Notification sent
to Yannick Roehlly <yannick.roehlly@gmail.com>:
Bug acknowledged by developer.
(Tue, 25 Dec 2012 07:51:08 GMT) (full text, mbox, link).
Message #70 received at 695707-close@bugs.debian.org (full text, mbox, reply):
Source: python-virtualenv
Source-Version: 1.8.4-2
We believe that the bug you reported is fixed in the latest version of
python-virtualenv, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 695707@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Barry Warsaw <barry@python.org> (supplier of updated python-virtualenv package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 25 Dec 2012 02:06:34 -0500
Source: python-virtualenv
Binary: python-virtualenv
Architecture: source all
Version: 1.8.4-2
Distribution: experimental
Urgency: low
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Changed-By: Barry Warsaw <barry@python.org>
Description:
python-virtualenv - Python virtual environment creator
Closes: 695707
Changes:
python-virtualenv (1.8.4-2) experimental; urgency=low
.
* Team upload.
* debian/patches/multiarch.patch: Use system multiarch path, if available.
Closes: #695707
Checksums-Sha1:
702d735ed149a2ca1ddf4765f25b3c98a3d19c6c 2192 python-virtualenv_1.8.4-2.dsc
7babfb38eb1a4ab2eb0b532327040291cdef3f6d 13177 python-virtualenv_1.8.4-2.debian.tar.gz
22afbbd2daa3ec74fe49c8b5bd4f4549e4799ee8 1825284 python-virtualenv_1.8.4-2_all.deb
Checksums-Sha256:
1b2cb519f2088e6fd3a1f01edcfd2e4265031f4f04ae1617a6aa0ab0d710bd22 2192 python-virtualenv_1.8.4-2.dsc
8a967e3d313355d0f5f38ec1d5767b26f2e9e154840c6ae2483b7b1d4d4cd4af 13177 python-virtualenv_1.8.4-2.debian.tar.gz
2ae8c87bdad6909b3e8bc5d00adbf75a2654c11cde18887975afafe71bc14e1a 1825284 python-virtualenv_1.8.4-2_all.deb
Files:
96f8f1a8724529035316ab8f666daaaf 2192 python optional python-virtualenv_1.8.4-2.dsc
9d9e3738cc4e1cddb2e7ec0de61a6e0b 13177 python optional python-virtualenv_1.8.4-2.debian.tar.gz
17b9445c95368d3f3cc9508809faf063 1825284 python optional python-virtualenv_1.8.4-2_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBCgAGBQJQ2VcjAAoJEACQ/CG1zRrM4DgP/0nKrhqlySXl3ohewmE85uqv
7teHKs6QPYFmegVIhla3/9mZ2FHQla/DXncQ7ngbLYTfNuAqH1tldDUZYyhrpR9o
5s9CDJttbosII0PyPs6M5O54LPA77cWdm6HYHgfNieLAuHQaYc04XeV+mM7AEzGs
30AVvFfzRbN3eofA4PivwZSdEykPLIXW62F/4GfrzULV5PHAirtm29D4ngQXQokJ
3XflcFwP1o6DYufbFw02J6QadxgVS9E52uQCvCOt8g/ppkX+tnzU+4xrsqHwZUmI
iVQ7aISDscgoS/iL64rutx4LXkjgXnJKfwr2j1sukOUKtVxe6caFBaVi9LAh0okp
3ia1jtRaxCC+dyvBOsib2zQaQBcLoNDTroyQIUZXqVreZEmH+RJY6QzeXx5SRV11
MlZq0UbFkrFGECOE0ZsMb5NkWUatMTzYpAZMTrKkQ1WU59e5EvvhtlodM3JeTsP/
X2TyC1zh9dbU2q8Lz+xl81KyNC3769tdPxy9mT+gePy4Z5X8gMAw+NBmUORJlPnT
iHUEkv8O7J46j6HoU0tA77fmHyG1NEVe/Ymz/v1r78zf2Wv3WjdSlfZNwGU088vs
mU6/8i3IRY4dZPLapKRR94xLp6g7TdLpljAyJ7hluQynjWzVb86dNg3aFQOM0tPI
loZrTC4+s8TYyC2szNNV
=UMYJ
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 23 Jan 2013 07:25:45 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Fri Jan 12 06:35:28 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.