<?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>13149</bug_id>
          
          <creation_ts>2019-01-24 11:32:14 +0000</creation_ts>
          <short_desc>Wrong sip_module_dir in sip3 recipe</short_desc>
          <delta_ts>2019-01-24 17:33:20 +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>Other</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Kirill Goncharov">kdgoncharov</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82840</commentid>
    <comment_count>0</comment_count>
    <who name="Kirill Goncharov">kdgoncharov</who>
    <bug_when>2019-01-24 11:32:14 +0000</bug_when>
    <thetext>I&apos;m building an image with PyQt5 installed for RaspberryPi 3.
On the target machine I get import error:

root@raspberrypi3:~# python3
Python 3.5.6 (default, Jan 23 2019, 13:02:59) 
[GCC 8.2.0] on linux
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import PyQt5
Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
ImportError: No module named &apos;PyQt5&apos;

This caused by the fact that PyQt5 is installed to /usr/lib/python3.5m/site-packages/ when all other python packages are in /usr/lib/python3.5/site-packages/ (without &apos;m&apos; suffix) and it could be fixed by setting the proper path in pyqt.cfg:

pyqt_module_dir = ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages

instead of

pyqt_module_dir = ${D}/${libdir}/python${PYTHON_BASEVERSION}${PYTHON_ABI}/site-packages

(python3-pyqt5 recipe: https://github.com/meta-qt5/meta-qt5/blob/thud/recipes-python/pyqt5/python3-pyqt5_5.11.3.bb)

Similar problem exists in sip3 recipe, I get &quot;ImportError: No module named &apos;PyQt5.sip&apos;&quot;. It could be fixed by the following change in do_configure:

sip_module_dir = ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages

instead of

sip_module_dir = ${D}/${libdir}/python${PYTHON_BASEVERSION}${PYTHON_ABI}/site-packages

Is there a bug or I&apos;m misundestanding something?

Layers used:
meta-oe thud:6094ae18c8a35e5cc9998ac39869390d7f3bb1e2
meta-qt5 thud:201fcf27cf07d60b7d6ab89c7dcefe2190217745</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82850</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-01-24 17:11:23 +0000</bug_when>
    <thetext>Thanks for reporting the bug.
Unfortunately, problems with PyQt5 aren&apos;t tracked on the Yocto bugzilla so I&apos;m closing this defect.

Please open an issue on:
   https://github.com/meta-qt5/meta-qt5/issues</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82851</commentid>
    <comment_count>2</comment_count>
    <who name="Kirill Goncharov">kdgoncharov</who>
    <bug_when>2019-01-24 17:19:45 +0000</bug_when>
    <thetext>Yes, I&apos;m going to report to meta-qt5 as well.

But I suspect there is a bug in sip3 recipe too, which belongs to meta-oe layer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82852</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-01-24 17:33:20 +0000</bug_when>
    <thetext>Ah, I missed the sip_module_dir part of your report.
You&apos;re right, that&apos;s in meta-oe but that layer also does not use the YP bugzilla (yet!) so could you send them a patch or report the issue on the email list:
  https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>