[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: Problems loading python plugins into qt designer
From:       Zbigniew Reszela <zreszela () cells ! es>
Date:       2023-09-13 15:04:22
Message-ID: f841da43-4744-342b-984f-70691b7e8446 () cells ! es
[Download RAW message or body]

Hello again,

We just discovered (thanks Benjamin!) that the incompatibility starts 
when using newer Qt version.

When using qt 5.12 the plugins are visible in the designer: mamba create 
-y -n qt512 qt=5.12

When using qt 5.15 the plugins are *not* visible: mamba create -y -n 
qt515 qt=5.15

Do you have any hint on where to report this issue or how to solve it?

Thanks,

Zibi


On 9/11/23 13:30, Zbigniew Reszela wrote:
> Dear all,
>
> I have experienced problems loading python plugins into the Qt Designer.
>
> I follow this guide on developing custom python plugins: 
> https://www.riverbankcomputing.com/static/Docs/PyQt5/designer.html#writing-qt-designer-plugins.
>
> I can not even load the example plugins that comes with the PyQt5 
> source package.
>
> I use the latest PyQt5 and Qt5 packages available on conda-forge:
>
> OS: Debian 11
>
> python (conda) = 3.11.5
>
> Qt5 = 5.15.8
>
> PyQt5 = 5.15.9
>
> I execute it in the following way:
>
> ╰─>$ PYTHONPATH=/PyQt5-5.15.9/examples/designer/plugins/widgets 
> PYQTDESIGNERPATH=/PyQt5-5.15.9/examples/designer/plugins/python/ designer
>
> Do you know what could be wrong?
>
> Do you know how could I debug this problem?
>
> I don't see that the plugins are even attempted to be loaded, no 
> __pycache__ dir is generated with pyc files.
>
> I was thinking on adding some prints in the 
> /PyQt5-5.15.9/designer/pluginloader.cpp, compiling and somehow linking 
> it with the designer. Any hint on that?
>
> Note, when I use some older versions of PyQt5 and Qt5 from some older 
> conda environment I prepared in the past it works correctly and I can 
> see the plugins loaded in the designer, the same using the Debian 11 
> packages:
>
> OS: Debian 11
>
> python (conda) = 3.9.2
>
> Qt5 = 5.12.9
>
> PyQt5 = 5.12.3
>
> Here I can see __pycache__ dir with pyc files.
>
> Many thanks in advance for any kind of help,
>
> Regards,
>
> Zibi
>
[Attachment #3 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello again,</p>
    <p>We just discovered (thanks Benjamin!) that the incompatibility
      starts when using newer Qt version.</p>
    <p>When using qt 5.12 the plugins are visible in the designer: mamba
      create -y -n qt512 qt=5.12<br>
      <br>
      When using qt 5.15 the plugins are <b>not</b> visible: mamba
      create -y -n qt515 qt=5.15</p>
    <p>Do you have any hint on where to report this issue or how to
      solve it?</p>
    <p>Thanks,</p>
    <p>Zibi<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 9/11/23 13:30, Zbigniew Reszela
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:adc458ba-324d-f463-6e4f-c58953d2a14a@cells.es">Dear all,
      <br>
      <br>
      I have experienced problems loading python plugins into the Qt
      Designer.
      <br>
      <br>
      I follow this guide on developing custom python plugins:
<a class="moz-txt-link-freetext" \
href="https://www.riverbankcomputing.com/static/Docs/PyQt5/designer.html#writing-qt-de \
signer-plugins">https://www.riverbankcomputing.com/static/Docs/PyQt5/designer.html#writing-qt-designer-plugins</a>.<br>
  <br>
      I can not even load the example plugins that comes with the PyQt5
      source package.
      <br>
      <br>
      I use the latest PyQt5 and Qt5 packages available on conda-forge:
      <br>
      <br>
      OS: Debian 11
      <br>
      <br>
      python (conda) = 3.11.5
      <br>
      <br>
      Qt5 = 5.15.8
      <br>
      <br>
      PyQt5 = 5.15.9
      <br>
      <br>
      I execute it in the following way:
      <br>
      <br>
      ╰─&gt;$ PYTHONPATH=/PyQt5-5.15.9/examples/designer/plugins/widgets
      PYQTDESIGNERPATH=/PyQt5-5.15.9/examples/designer/plugins/python/
      designer
      <br>
      <br>
      Do you know what could be wrong?
      <br>
      <br>
      Do you know how could I debug this problem?
      <br>
      <br>
      I don't see that the plugins are even attempted to be loaded, no
      __pycache__ dir is generated with pyc files.
      <br>
      <br>
      I was thinking on adding some prints in the
      /PyQt5-5.15.9/designer/pluginloader.cpp, compiling and somehow
      linking it with the designer. Any hint on that?
      <br>
      <br>
      Note, when I use some older versions of PyQt5 and Qt5 from some
      older conda environment I prepared in the past it works correctly
      and I can see the plugins loaded in the designer, the same using
      the Debian 11 packages:
      <br>
      <br>
      OS: Debian 11
      <br>
      <br>
      python (conda) = 3.9.2
      <br>
      <br>
      Qt5 = 5.12.9
      <br>
      <br>
      PyQt5 = 5.12.3
      <br>
      <br>
      Here I can see __pycache__ dir with pyc files.
      <br>
      <br>
      Many thanks in advance for any kind of help,
      <br>
      <br>
      Regards,
      <br>
      <br>
      Zibi
      <br>
      <br>
    </blockquote>
  </body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic