Closed
Bug 837631
Opened 13 years ago
Closed 13 years ago
Virtualenv failing on multi-arch Debian-based distros
Categories
(Firefox Build System :: General, defect)
Tracking
(blocking-b2g:leo+, firefox21 fixed, firefox-esr17 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 wontfix)
People
(Reporter: marco, Assigned: gps)
References
Details
(Whiteboard: [tef-triage])
Attachments
(4 files)
|
914.60 KB,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
|
2.22 KB,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
|
19.68 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
|
1.13 MB,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
I can't build Firefox on Linux anymore.
This is the build log:
Creating Python environment
New python executable in /home/marco/Scrivania/FD/src/obj-x86_64-unknown-linux-gnu/_virtualenv/bin/python2.7
Not overwriting existing python script /home/marco/Scrivania/FD/src/obj-x86_64-unknown-linux-gnu/_virtualenv/bin/python (you must use /home/marco/Scrivania/FD/src/obj-x86_64-unknown-linux-gnu/_virtualenv/bin/python2.7)
Installing setuptools...................................
Complete output from command /home/marco/Scrivani...ualenv/bin/python2.7 -c "#!python
\"\"\"Bootstra...sys.argv[1:])
" /home/marco/Scrivani...ols-0.6c11-py2.7.egg:
Traceback (most recent call last):
File "<string>", line 279, in <module>
File "<string>", line 240, in main
File "/home/marco/Scrivania/FD/src/python/virtualenv/virtualenv_support/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1712, in main
File "/home/marco/Scrivania/FD/src/python/virtualenv/virtualenv_support/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
File "/home/marco/Scrivania/FD/src/python/virtualenv/virtualenv_support/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1716, in <lambda>
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 "/home/marco/Scrivania/FD/src/python/virtualenv/virtualenv_support/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 125, in finalize_options
File "/home/marco/Scrivania/FD/src/python/virtualenv/virtualenv_support/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1121, in _expand
File "/usr/lib/python2.7/distutils/cmd.py", line 312, in get_finalized_command
cmd_obj.ensure_finalized()
File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/home/marco/Scrivania/FD/src/python/virtualenv/virtualenv_support/setuptools-0.6c11-py2.7.egg/setuptools/command/install.py", line 32, in finalize_options
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/marco/Scrivania/FD/src/obj-x86_64-unknown-linux-gnu/_virtualenv/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 503, in get_config_vars
func()
File "/usr/lib/python2.7/distutils/sysconfig.py", line 447, 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
----------------------------------------
...Installing setuptools...done.
Traceback (most recent call last):
File "/home/marco/Scrivania/FD/src/python/virtualenv/virtualenv.py", line 2476, in <module>
main()
File "/home/marco/Scrivania/FD/src/python/virtualenv/virtualenv.py", line 942, in main
never_download=options.never_download)
File "/home/marco/Scrivania/FD/src/python/virtualenv/virtualenv.py", line 1052, in create_environment
search_dirs=search_dirs, never_download=never_download)
File "/home/marco/Scrivania/FD/src/python/virtualenv/virtualenv.py", line 599, in install_setuptools
search_dirs=search_dirs, never_download=never_download)
File "/home/marco/Scrivania/FD/src/python/virtualenv/virtualenv.py", line 571, in _install_req
cwd=cwd)
File "/home/marco/Scrivania/FD/src/python/virtualenv/virtualenv.py", line 1020, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /home/marco/Scrivani...ualenv/bin/python2.7 -c "#!python
\"\"\"Bootstra...sys.argv[1:])
" /home/marco/Scrivani...ols-0.6c11-py2.7.egg failed with error code 1
Traceback (most recent call last):
File "/home/marco/Scrivania/FD/src/build/virtualenv/populate_virtualenv.py", line 356, in <module>
manager.ensure()
File "/home/marco/Scrivania/FD/src/build/virtualenv/populate_virtualenv.py", line 100, in ensure
return self.build()
File "/home/marco/Scrivania/FD/src/build/virtualenv/populate_virtualenv.py", line 290, in build
self.create()
File "/home/marco/Scrivania/FD/src/build/virtualenv/populate_virtualenv.py", line 119, in create
raise Exception('Error creating virtualenv.')
Exception: Error creating virtualenv.
| Assignee | ||
Comment 1•13 years ago
|
||
Looks like this is fixed in Virtualenv 1.8.5 which is unreleased. I plan to upgrade to 1.8.4 then cherry-pick the multi-arch change from 1.8.5.
In this patch, I |rm -rf| python/virtualenv then uncompressed the 1.8.4 archive in its place then did |hg add| |hg rm| as appropriate. r+ should pretty much be a rubber stamp.
Comment 2•13 years ago
|
||
Comment on attachment 709752 [details] [diff] [review]
Part 1: Upgrade Virtualenv to 1.8.4
rs=me, assuming it is what is advertized. While you're here, could you just add a script handling these updates, like we have for various other third-party imports? (like jemalloc, unwind, etc.)
Attachment #709752 -
Flags: review?(mh+mozilla) → review+
| Assignee | ||
Comment 3•13 years ago
|
||
This is the same patch as posted on http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695707. This is an upstream patch, so r+ should be a rubber stamp.
Attachment #709754 -
Flags: review?(mh+mozilla)
Updated•13 years ago
|
Attachment #709754 -
Flags: review?(mh+mozilla) → review+
| Assignee | ||
Updated•13 years ago
|
Summary: Virtualenv problems → Virtualenv failing on multi-arch Debian-based distros
| Assignee | ||
Comment 4•13 years ago
|
||
| Reporter | ||
Comment 5•13 years ago
|
||
With those two patches applied, I still can't build.
| Assignee | ||
Comment 7•13 years ago
|
||
Marco reported on IRC that a clobber didn't work either :/
Marco is also running 2.7.3-15. I'm not sure what is going on in Debian land.
Flags: needinfo?(mar.castelluccio)
| Reporter | ||
Updated•13 years ago
|
See Also: → https://launchpad.net/bugs/1115466
Comment 8•13 years ago
|
||
FWIW, I was able to work around this by adding a symlink to /usr/lib/python2.7 , with the commands that I noted over on the ubuntu bug report:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1115466/comments/7
...but it's a bit scary to go manually mucking around in /usr/lib, so it's not a great long-term workaround.
Comment 9•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f6d2ec030613
https://hg.mozilla.org/mozilla-central/rev/661f7866da20
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Comment 10•13 years ago
|
||
This still doesn't work because virtualenv.py needs to be refreshed to pick up the changes to site.py
Attachment #710215 -
Flags: review?(mh+mozilla)
Updated•13 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•13 years ago
|
Attachment #710215 -
Flags: review?(mh+mozilla) → review?(gps)
| Assignee | ||
Comment 11•13 years ago
|
||
Comment on attachment 710215 [details] [diff] [review]
Refresh virtualenv.py to pick up the changes from 661f7866da20
Review of attachment 710215 [details] [diff] [review]:
-----------------------------------------------------------------
Good catch. I didn't realize you needed to do this :/
I /think/ if we call into the Virtualenv Python API directly we wouldn't need to do this. Something to consider for a follow-up bug.
Attachment #710215 -
Flags: review?(gps) → review+
Updated•13 years ago
|
Keywords: checkin-needed
Comment 12•13 years ago
|
||
Keywords: checkin-needed
Comment 13•13 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Comment 14•13 years ago
|
||
But http://dxr.mozilla.org/mozilla-central/testing/marionette/client/marionette/venv_test.sh#l6 still uses "1.8.2". B2G Marionette still suffers from the same problem and need at least commit 38d56d9[1] to include the same change.
[1]: https://github.com/pypa/virtualenv/commit/38d56d9b83b9902c942412482b401fd72c2320bd
Comment 15•13 years ago
|
||
Please file a new bug for this problem.
Comment 16•12 years ago
|
||
Can we please uplift this to b2g? Now that people are updating to the new version of Ubuntu, they're going to run into this problem.
This is blocking development (I think -- I think I have another, separate build problem), so tef?
blocking-b2g: --- → tef?
Comment 17•12 years ago
|
||
Actually...I see these errors, but now that my other build problem (needed to recompile clang) is cleared up, the virtualenv errors don't seem to be preventing me from getting a successful build.
Do we need to care about these errors?
Updated•12 years ago
|
Whiteboard: [tef-triage]
Comment 18•12 years ago
|
||
I updated comm-central on Sunday, May 5th. From all I can see, it is still affected. When will this be fixed for comm-central?
Comment 19•12 years ago
|
||
Apparently there is another virtualenv.py in comm at mail/test/resources/virtualenv/virtualenv.py, and that one is still 1.7 ...
File a new bug on this?
Comment 20•12 years ago
|
||
See bug 837631
Comment 21•12 years ago
|
||
Bug 869609 I meant, sorry.
Comment 22•12 years ago
|
||
We'd rather not take this change on v1.0.1 (devs can apply locally as necessary). leo+ though to get this into v1.1.
blocking-b2g: tef? → leo+
| Assignee | ||
Comment 23•12 years ago
|
||
python/virtualenv from mozilla-central at feccfce43b59 replaces the
existing virtualenv.
Attachment #750606 -
Flags: review?(mh+mozilla)
Comment 24•12 years ago
|
||
Comment on attachment 750606 [details] [diff] [review]
Upgrade Virtualenv to 1.8.4 and backport upstream fixes
Review of attachment 750606 [details] [diff] [review]:
-----------------------------------------------------------------
I'd like this on esr17 too (it now fails to build on debian unstable because of this bug)
Attachment #750606 -
Flags: review?(mh+mozilla) → review+
Comment 25•12 years ago
|
||
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-firefox21:
--- → fixed
Comment 26•12 years ago
|
||
Comment on attachment 750606 [details] [diff] [review]
Upgrade Virtualenv to 1.8.4 and backport upstream fixes
[Approval Request Comment]
If this is not a sec:{high,crit} bug, please state case for ESR consideration: This prevents building ESR on Debian and probably Ubuntu.
Fix Landed on Version: 21 and b2g18.
Risk to taking this patch (and alternatives if risky): Low
String or UUID changes made by this patch: None
Attachment #750606 -
Flags: approval-mozilla-esr17?
Updated•12 years ago
|
Flags: in-moztrap-
Updated•12 years ago
|
Attachment #750606 -
Flags: approval-mozilla-esr17? → approval-mozilla-esr17+
Comment 27•12 years ago
|
||
status-firefox-esr17:
--- → fixed
Updated•8 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•