Couldn't load SIP module (Python in QGIS)

Hi,

I’m a lay user on Linux systems. My QGIS program suddenly stopped recognizing/loading the SIP module, so it stopped reading in Python and lost its main functions. That’s the initial message

One of the commands I tried was pip3 install PyQt5-sip, where the return message was Requirement already satisfied: PyQt5-sip in /var/local/lib/python3.7/dist-packages (12.8.1) [free translation from portuguese], but the file does not exist and the problem continues.

Another command, pip3 install sip, returns:
unable to run ‘x86_64-linux-gnu-gcc’: file or directory does not exist
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
[free translation from portuguese]

I really need to use the program in my work and I wouldn’t like to migrate to Windows just for that reason. Can anyone help?

Thanks for understanding my bad english.

Something that would help us a lot to understand the problem would be this:

  1. Open the application called ‘Terminal’
  2. In this application run the command:

eos-diagnostics

  1. The above command will create a file with the information of your system (example: eos-diagnostic-160614_111731_UTC + 0100.txt); Send us this file so we can analyze and see a possible solution

The command didn’t create a file. The answer:

** (org.gnome.Nautilus:10830): WARNING **: 20:02:08.773: Error on getting connection: Failed to load SPARQL backend: Cannot autolaunch D-Bus without X11 $DISPLAY
Unable to init server: Could not connect: Connection refused

(org.gnome.Nautilus:10830): Gtk-WARNING **: 20:02:08.776: cannot open display:

From this discussion: https://github.com/flathub/org.qgis.qgis/issues/74
It seems to be a module naming issue here, and it is under fixing.

If you can’t wait for the next update, you can try rollback to a previous working version with following command, open a Terminal copy paste this text and hit enter:

$ sudo flatpak update --commit=b3333b5244bc94902b54f1f0e5d8013a6401e8ef60f191d97dc9c27f54378db8 org.qgis.qgis

Then reopen QGIS.

Let us know if this works for you.

Yes. This worked! Man, you rock! Thank you very much.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.