[PyQt] PyQt v5.11 and Python v3.5 (was: Re: ANN: PyQt v5.11.2 and SIP v4.19.11 Released)

Kálmán Viktor viktorvector at gmail.com
Thu Jul 5 13:07:03 BST 2018


With these I get the same error on Python 3.5.2

PyQt5==5.11.2
PyQt5-sip==4.19.11
pyqtdeploy==1.3.2

>>> import pyqtdeploy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pyqtdeploy/__init__.py", line 28, in <module>
    from .builder import Builder
  File "pyqtdeploy/builder/__init__.py", line 28, in <module>
    from .builder import Builder
  File "pyqtdeploy/builder/builder.py", line 33, in <module>
    from PyQt5.QtCore import (QByteArray, QCoreApplication, QDir, QFile,
ImportError: PyQt5/QtCore.so: undefined symbol: PySlice_AdjustIndices

As I only use this pyqtdeploy to build my files a simple `pip install
pyqt5==5.9.1 pyqtdeploy==1.3.2` fixed the issue (not the the best
workaround but it works)

2018-07-04 14:05 GMT+02:00 Florian Bruhin <me at the-compiler.org>:

> On Wed, Jul 04, 2018 at 01:28:21PM +0200, Florian Bruhin wrote:
> > On Wed, Jul 04, 2018 at 09:03:15AM +0100, Phil Thompson wrote:
> > > On 3 Jul 2018, at 11:09 pm, Phil Thompson <phil at riverbankcomputing.com>
> wrote:
> > > >
> > > > On 3 Jul 2018, at 9:54 pm, Dmitry Shachnev <mitya57 at ubuntu.com>
> wrote:
> > > >>
> > > >> On Tue, Jul 03, 2018 at 12:31:55PM +0100, Phil Thompson wrote:
> > > >>>> 2) With these releases, I am seeing PyQt5 import failures with
> Python 3.5
> > > >>>> on Windows:
> > > >>>>
> > > >>>> https://ci.appveyor.com/project/mitya57/retext/build/
> 1.0.217/job/tyw6ceps2o925eq9
> > > >>>>
> > > >>>> File "c:\projects\retext\ReText\__init__.py", line 24, in
> <module>
> > > >>>>  from PyQt5.QtCore import QByteArray, QLocale, QSettings,
> QStandardPaths
> > > >>>> ImportError: DLL load failed: The specified procedure could not
> be found.
> > > >>>>
> > > >>>> Do you know what could cause this?
> > > >>>
> > > >>> I can't reproduce it (Windows 10, 64-bit, Python v3.5.4).
> > > >>
> > > >> Apparently AppVeyor has Python v3.5.3, so probably that was the
> issue.
> > > >>
> > > >> I will just drop 3.5 from my CI config.
> > > >
> > > > The Python minor version shouldn't make any difference.
> > >
> > > ...but it does. I think the problem is with this...
> > >
> > > https://docs.python.org/3/c-api/slice.html#c.PySlice_GetIndicesEx
> > >
> > > I think this affects Python v3.5.0-3 and v3.6.0.
> >
> > I just got a similar report with Python 3.5.1-3 (on Ubuntu 16.04):
> >
> >     from PyQt5 import QtCore
> > ImportError: .../python3.5/site-packages/PyQt5/QtCore.so: undefined
> symbol: PySlice_AdjustIndices
> >
> > Note that this seems to be about PySlice_AdjustIndices and not
> > PySlice_GetIndicesEx.
> >
> > The documentation says that was added in 3.6.1:
> > https://docs.python.org/3/c-api/slice.html#c.PySlice_AdjustIndices
>
> I did some more experiments via pyenv. It looks like Python v3.5.4
> works, but <= v3.5.3 do not.
>
> The changelog for v3.5.4 says:
>
>     bpo-27867: Function PySlice_GetIndicesEx() is deprecated and
>     replaced with a macro if Py_LIMITED_API is not set or set to the
>     value between 0x03050400 and 0x03060000 (not including) or
>     0x03060100 or higher. Added functions PySlice_Unpack() and
>     PySlice_AdjustIndices().
>
> https://docs.python.org/3/whatsnew/changelog.html#id84
>
> Florian
>
> --
> 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/
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180705/0b046a24/attachment.html>


More information about the PyQt mailing list