<?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>13142</bug_id>
          
          <creation_ts>2019-01-16 12:33:05 +0000</creation_ts>
          <short_desc>Python3 curses module isn&apos;t complete</short_desc>
          <delta_ts>2019-01-22 11:28: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>2.6.2</version>
          <rep_platform>x86</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>2.7 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>82807</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-01-16 12:33:05 +0000</bug_when>
    <thetext>python-native:

$ ./python3
Python 3.5.6 (default, Mar  9 2018, 12:34:56)
[GCC 6.3.0 20170516] on linux
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import curses
&gt;&gt;&gt; curses.unget_wch()
AttributeError: module &apos;curses&apos; has no attribute &apos;unget_wch&apos;

https://docs.python.org/3/library/curses.html#curses.unget_wch

My host python3 on Debian works:

&gt;&gt;&gt; curses.unget_wch()
_curses.error: must call initscr() first

https://github.com/python/cpython/blob/master/Modules/_cursesmodule.c#L1320 shows that this is dependent on finding libncursesw, but libncursesw.so.5.9 is in the sysroot.

So, something in either upstream configure scripts or our numerous patches to Python, is breaking it.  Or maybe Debian have a patch we need?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82808</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2019-01-16 15:14:09 +0000</bug_when>
    <thetext>I can look into it, but I was also just about to start the python-sanity project... :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82817</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-01-17 15:37:25 +0000</bug_when>
    <thetext>A test case which tests this would be great as this keeps getting broken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82826</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2019-01-18 11:24:50 +0000</bug_when>
    <thetext>This was actually broken from the start, as one of the recipe patches forces python to build with ncurses (not the wide-char version ncursesw). Should be a simple one-liner fix:

http://lists.openembedded.org/pipermail/openembedded-core/2019-January/278183.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>