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

List:       pykde
Subject:    Re: Exception importing PyQt5.QtWidgets and others
From:       John Thornton <dev () gnipsel ! com>
Date:       2024-01-08 14:17:54
Message-ID: 6e607f2d-4f76-450f-a22e-89ab748901d5 () gnipsel ! com
[Download RAW message or body]

The import works on Debian

john@cave:~$ python3
Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
 >>> from PyQt5.QtWidgets                import *
 >>>

john@cave:~$ uname -a
Linux cave 6.1.0-15-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.66-1 
(2023-12-09) x86_64 GNU/Linux

john@cave:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:    12
Codename:    bookworm

On 1/8/24 06:50, ullix wrote:
>
> I get this traceback on Exception when importing:
>
> Traceback (most recent call last):
>   File "/home/ullix/geigerlog/geigerlog/gsup_utils.py", line 185, in 
> <module>
> from PyQt5.QtWidgets import *
> ImportError: 
> /home/ullix/geigerlog/geigerlog/venvGL67/lib/python3.10/site-packages/PyQt5/QtWidgets.abi3.so: 
> undefined symbol: _ZdlPvm, version Qt_5
>
> I have this version installed in a venv:
> Module: PyQt5                  Installed Version: 5.15.10
>
> I downgraded the version to .9, .8. .7, .6, .5, .4, .3 and all failed 
> in the same way (QtWidgets.abi3.so: undefined symbol: _ZdlPvm, version 
> Qt_5)
>
> In the older versions 5.15.2,  .1,  .0 it worked ok.
>
>
> Also tried other imports and it failed:
> import PyQt5.QtCore
> ImportError: 
> /home/ullix/geigerlog/geigerlog/venvGL67/lib/python3.10/site-packages/PyQt5/QtCore.abi3.so: 
> undefined symbol: _ZdlPvm, version Qt_5
>
> While this again worked-on up to  15.5.2 but not on later versions.
>
>
> Further, I tried:
> importPyQt5
>
> and at least this import worked on all versions from 15.5.0 to 15.5.10
> ullix
> $ lsb_release -a No LSB modules are available. Distributor ID: 
> Linuxmint Description: Linux Mint 21.2 Release: 21.2 Codename: victoria
> $ uname -a Linux urkam 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 
> 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
>
>
>
>
>
[Attachment #3 (text/html)]

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font face="monospace">The import works on Debian</font></p>
    <p><font face="monospace">john@cave:~$ python3<br>
        Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on
        linux<br>
        Type "help", "copyright", "credits" or "license" for more
        information.<br>
        &gt;&gt;&gt; from PyQt5.QtWidgets                import *<br>
        &gt;&gt;&gt; <br>
      </font></p>
    <p><font face="monospace">john@cave:~$ uname -a<br>
        Linux cave 6.1.0-15-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.66-1
        (2023-12-09) x86_64 GNU/Linux<br>
      </font></p>
    <p><font face="monospace">john@cave:~$ lsb_release -a<br>
        No LSB modules are available.<br>
        Distributor ID:    Debian<br>
        Description:    Debian GNU/Linux 12 (bookworm)<br>
        Release:    12<br>
        Codename:    bookworm<br>
        <br>
      </font></p>
    <div class="moz-cite-prefix">On 1/8/24 06:50, ullix wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:c3efcba6-c80b-4d96-a5fb-c98f57fa0f0d@urkam.de">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>I get this traceback on Exception when importing:</p>
      <p>Traceback (most recent call last):<br>
          File "/home/ullix/geigerlog/geigerlog/gsup_utils.py", line
        185, in &lt;module&gt;<br>
            <font color="#ff0000">from PyQt5.QtWidgets               
          import *</font><br>
        ImportError:
/home/ullix/geigerlog/geigerlog/venvGL67/lib/python3.10/site-packages/PyQt5/QtWidgets.abi3.so:
  undefined symbol: _ZdlPvm, version Qt_5<br>
      </p>
      <p>I have this version installed in a venv:<br>
        Module: PyQt5                  Installed Version: 5.15.10  </p>
      <p>I downgraded the version to .9, .8. .7, .6, .5, .4, .3 and all
        failed in the same way (QtWidgets.abi3.so: undefined symbol:
        _ZdlPvm, version Qt_5)</p>
      <p>In the older versions 5.15.2,  .1,  .0 it worked ok.</p>
      <p><br>
      </p>
      <p>Also tried other imports and it failed:<br>
        import PyQt5.QtCore<br>
        ImportError:
/home/ullix/geigerlog/geigerlog/venvGL67/lib/python3.10/site-packages/PyQt5/QtCore.abi3.so:
  undefined symbol: _ZdlPvm, version Qt_5<br>
         <br>
        While this again worked-on up to  15.5.2 but not on later
        versions.</p>
      <p><br>
      </p>
      <p>Further, I tried:<br>
        <span style="color: rgb(175, 0, 219); white-space: pre;">import</span><span
        style="color: rgb(59, 59, 59); white-space: pre;"> </span><span
        style="color: rgb(38, 127, 153); white-space: pre;">PyQt5</span></p>
      <div
style="color: #3b3b3b;background-color: #ffffff;font-family: 'Droid Sans Mono', \
'monospace', monospace;font-weight: normal;font-size: 15px;line-height: \
                20px;white-space: pre;"><div><font
      color="#000000">and at least this import worked on all versions from 15.5.0 to \
15.5.10</font></div><div><font  color="#000000">
</font></div><div><font color="#000000">ullix</font></div><div><span
      style="color: #267f99;">
</span></div><div><span style="color: #267f99;">$ lsb_release -a
No LSB modules are available.
Distributor ID:	Linuxmint
Description:	Linux Mint 21.2
Release:	21.2
Codename:	victoria
</span></div><div><span style="color: #267f99;">
</span></div><div><span style="color: #267f99;">$ uname -a
Linux urkam 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 \
x86_64 x86_64 GNU/Linux

</span></div><div><span style="color: #267f99;">
</span></div><div><span style="color: #267f99;">
</span></div></div>
      <p><br>
      </p>
      <p><br>
      </p>
      <p><br>
      </p>
      <p><br>
      </p>
    </blockquote>
  </body>
</html>



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

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