On Wed, Jul 22, 2020 at 4:30 AM Dmitry Shachnev <[email protected]> wrote:

> Source: git-cola
> Version: 3.7-1
> Usertags: sip5
>
> Dear Maintainer,
>
> You are receiving this bug because your package seems to be using PyQt5
> and has Python files with "import sip" lines.
>
> With the latest version of PyQt5 in experimental, the private sip module
> used by PyQt5 is called "PyQt5.sip", not just "sip". I am going to upload
> this version to unstable around end of August.
>
> You may need to update your imports to do something like this:
>
> try:
>     from PyQt5 import sip
> except ModuleNotFoundError:
>     import sip
>
> Alternatively, you may import sip after importing PyQt5. So the following
> will work too:
>
> from PyQt5 import QtCore
> import sip
>


Hi Dmitriy

git-cola uses the qtpy module:

https://github.com/spyder-ide/qtpy

This module abstracts over various Python+Qt backends -- PyQt4, PyQt5,
PySide, and PySide2 are all supported.

PyQt5 is our recommended backend.

The sip issue is already handled by this module -- the "import sip" code
path is only ever activated in the PyQt4 code paths.  Modern systems will
never hit that code.

The PyQt5 code paths are all sip-free.


Thank you for your work on debian.

cheers,
 --
David

Reply via email to