_sysconfigdata_nd.py missing in /usr/lib/python2.7/
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | python2.7 (Ubuntu) |
Undecided
|
Unassigned | ||
| | virtualenv (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
The file is present on Debian.
This is causing virtualenv to fail, and probably other modules too.
| affects: | python-defaults (Ubuntu) → python2.7 (Ubuntu) |
| Matthias Klose (doko) wrote : | #2 |
$ dpkg -S _sysconfigdata_
libpython2.
so it's there, and no, the (closed) Debian issues are not related. so what are you trying to report?
| Changed in python2.7 (Ubuntu): | |
| status: | New → Incomplete |
This is the build log, when I try to build Firefox:
Creating Python environment
Cannot find file /usr/include/
New python executable in /home/marco/
Not overwriting existing python script /home/marco/
Installing setuptools.
Complete output from command /home/marco/
\"\"\"Bootstra.
" /home/marco/
Traceback (most recent call last):
File "<string>", line 278, in <module>
File "<string>", line 239, in main
File "/home/
File "/home/
File "/home/
File "/usr/lib/
dist.
File "/usr/lib/
self.
File "/usr/lib/
cmd_
File "/usr/lib/
self.
File "/home/
File "/home/
File "/usr/lib/
cmd_
File "/usr/lib/
self.
File "/home/
File "/usr/lib/
(prefix, exec_prefix) = get_config_
File "/home/
real_vars = old_get_
File "/usr/lib/
func()
File "/usr/lib/
from _sysconfigdata import build_time_vars
File "/usr/lib/
from _sysconfigdata_nd import *
ImportError: No module named _sysconfigdata_nd
-------
...Installing setuptool...
Moving the file from /usr/lib/
| Launchpad Janitor (janitor) wrote : | #6 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in virtualenv (Ubuntu): | |
| status: | New → Confirmed |
| Daniel Holbert (dholbert) wrote : | #7 |
Marco's workaround in comment 4 here fixed the problem for me, too (though I used a symlink instead of moving the file).
Specifically, I ran these commands:
cd /usr/lib/python2.7
ln -s plat-x86_
and I was able to build firefox after doing that.
| Dimitri John Ledkov (xnox) wrote : | #8 |
Python has been recently multiarched, virtualenv should be fixed to include multiarch python locations.
The comment #4 nor #7 are not "fixes" they just break co-installing python for multiple architectures.
No one said they are fixes. They are workarounds. However the problem was in the in-tree virtualenv in the Firefox source code.
| Changed in virtualenv (Ubuntu): | |
| status: | Confirmed → Fix Released |
| Dimitri John Ledkov (xnox) wrote : | #10 |
Cool, thanks for the update.
| Changed in virtualenv (Ubuntu): | |
| status: | Fix Released → Invalid |
| Changed in python2.7 (Ubuntu): | |
| status: | Incomplete → Invalid |
| Dražen Lučanin (kermit666) wrote : | #11 |
Yup, as Mar-castelluccio said - the problem could be in the currently packaged version of virtualenv. After upgrading to the latest version in the Cheese shop
sudo pip install --upgrade virtualenv
the problem seems to be fixed.
| Karel Vervaeke (karel-vervaeke) wrote : | #12 |
sudo pip install --upgrade virtualenv did not seem to solve the problem in my case.
The workaround from comment #4 did.
| Roberto Longobardi (seccanj) wrote : | #13 |
With lubuntu 13.04, "sudo pip install --upgrade virtualenv" actually resolves the problem.
You will need to install pip, using "sudo apt-get install python-pip" first.
| arky (arky) wrote : | #14 |
Here is workaround for 13.04
cd /usr/lib/python2.7
sudo ln -s plat-x86_
| Wim Feijen (wimfeijen) wrote : | #15 |
sudo pip install --upgrade virtualenv
works for me, on Ubuntu 13.10. Thanks!
| Julien Eid (jeid64) wrote : | #16 |
This is still a confirmed issue for us on 13.04 and 14.04. Debian has a fix merged already for multiple months and the workaround is not very good for those who need to package their applications and cannot update virtualenv using pip or mess with /usr/lib/python. Is it possible we can get the fix from Debian merged?
| Bryce Nesbitt (bryce2) wrote : | #17 |
See also the pip issues, which I found to be at the
heart of virtualenv issues https:/


Related Debian bugs: bugs.debian. org/cgi- bin/bugreport. cgi?bug= 695707 bugs.debian. org/cgi- bin/bugreport. cgi?bug= 695958
http://
http://