ANN: PyQt v5.11.2 and SIP v4.19.11 Released

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

ANN: PyQt v5.11.2 and SIP v4.19.11 Released

Phil Thompson-5
PyQt v5.11.2 has been released along with PyQt3D, PyQtChart, PyQtDataVisualisation and PyQtPurchasing. For details see...

https://www.riverbankcomputing.com/news/pyqt-5112

Note that the enum34 package from PyPI must be installed for versions of Python prior to v3.4.

SIP v4.19.11 has also been released. For details see...

https://www.riverbankcomputing.com/news/sip-41911

Note that when building the sip module for this and future versions of PyQt then the --sip-module option must be specified for configure.py. See...

http://pyqt.sourceforge.net/Docs/sip4/installation.html#cmdoption-configure-py-sip-module
http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#downloading-sip

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: ANN: PyQt v5.11.2 and SIP v4.19.11 Released

Dmitry Shachnev
Hi Phil!

On Mon, Jul 02, 2018 at 02:56:57PM +0100, Phil Thompson wrote:

> PyQt v5.11.2 has been released along with PyQt3D, PyQtChart,
> PyQtDataVisualisation and PyQtPurchasing. For details see...
>
> https://www.riverbankcomputing.com/news/pyqt-5112
>
> Note that the enum34 package from PyPI must be installed for versions of
> Python prior to v3.4.
>
> SIP v4.19.11 has also been released. For details see...
>
> https://www.riverbankcomputing.com/news/sip-41911
Two unrelated questions.

1) Now that siplib/sip.h is no longer generated, it does not exist in the
build directory. Please apply the attached patch to install it from source
directory instead.

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?

--
Dmitry Shachnev

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

header_install.diff (716 bytes) Download Attachment
signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ANN: PyQt v5.11.2 and SIP v4.19.11 Released

Rex Dieter
In reply to this post by Phil Thompson-5
Phil Thompson wrote:

> PyQt v5.11.2 has been released along with PyQt3D, PyQtChart,
> PyQtDataVisualisation and PyQtPurchasing. For details see...
>
> https://www.riverbankcomputing.com/news/pyqt-5112
>
> Note that the enum34 package from PyPI must be installed for versions of
> Python prior to v3.4.
>
> SIP v4.19.11 has also been released. For details see...

make install DESTDIR=...
is still failing, but differently than before (sip cannot be found):

$ make install DESTDIR=/tmp/foo
make[1]: Entering directory '/var/tmp/kdecache-
rdieter/BUILDROOT/sip-4.19.11/sipgen'
cp -f sip /tmp/foo/usr/bin/sip
...
/usr/bin/python3 mk_distinfo.py /tmp/foo/usr/lib64/python3.6/site-
packages/sip-4.19.11.dist-info installed.txt
Traceback (most recent call last):
  File "mk_distinfo.py", line 101, in <module>
    fn_f = open(fn, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/sip'


-- rex

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: ANN: PyQt v5.11.2 and SIP v4.19.11 Released

Phil Thompson-5
In reply to this post by Dmitry Shachnev
On 2 Jul 2018, at 8:59 pm, Dmitry Shachnev <[hidden email]> wrote:

>
> Hi Phil!
>
> On Mon, Jul 02, 2018 at 02:56:57PM +0100, Phil Thompson wrote:
>> PyQt v5.11.2 has been released along with PyQt3D, PyQtChart,
>> PyQtDataVisualisation and PyQtPurchasing. For details see...
>>
>> https://www.riverbankcomputing.com/news/pyqt-5112
>>
>> Note that the enum34 package from PyPI must be installed for versions of
>> Python prior to v3.4.
>>
>> SIP v4.19.11 has also been released. For details see...
>>
>> https://www.riverbankcomputing.com/news/sip-41911
>
> Two unrelated questions.
>
> 1) Now that siplib/sip.h is no longer generated, it does not exist in the
> build directory. Please apply the attached patch to install it from source
> directory instead.

Done, thanks.

> 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).

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: ANN: PyQt v5.11.2 and SIP v4.19.11 Released

Phil Thompson-5
In reply to this post by Rex Dieter
On 2 Jul 2018, at 9:20 pm, Rex Dieter <[hidden email]> wrote:

>
> Phil Thompson wrote:
>
>> PyQt v5.11.2 has been released along with PyQt3D, PyQtChart,
>> PyQtDataVisualisation and PyQtPurchasing. For details see...
>>
>> https://www.riverbankcomputing.com/news/pyqt-5112
>>
>> Note that the enum34 package from PyPI must be installed for versions of
>> Python prior to v3.4.
>>
>> SIP v4.19.11 has also been released. For details see...
>
> make install DESTDIR=...
> is still failing, but differently than before (sip cannot be found):
>
> $ make install DESTDIR=/tmp/foo
> make[1]: Entering directory '/var/tmp/kdecache-
> rdieter/BUILDROOT/sip-4.19.11/sipgen'
> cp -f sip /tmp/foo/usr/bin/sip
> ...
> /usr/bin/python3 mk_distinfo.py /tmp/foo/usr/lib64/python3.6/site-
> packages/sip-4.19.11.dist-info installed.txt
> Traceback (most recent call last):
>  File "mk_distinfo.py", line 101, in <module>
>    fn_f = open(fn, 'rb')
> FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/sip'

Can you give me the configure.py command line you are using?

Am I right in saying that the .dist-info directory should reflect where the package will eventually be installed (ie. without the /tmp/foo prefix) rather then where it has been installed?

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: ANN: PyQt v5.11.2 and SIP v4.19.11 Released

