Build broken: "Error populating virtualenv"

RESOLVED FIXED in mozilla19

Status

defect
--
blocker
RESOLVED FIXED
7 years ago
Last year

People

(Reporter: roc, Assigned: gps)

Tracking

18 Branch
mozilla19
x86_64
Windows 7
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Changset c6fe2305d29c. Clean build in a new directory using
  pymake -sC obj-ff-debug2 -f ../client.mk
MOZCONFIG in use, but probably not relevant since it always worked before and has nothing fancy in it.

Build fails like so:

Installing pip...................done.
Traceback (most recent call last):
  File "z:/roc/mozilla-inbound/build/virtualenv/populate_virtualenv.py", line 319, in <module>
    manager.populate()
  File "z:/roc/mozilla-inbound/build/virtualenv/populate_virtualenv.py", line 140, in populate
    fh = open(self.manifest_path, 'rUt')
ValueError: Invalid mode ('rbt')
Traceback (most recent call last):
  File "z:/roc/mozilla-inbound/build/virtualenv/populate_virtualenv.py", line 321, in <module>
    manager.ensure()
  File "z:/roc/mozilla-inbound/build/virtualenv/populate_virtualenv.py", line 75, in ensure
    return self.build()
  File "z:/roc/mozilla-inbound/build/virtualenv/populate_virtualenv.py", line 270, in build
    raise Exception('Error populating virtualenv.')
Exception: Error populating virtualenv.
Python 2.7.2 from MozillaBuild, if that helps.
Blocks: 802210
Same problem for me.  Python 2.7.2 from MozillaBuild as well.


checking for python2.7... /c/Mozilla/mozilla-build/python/python2.7
Creating Python environment
New python executable in c:/Mozilla/src/mozilla-central/_obj-browser-debug/_virtualenv\Scripts\python2.7.exe
Also creating executable in c:/Mozilla/src/mozilla-central/_obj-browser-debug/_virtualenv\Scripts\python.exe
Installing setuptools................done.
Installing pip...................done.
Traceback (most recent call last):
  File "c:/Mozilla/src/mozilla-central/build/virtualenv/populate_virtualenv.py", line 319, in <module>
    manager.populate()
  File "c:/Mozilla/src/mozilla-central/build/virtualenv/populate_virtualenv.py", line 140, in populate
    fh = open(self.manifest_path, 'rUt')
ValueError: Invalid mode ('rbt')
Traceback (most recent call last):
  File "c:/Mozilla/src/mozilla-central/build/virtualenv/populate_virtualenv.py", line 321, in <module>
    manager.ensure()
  File "c:/Mozilla/src/mozilla-central/build/virtualenv/populate_virtualenv.py", line 75, in ensure
    return self.build()
  File "c:/Mozilla/src/mozilla-central/build/virtualenv/populate_virtualenv.py", line 270, in build
    raise Exception('Error populating virtualenv.')
Exception: Error populating virtualenv.
*** Fix above errors and then restart with               "c:/Mozilla/mozilla-build/python/python.exe c:/Mozilla/src/mozilla-central/build/pymake/pymake/../mak
e.py -f client.mk build"
c:\Mozilla\src\mozilla-central\client.mk:310:0: command 'cd c:/Mozilla/src/mozilla-central/_obj-browser-debug &&  MAKE="c:/Mozilla/mozilla-build/python/python
.exe c:/Mozilla/src/mozilla-central/build/pymake/pymake/../make.py"  c:/Mozilla/src/mozilla-central/configure  \
  || ( echo "*** Fix above errors and then restart with\
               \"c:/Mozilla/mozilla-build/python/python.exe c:/Mozilla/src/mozilla-central/build/pymake/pymake/../make.py -f client.mk build\"" && exit 1 )' f
ailed, return code 1
c:\Mozilla\src\mozilla-central\client.mk:322:0: command 'c:/Mozilla/mozilla-build/python/python.exe c:/Mozilla/src/mozilla-central/build/pymake/pymake/../make
.py -f c:/Mozilla/src/mozilla-central/client.mk configure' failed, return code 2
c:\Mozilla\src\mozilla-central\client.mk:152:0: command 'c:/Mozilla/mozilla-build/python/python.exe c:/Mozilla/src/mozilla-central/build/pymake/pymake/../make
.py -f c:/Mozilla/src/mozilla-central/client.mk realbuild' failed, return code 2
Severity: normal → blocker
Assignee

Comment 3

7 years ago
I haven't tested but I'm reasonably confident this fixes it.

I'll land straight in m-c.
Assignee: nobody → gps
Status: NEW → ASSIGNED
Attachment #674247 - Flags: review?(mh+mozilla)
Attachment #674247 - Flags: feedback?(roc)
Comment on attachment 674247 [details] [diff] [review]
Hopefuly fix, v1

Review of attachment 674247 [details] [diff] [review]:
-----------------------------------------------------------------

I made roc try that earlier, so i know it works.
Attachment #674247 - Flags: review?(mh+mozilla)
Attachment #674247 - Flags: review+
Attachment #674247 - Flags: feedback?(roc)
Assignee

Comment 5

7 years ago
https://hg.mozilla.org/mozilla-central/rev/a517f7ea5bef

I wonder why buildbot didn't catch this...
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
The build slaves aren't running a stock MozillaBuild, FWIW. I'm not sure of the exact versions of things they have.
Can this fix land on comm-central too, please? Nightly repacks for Thunderbird on Windows are currently broken.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to Chris Cooper [:coop] from comment #7)
> Can this fix land on comm-central too, please? Nightly repacks for
> Thunderbird on Windows are currently broken.

There is no comm-* copy of that file, however I know mcsmurf is working on a py+virtualenv syncup for configure for us in Bug 803834 which is currently being staged on comm-try for TB
Since bug 803834 is FIXED now, we just need a corresponding config change for Thunderbird in the buildbot-configs.
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED

Updated

Last year
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.