clone 997660 -1
reassign -1 pyqt5-sip 12.9.0-1
retitle -1 pyqt5-sip: appears to declare the wrong API version (should be 12.9)
thanks

Alex Relis <talkt...@alexrelis.net> writes:

> I'm on version 5.30.0+dfsg-1 and I am still experiencing this bug. It hasn't 
> been fixed quite yet. Here's the error I seem to be getting:
>
> alex@alex-pc:~$ calibre
> Traceback (most recent call last):
>   File "/usr/bin/calibre", line 21, in <module>
>     sys.exit(calibre())
>   File "/usr/lib/calibre/calibre/gui_launch.py", line 64, in calibre
>     main(args)
>   File "/usr/lib/calibre/calibre/gui2/main.py", line 533, in main
>     app, opts, args = init_qt(args)
>   File "/usr/lib/calibre/calibre/gui2/main.py", line 124, in init_qt
>     app = Application(args, override_program_name=override, 
> windows_app_uid=MAIN_APP_UID)
>   File "/usr/lib/calibre/calibre/gui2/__init__.py", line 894, in __init__
>     from calibre_extensions import progress_indicator
> RuntimeError: the sip module implements API v12.0 to v12.8 but the 
> progress_indicator module requires API v12.9
>
[snip]
> ii  python3-pyqt5.sip                12.9.0-3

Hm, that is strange.  This string comes from pyqt5-sip/12.9.0-3:

    siplib.c
    1716:                "the sip module implements API v%d.0 to v%d.%d but the 
%s module requires API v%d.%d",
    1721:                "the sip module implements API v%d.0 but the %s module 
requires API v%d.%d",

Thus, it seems like python3-pyqt5.sip may be misidentifying its
version.  The next step was to search for 12.8 strings:

    sip.h
    1656:    PyObject *(*api_is_py_method_12_8)(sip_gilstate_t *gil, char *pymc,

    siplib.c
    319:static PyObject *sip_api_is_py_method_12_8(sip_gilstate_t *gil, char 
*pymc,
    620:    sip_api_is_py_method_12_8,
    6030:    meth = sip_api_is_py_method_12_8(&sipGILState, &pymc, &self, NULL,
    8378: * sip_api_is_python_method_12_8() instead.
    8383:    return sip_api_is_py_method_12_8(gil, pymc, &sipSelf, cname, 
mname);
    8391:static PyObject *sip_api_is_py_method_12_8(sip_gilstate_t *gil, char 
*pymc,

Dmitri, would you please take a look at this?  Apologies if I
naively misinterpreted this bug, feel free to bounce it back if
necessary.

Regards,
Nicholas

Attachment: signature.asc
Description: PGP signature

Reply via email to