<?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>6967</bug_id>
          
          <creation_ts>2014-11-13 22:49:26 +0000</creation_ts>
          <short_desc>Python 3 doesn&apos;t work without python3-modules</short_desc>
          <delta_ts>2015-02-17 14:18:00 +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>1.7</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Alejandro Hernandez">alejandro.hernandez</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Mihail Stanciu">stanciux.mihail</qa_contact>
          <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>47008</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-11-13 22:49:26 +0000</bug_when>
    <thetext>A minimal install of python3, that is just python3-core without python3-modules, can&apos;t start an interactive interpreter:

root@qemux86:~# python3
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named &apos;encodings&apos;
Aborted

After installing the following packages the interpreter starts:

python3-codecs_3.3.3-r0.0.1_i586.ipk
python3-misc_3.3.3-r0.0.1_i586.ipk
python3-io_3.3.3-r0.0.1_i586.ipk
python3-math_3.3.3-r0.0.1_i586.ipk

python3-misc is for reprlib, so this should be moved to another package to avoid pulling in all of python3-misc.  Also python3-io pulls in libssl/libcrypto so it might be worth investigating if the core IO modules can be moved into a core package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47531</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2014-12-11 21:58:08 +0000</bug_when>
    <thetext>A minimal install of python3-core now works out of the box, also, python3-misc is not necessary anymore, a package python3-reprlib was created to solve this issue.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=74d4a5cb908c08f5e76886923430f898b4d62015</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48879</commentid>
    <comment_count>2</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2015-02-17 14:18:00 +0000</bug_when>
    <thetext>Verified on master: 6ae933b75c1c34a9d39e1aff0a0cb26a7ce4677f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>