If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Update Python in MozillaBuild to 2.7.5

VERIFIED FIXED

Status

mozilla.org
MozillaBuild
VERIFIED FIXED
4 years ago
4 years ago

People

(Reporter: myk, Assigned: RyanVM)

Tracking

Details

(URL)

(Reporter)

Description

4 years ago
Python 2.7.4 has a bug <http://bugs.python.org/issue17656> that causes the Firefox OS Simulator's build process to fail in MozillaBuild 1.7 with:

--------------------------------------------------------------------------------
Traceback (most recent call last):
   File "build/override-webapps.py", line 46, in <module>
   File "c:\mozilla-build\python\lib\zipfile.py", line 1024, in extract
     return self._extract_member(member, path, pwd)
   File "c:\mozilla-build\python\lib\zipfile.py", line 1057, in
_extract_member
     arcname = arcname.translate(table)
TypeError: character mapping must return integer, None or unicode
--------------------------------------------------------------------------------

Once Python ships 2.7.5, which Benjamin Peterson suggests they're going to do to address this issue <http://bugs.python.org/issue17656#msg186444>, it'd be very helpful for MozillaBuild to ship an update that includes the new version of Python, since the Simulator team uses MozillaBuild to build on Windows, and this bug prevents us from using MozillaBuild 1.7.
Bummer. In the meantime, you can just delete the python dir inside your mozilla-build install and install some other version of Python in there, MozillaBuild doesn't care what version it is.
2.7.5 has been released:

http://www.python.org/download/releases/2.7.5/
(Assignee)

Comment 3

4 years ago
http://hg.mozilla.org/mozilla-build/rev/713f5c87f2e7

Hopefully we can spin up a 1.7.1 prerelease build shortly.
Assignee: nobody → ryanvm
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
(Reporter)

Comment 4

4 years ago
(In reply to Ryan VanderMeulen [:RyanVM] from comment #3)
> http://hg.mozilla.org/mozilla-build/rev/713f5c87f2e7
> 
> Hopefully we can spin up a 1.7.1 prerelease build shortly.

Awesome, thanks!  Let me know when you do (or just cc: me on the relevant bug), and I'll test it in advance to make sure it resolves the problem with building the Simulator.
(Assignee)

Comment 5

4 years ago
Wow, that took a lot longer than anticipated. Regardless, here's a build to test with.
http://people.mozilla.org/~rvandermeulen/MozillaBuildSetup1.8.0pre.exe

Sorry for the insanely long delay on this. I promise it won't take this long in the future.
(Reporter)

Comment 6

4 years ago
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #5)
> Wow, that took a lot longer than anticipated. Regardless, here's a build to
> test with.
> http://people.mozilla.org/~rvandermeulen/MozillaBuildSetup1.8.0pre.exe

Yup, the Simulator build process works as expected with that version of MozillaBuild.  Thanks for the fix!
Status: RESOLVED → VERIFIED
(Assignee)

Comment 7

4 years ago
Great, thanks!
(Assignee)

Updated

4 years ago
Depends on: 904124
You need to log in before you can comment on or make changes to this bug.