[PyQt] PyQt5/QtCore.so: undefined symbol: PySlice_AdjustIndices
me at the-compiler.org
Thu Aug 9 09:19:41 BST 2018
On Thu, Aug 09, 2018 at 08:03:36AM +0000, Blanc Nicolas wrote:
> I encountered the following error when using PyQt5 with Python 3.5 on Ubuntu 16.04 (4.15.0-29-generic x86_64 GNU/Linux)
> My PyQt5 version is : 5.11.2
> And PyQt5_sip : 4.19.12
> Both installed using pip3.
> Here is the error :
> $ python3
> Python 3.5.2 (default, Nov 23 2017, 16:37:01)
> [GCC 5.4.0 20160609] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import PyQt5
> >>> from PyQt5 import QtCore
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: /usr/local/lib/python3.5/dist-packages/PyQt5/QtCore.so: undefined symbol: PySlice_AdjustIndices
It's a Python bug which was fixed in 3.5.4. Unfortunately, Ubuntu
prefers keeping older buggy versions ;-)
There's a workaround in the current PyQt snapshot, but there won't be a
new release (though I guess there might be one once Qt 5.11.2 is out?):
> Thanks for any improvement or advices on how to fix this in a clean way.
All you can do right now is using the PyQt shipped with Ubuntu (which is
probably quite old as well), building PyQt yourself, or installing
PyQt5==5.10.1 via pip.
Greetings from the German part (Winterthur) of the same small country,
judging from your mail address ;-)
https://www.qutebrowser.org | me at the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the PyQt