| Summary: |
python-json should RDEPENDS python-codecs |
| Product: |
[Build System, Metadata & Runtime] OE-Core
|
Reporter: |
Magnus Olsson <magnus> |
| Component: |
devtools / tool chain | Assignee: |
Alejandro Hernandez <alejandro.hernandez> |
| Status: |
RESOLVED
FIXED
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
Medium
|
CC: |
alejandro.hernandez, meta.mr.watcher, meta.watcher, ross.burton
|
| Version: |
unspecified | |
|
| Target Milestone: |
1.8 | |
|
| Hardware: |
All | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
No (bug/feature does not impact docs)
|
Without python-codecs, python-json is broken. Whenever you import the module in Python, you'll get the following error: >>> import json Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/json/__init__.py", line 108, in <module> from .decoder import JSONDecoder File "/usr/lib/python2.7/json/decoder.py", line 24, in <module> NaN, PosInf, NegInf = _floatconstants() File "/usr/lib/python2.7/json/decoder.py", line 18, in _floatconstants _BYTES = '7FF80000000000007FF0000000000000'.decode('hex') LookupError: no codec search functions registered: can't find encoding The problem is that part of the JSON initialization code try to use the HEX codec. This issue goes away if you also install python-codecs. python-2.7-manifest.inc should probably be re-generated with this RDEPENDS for python-json.