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.
|