New submission from Sam Saint-Pettersen <s.stpetter...@gmail.com>: Freeze tool can generate Makefile and C code for Python programs using the JSON module. The code can be compiled fine, but when a program using the JSON module is run, this is returned:
Traceback (most recent call last): 2 File "myProgram.py", line 15, in <module> 3 import json 4 File "/usr/local/lib/python2.7/json/__init__.py", line 108, in <module> 5 from .decoder import JSONDecoder 6 File "/usr/local/lib/python2.7/json/decoder.py", line 24, in <module> 7 NaN, PosInf, NegInf = _floatconstants() 8 File "/usr/local/lib/python2.7/json/decoder.py", line 18, in _floatconstants 9 _BYTES = '7FF80000000000007FF0000000000000'.decode('hex') 10 LookupError: unknown encoding: hex Something to do with .decode('hex') apparently. ---------- components: Demos and Tools messages: 111188 nosy: sam.sp priority: normal severity: normal status: open title: freeze tool cannot handle JSON module properly type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9329> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com