Rex Dieter
Phil Thompson wrote:

> On 2 Jul 2018, at 9:20 pm, Rex Dieter <[hidden email]> wrote:
>>
>> Phil Thompson wrote:
>>
>>> PyQt v5.11.2 has been released along with PyQt3D, PyQtChart,
>>> PyQtDataVisualisation and PyQtPurchasing. For details see...
>>>
>>> https://www.riverbankcomputing.com/news/pyqt-5112
>>>
>>> Note that the enum34 package from PyPI must be installed for versions of
>>> Python prior to v3.4.
>>>
>>> SIP v4.19.11 has also been released. For details see...
>>
>> make install DESTDIR=...
>> is still failing, but differently than before (sip cannot be found):
>>
>> $ make install DESTDIR=/tmp/foo
>> make[1]: Entering directory '/var/tmp/kdecache-
>> rdieter/BUILDROOT/sip-4.19.11/sipgen'
>> cp -f sip /tmp/foo/usr/bin/sip
>> ...
>> /usr/bin/python3 mk_distinfo.py /tmp/foo/usr/lib64/python3.6/site-
>> packages/sip-4.19.11.dist-info installed.txt
>> Traceback (most recent call last):
>>  File "mk_distinfo.py", line 101, in <module>
>>    fn_f = open(fn, 'rb')
>> FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/sip'
>
> Can you give me the configure.py command line you are using?

I can reproduce it with a minimal:

python2 ./configure.py
make
...
make install DESTDIR=/tmp/sip

> Am I right in saying that the .dist-info directory should reflect where
> the package will eventually be installed (ie. without the /tmp/foo prefix)
> rather then where it has been installed?

Correct.  DESTDIR allows building/installing as a non-privileged user for
packaging purposes (which later will be installed via privilege/root)

-- Rex

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: ANN: PyQt v5.11.2 and SIP v4.19.11 Released

Dmitry Shachnev
In reply to this post by Phil Thompson-5
On Tue, Jul 03, 2018 at 12:31:55PM +0100, Phil Thompson wrote:
> > 1) Now that siplib/sip.h is no longer generated, it does not exist in the
> > build directory. Please apply the attached patch to install it from source
> > directory instead.
>
> Done, thanks.

One more patch for out-of-tree builds, this time for PyQt5.

--
Dmitry Shachnev

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

0001-Call-mk_distinfo.py-by-its-absolute-path.patch (988 bytes) Download Attachment
signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ANN: PyQt v5.11.2 and SIP v4.19.11 Released

Dmitry Shachnev
In reply to this post by Phil Thompson-5
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.

--
Dmitry Shachnev

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ANN: PyQt v5.11.2 and SIP v4.19.11 Released

Phil Thompson-5
On 3 Jul 2018, at 9:54 pm, Dmitry Shachnev <[hidden email]> 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.

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: ANN: PyQt v5.11.2 and SIP v4.19.11 Released

Phil Thompson-5
On 3 Jul 2018, at 11:09 pm, Phil Thompson <[hidden email]> wrote:

>
> On 3 Jul 2018, at 9:54 pm, Dmitry Shachnev <[hidden email]> 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.

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

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

Florian Bruhin
On Wed, Jul 04, 2018 at 09:03:15AM +0100, Phil Thompson wrote:

> On 3 Jul 2018, at 11:09 pm, Phil Thompson <[hidden email]> wrote:
> >
> > On 3 Jul 2018, at 9:54 pm, Dmitry Shachnev <[hidden email]> 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

Florian

--
https://www.qutebrowser.org | [hidden email] (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    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

Phil Thompson-5
On 4 Jul 2018, at 12:28 pm, Florian Bruhin <[hidden email]> wrote:

>
> On Wed, Jul 04, 2018 at 09:03:15AM +0100, Phil Thompson wrote:
>> On 3 Jul 2018, at 11:09 pm, Phil Thompson <[hidden email]> wrote:
>>>
>>> On 3 Jul 2018, at 9:54 pm, Dmitry Shachnev <[hidden email]> 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

In later versions PySlice_GetIndicesEx is implemented using PySlice_AdjustIndices. The problem is that the use of the limited API seems broken to me - it doesn't seem possible to create a binary built with (say) 3.7 to work against all versions of 3.6 and 3.5.

It's easy enough for me to work around but (as it affects old versions of Python) I wont release a new version just for that.

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: ANN: PyQt v5.11.2 and SIP v4.19.11 Released

Dmitry Shachnev
In reply to this post by Dmitry Shachnev
On Wed, Jul 04, 2018 at 10:00:45AM +0100, Phil Thompson wrote:
> On 3 Jul 2018, at 9:36 pm, Dmitry Shachnev <[hidden email]> wrote:
> > One more patch for out-of-tree builds, this time for PyQt5.
>
> Isn't it needed for sip as well?

Yes, it is probably needed for sip too.

I did not notice it when building sip, because I was building without
--use-qmake, and the non-qmake generator silently disabled distinfo
because os.path.isfile('mk_distinfo.py') returned False.

--
Dmitry Shachnev

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

Florian Bruhin
In reply to this post by Florian Bruhin
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 <[hidden email]> wrote:
> > >
> > > On 3 Jul 2018, at 9:54 pm, Dmitry Shachnev <[hidden email]> 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 | [hidden email] (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    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

Kálmán Viktor
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 <[hidden email]>:
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 <[hidden email]> wrote:
> > >
> > > On 3 Jul 2018, at 9:54 pm, Dmitry Shachnev <[hidden email]> 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 | [hidden email] (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    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt