Closed
Bug 671522
Opened 14 years ago
Closed 14 years ago
LookupError: unknown encoding: cp720
Categories
(Firefox Build System :: MozillaBuild, task)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 578584
People
(Reporter: khal3d.inbox+bugzilla, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0
Build ID: 20110615151330
Steps to reproduce:
cfx run
Actual results:
Traceback (most recent call last):
File "C:\addon-sdk-1.0\bin\cfx", line 29, in <module>
cuddlefish.run()
File "C:\addon-sdk-1.0\python-lib\cuddlefish\__init__.py", line 783, in run
norun=options.no_run)
File "C:\addon-sdk-1.0\python-lib\cuddlefish\runner.py", line 293, in run_app
print >>sys.stderr, "Using binary at '%s'." % runner.binary
LookupError: unknown encoding: cp720
Reporter | ||
Updated•14 years ago
|
OS: Other → Windows 7
Hardware: All → x86
Reporter | ||
Comment 1•14 years ago
|
||
I fix this problem by download cp720.py [ http://blog.oneortheother.info/wp-content/uploads/2007/11/cp720.zip ] and copied it to C:\mozilla-build\python\Lib\encodings
Comment 2•14 years ago
|
||
It looks like this is the blog post that goes along with that cp720.py workaround:
http://blog.oneortheother.info/tip/python-fix-cp720-encoding/
And this is the longstanding Python bug on the problem:
http://bugs.python.org/issue1616979
Brian: does this seem like something we should work around in the SDK, or would it be better to land cp720.py in MozillaBuild?
Comment 4•14 years ago
|
||
hm. I think it'd be better to land it in MozillaBuild.
Really, the fix should be in the most general place possible. It's fixed in
python-2.7 (but missing from py2.6), which is the Right Place. But the
next-most-Right place would be MozillaBuild, since that will also help out
other python programs on cp720-using systems (mozrunner comes to mind.. not
sure of MozillaBuild includes other python-based tools but them too). Adding
it to Jetpack is a last-resort, as any other python programs would also need
their own workarounds.
Is that feasible? Does MozillaBuild include a copy of Python (and its stdlib, such that we could add cp720.py to that directory?).
Comment 5•14 years ago
|
||
Per comment 4, moving this to MozillaBuild's product/component. Note also bug 578584 on updating the Python in MozillaBuild to 2.7, which would also fix the problem.
Status: UNCONFIRMED → NEW
Component: General → MozillaBuild
Ever confirmed: true
Product: Add-on SDK → mozilla.org
QA Contact: general → mozillabuild
Whiteboard: [triage:followup]
Version: unspecified → other
Yeah, we should just update python.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Updated•2 years ago
|
Product: mozilla.org → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•