oqapy doesn't start on Ubuntu 18.04 with sip version problem error message

Bug #1786224 reported by LordPhoenix
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Oqapy
Invalid
Undecided
VinsS

Bug Description

I've installed oqapy with ppa on ubuntu 18.04.
It doesn't start and when I run it in terminal I got this message :

"Traceback (most recent call last):
  File "/usr/bin/oqapy", line 106, in <module>
    from core import OqapyCore
  File "/usr/share/oqapy/core.py", line 58, in <module>
    from filtering import Filtering
  File "/usr/share/oqapy/filtering.py", line 34, in <module>
    from filters.contrastbrightnessfilter import ContrastBrightnessFilter
  File "/usr/share/oqapy/filters/contrastbrightnessfilter.py", line 15, in <module>
    from oqapy_iproc import OqapyIProc
RuntimeError: the sip module implements API v12.0 to v12.2 but the oqapy_iproc module requires API v12.3"

I've find package python3-sip and it is available in version 4.19.7

Changed in oqapy:
status: New → In Progress
assignee: nobody → VinsS (vincent-vandevyvre)
Revision history for this message
VinsS (vincent-vandevyvre) wrote :

In this changelog [0] the API v12.3 was implemented in python3-sip v4.19.5.

How do you have installed python3-sip ?

The problem of the versions conflict of the API version is common and generally solved by reinstalling python3-sip [1]

[0] http://changelogs.ubuntu.com/changelogs/pool/universe/s/sip4/sip4_4.19.7+dfsg-1/changelog
[1] https://stackoverflow.com/questions/22589497/pyqt5-sip-api-10-level-error-api-11-required

Revision history for this message
LordPhoenix (lorphoenix) wrote :

It has been installed automatically.

I've tried
dpkg--renconfigure python3-sip
and
apt install --reinstall python3-sip

and nothing is changing. I get always same error message.

Revision history for this message
VinsS (vincent-vandevyvre) wrote :

So, I've made my upgrade from 16.04 to 18.04 and I can reproduce the issue.

This is because during the upgrade the extras ppa (un-officials) are deactivated and the packages installed from these ppa are removed.

Except liboqapy-iproc0. I don't know why.

And, when you reinstall oqapy, apt don't reinstall this lib.

sudo apt-get install liboqapy-iproc0 solve the issue.

Revision history for this message
LordPhoenix (lorphoenix) wrote :

liboqapy-iproc0 is already installed.
I've tried to reinstall it (apt install --reinstall liboqapy-iproc0) and get always the issue…

Revision history for this message
VinsS (vincent-vandevyvre) wrote :

What is the return of

--------------------------------------------------------
python3
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sip
>>> print(sip, sip.SIP_VERSION_STR)
<module 'sip' from '/usr/lib/python3/dist-packages/sip.cpython-36m-x86_64-linux-gnu.so'> 4.19.7
--------------------------------------------------------

Revision history for this message
LordPhoenix (lorphoenix) wrote :

python3
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sip
>>> print(sip, sip.SIP_VERSION_STR)
<module 'sip' from '/home/arnaud/.local/lib/python3.6/site-packages/sip.so'> 4.19.3

I'm a little bit surprised to see that from my home…
I've never installed anything from python in my home…
May be because of snap package?

Revision history for this message
VinsS (vincent-vandevyvre) wrote :

If PyQt5 and sip.cpython-36m-x86_64-linux-gnu.so are not in /usr/lib/python3/dist-packages/
they are not installed with apt-get and that's the possible reason if they are not the 18.04 versions.

Revision history for this message
LordPhoenix (lorphoenix) wrote :

I've checked and PyQt5 and sip.cpython-36m-x86_64-linux-gnu.so are correctly installed in /usr/lib/python3/dist-packages/

So I think something happened on my python environment but I don't know what exactly.

Changed in oqapy:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.