[PyQt] PyQt5/QtCore.so: undefined symbol: PySlice_AdjustIndices

Blanc Nicolas nicolas.blanc1 at heig-vd.ch
Thu Aug 9 09:03:36 BST 2018

Hello everyone,

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

Thanks for any improvement or advices on how to fix this in a clean way.

Best Regards.

More information about the PyQt mailing list