<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7020</bug_id>
          
          <creation_ts>2014-12-03 10:28:25 +0000</creation_ts>
          <short_desc>python-json should RDEPENDS python-codecs</short_desc>
          <delta_ts>2014-12-11 22:00:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Magnus Olsson">magnus</reporter>
          <assigned_to name="Alejandro Hernandez">alejandro.hernandez</assigned_to>
          <cc>alejandro.hernandez</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47319</commentid>
    <comment_count>0</comment_count>
    <who name="Magnus Olsson">magnus</who>
    <bug_when>2014-12-03 10:28:25 +0000</bug_when>
    <thetext>Without python-codecs, python-json is broken. Whenever you import the module in Python, you&apos;ll get the following error:

&gt;&gt;&gt; import json
Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/usr/lib/python2.7/json/__init__.py&quot;, line 108, in &lt;module&gt;
    from .decoder import JSONDecoder
  File &quot;/usr/lib/python2.7/json/decoder.py&quot;, line 24, in &lt;module&gt;
    NaN, PosInf, NegInf = _floatconstants()
  File &quot;/usr/lib/python2.7/json/decoder.py&quot;, line 18, in _floatconstants
    _BYTES = &apos;7FF80000000000007FF0000000000000&apos;.decode(&apos;hex&apos;)
LookupError: no codec search functions registered: can&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47368</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-12-04 15:51:20 +0000</bug_when>
    <thetext>Magnus, can you send a tested patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47392</commentid>
    <comment_count>2</comment_count>
    <who name="Magnus Olsson">magnus</who>
    <bug_when>2014-12-05 10:28:14 +0000</bug_when>
    <thetext>Sure, I have posted a patch to http://patches.openembedded.org/patch/84475/

It applies a fix to Python v2.7. Python v3 might suffer from the same issue, but since Python 3 (core) doesn&apos;t seem to function at all without python3-codecs, it&apos;s probably something that will be addressed by #6967.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47532</commentid>
    <comment_count>3</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2014-12-11 22:00:06 +0000</bug_when>
    <thetext>Fix, also python3 was indeed fixed by #6967

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2b945a95444b722ac97c78783dd82f8d65b0254e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>