QGIS launch errors with OpenSUSE Leap 15.3

Hello,

I have upgraded my OpenSUSE Leap system from 15.2 to 15.3 recently.

I am now unable to launch QGIS properly. I get 2 error messages:

Couldn't load plugin 'QuickOSM' due to an error when calling its classFactory() method
Couldn't load plugin 'processing'

After I ignore the second message, QGIS crashes and I have to kill the process to exit.

Both messages talks about

ModuleNotFoundError: No module named '_gdal' 

Here are my QGIS installation details:

Python version: 3.6.15 (default, Sep 23 2021, 15:41:43) [GCC] 
QGIS version: 3.18.0-Zürich Zürich, exported

https://i.stack.imgur.com/Iefy1.png](https://i.stack.imgur.com/Iefy1.png)

I have tried to uninstall QGIS and reinstall both LTR and last available versions, either from official repository or from Application:Geo one.

Owing to OpenSUSE official documentation, there would not exist any official QGIS package for OpenSUSE Leap 15.3 version of the system… Which really is a surprise to me, as the 15.3 version has been released in June 2021.

How can I bring my QGIS back on the rails?

No errors, starting…

Post:

zypper lr -d

localhost:~ # zypper lr -d

#  | Alias                                             | Name                                                                 | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                          | Service
---+---------------------------------------------------+----------------------------------------------------------------------+---------+-----------+---------+----------+--------+----------------------------------------------------------------------------------------------+--------
 1 | Applications_Geo                                  | Application:Geo                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/Application:/Geo/openSUSE_Leap_15.3/              | 
 2 | Filesystem tools and FUSE-related packages (15.3) | Filesystem tools and FUSE-related packages (15.3)                    | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://download.opensuse.org/repositories/filesystems/15.3/                                 | 
 3 | https-download.opensuse.org-0f963240              | devel:languages:R:released                                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/devel:/languages:/R:/released/openSUSE_Leap_15.3/ | 
 4 | isv_ownCloud_desktop                              | The ownCloud client repo (openSUSE_Leap_15.2)                        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/isv:/ownCloud:/desktop/openSUSE_Leap_15.2/        | 
 5 | openSUSE-Leap-15.3-2                              | openSUSE-Leap-15.3-2                                                 | No      | ----      | ----    |   99     | rpm-md | hd:/?device=/dev/disk/by-id/usb-Kingston_DataTraveler_3.0_E0D55EA57414F36187A60290-0:0-part2 | 
 6 | packman                                           | packman                                                              | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.3/                          | 
 7 | repo-backports-debug-update                       | Update repository of openSUSE Backports (Debug)                      | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/backports_debug/                               | 
 8 | repo-backports-update                             | Update repository of openSUSE Backports                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/backports/                                     | 
 9 | repo-debug                                        | Debug Repository                                                     | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.3/repo/oss/                          | 
10 | repo-debug-non-oss                                | Debug Repository (Non-OSS)                                           | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.3/repo/non-oss/                      | 
11 | repo-debug-update                                 | Update Repository (Debug)                                            | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.3/oss/                                     | 
12 | repo-debug-update-non-oss                         | Update Repository (Debug, Non-OSS)                                   | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.3/non-oss/                                 | 
13 | repo-non-oss                                      | Dépôt Non-OSS                                                        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.3/repo/non-oss/                            | 
14 | repo-oss                                          | Dépôt principal                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.3/repo/oss/                                | 
15 | repo-sle-debug-update                             | Update repository with updates from SUSE Linux Enterprise 15 (Debug) | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.3/sle/                                     | 
16 | repo-sle-update                                   | Update repository with updates from SUSE Linux Enterprise 15         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/sle/                                           | 
17 | repo-source                                       | Source Repository                                                    | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.3/repo/oss/                         | 
18 | repo-update                                       | Dépôt principal de mise à jour                                       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/oss                                            | 
19 | repo-update-non-oss                               | Dépôt de mises à jour (Non-OSS)                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/non-oss/                                       | 

I think a mismatch between version from OSS and version from Geo…

OK thanks… I guess it is something like that. I’ve tried to disable Geo repository and reinstall from official sources, and the vice versa, without any success.
I thought some packages might be remaining and shouldn’t be. I can’t fing anybody using QGIS with OpenSUSE Leap 15.3…

Any idea on how could I start to make it matching?

Many thanks for help! You are the only one so far.

See: **compiled against geos **and running against geos in your picture in the first post…

I didn’t get it, thanks! The issue could come from this “CAPI” version… But I’m not sure to understand what this means. I understand that my QGIS 3.18 is compiled with a CAPI version that is fewer than those provided by GEOS repository, am I right? I’m then really confused about how to fix it. This does not seem to be a Linux package, but a QGIS component instead. Any additional help or guidelines would be very appreciated!

Thanks again for advisory!

Up ! Thanks in advance for help on the last reply to this post. I don’t know what to start with on dealing with this issue…

QGIS user here. It seems that QGIS cannot find the proper Python bindings. I cannot tell why. Probably you have something configured a bit unusually in your system? Does running ldconfig help?

Try asking in the QGIS user mailing list. May be you get answers from QGIS users who may be more used to the problem. The community is normally very helpful and kind.

Good luck!

Post:

zypper lr -d

once more so that we see the acrual list.
And we can tell, what is installed from geo Repo.

I’ve tried to disable Geo repository and reinstall from official sources, and the vice versa, without any success.

Disbaling and reinstalling does not help, also the other packages installed from that Repo are important.

Thanks for being there again!

Here is the actual repos list:


localhost:~ # zypper lr -d
#  | Alias                                             | Name                                                                 | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                        
---+---------------------------------------------------+----------------------------------------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------------------------
 1 | Applications_Geo                                  | Application:Geo                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/Application:/Geo/openSUSE_Leap_15.3/            
 2 | Filesystem tools and FUSE-related packages (15.3) | Filesystem tools and FUSE-related packages (15.3)                    | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://download.opensuse.org/repositories/filesystems/15.3/                               
 3 | https-download.opensuse.org-0f963240              | devel:languages:R:released                                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/devel:/languages:/R:/released/openSUSE_Leap_15.3
 4 | isv_ownCloud_desktop                              | The ownCloud client repo (openSUSE_Leap_15.2)                        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/isv:/ownCloud:/desktop/openSUSE_Leap_15.2/      
 5 | packman                                           | packman                                                              | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.3/                        
 6 | repo-backports-debug-update                       | Update repository of openSUSE Backports (Debug)                      | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/backports_debug/                             
 7 | repo-backports-update                             | Update repository of openSUSE Backports                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/backports/                                   
 8 | repo-debug                                        | Debug Repository                                                     | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.3/repo/oss/                        
 9 | repo-debug-non-oss                                | Debug Repository (Non-OSS)                                           | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.3/repo/non-oss/                    
10 | repo-debug-update                                 | Update Repository (Debug)                                            | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.3/oss/                                   
11 | repo-debug-update-non-oss                         | Update Repository (Debug, Non-OSS)                                   | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.3/non-oss/                               
12 | repo-non-oss                                      | Dépôt Non-OSS                                                        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.3/repo/non-oss/                          
13 | repo-oss                                          | Dépôt principal                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.3/repo/oss/                              
14 | repo-sle-debug-update                             | Update repository with updates from SUSE Linux Enterprise 15 (Debug) | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.3/sle/                                   
15 | repo-sle-update                                   | Update repository with updates from SUSE Linux Enterprise 15         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/sle/                                         
16 | repo-source                                       | Source Repository                                                    | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.3/repo/oss/                       
17 | repo-update                                       | Dépôt principal de mise à jour                                       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/oss                                          
18 | repo-update-non-oss                               | Dépôt de mises à jour (Non-OSS)                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/non-oss/  

Thanks for being there again!

Here is the requested result:


localhost:~ # zypper lr -d

#  | Alias                                             | Name                                                                 | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                        
---+---------------------------------------------------+----------------------------------------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------------------------
 1 | Applications_Geo                                  | Application:Geo                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/Application:/Geo/openSUSE_Leap_15.3/            
 2 | Filesystem tools and FUSE-related packages (15.3) | Filesystem tools and FUSE-related packages (15.3)                    | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://download.opensuse.org/repositories/filesystems/15.3/                               
 3 | https-download.opensuse.org-0f963240              | devel:languages:R:released                                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/devel:/languages:/R:/released/openSUSE_Leap_15.3
 4 | isv_ownCloud_desktop                              | The ownCloud client repo (openSUSE_Leap_15.2)                        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/isv:/ownCloud:/desktop/openSUSE_Leap_15.2/      
 5 | packman                                           | packman                                                              | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.3/                        
 6 | repo-backports-debug-update                       | Update repository of openSUSE Backports (Debug)                      | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/backports_debug/                             
 7 | repo-backports-update                             | Update repository of openSUSE Backports                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/backports/                                   
 8 | repo-debug                                        | Debug Repository                                                     | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.3/repo/oss/                        
 9 | repo-debug-non-oss                                | Debug Repository (Non-OSS)                                           | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.3/repo/non-oss/                    
10 | repo-debug-update                                 | Update Repository (Debug)                                            | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.3/oss/                                   
11 | repo-debug-update-non-oss                         | Update Repository (Debug, Non-OSS)                                   | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.3/non-oss/                               
12 | repo-non-oss                                      | Dépôt Non-OSS                                                        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.3/repo/non-oss/                          
13 | repo-oss                                          | Dépôt principal                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.3/repo/oss/                              
14 | repo-sle-debug-update                             | Update repository with updates from SUSE Linux Enterprise 15 (Debug) | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.3/sle/                                   
15 | repo-sle-update                                   | Update repository with updates from SUSE Linux Enterprise 15         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/sle/                                         
16 | repo-source                                       | Source Repository                                                    | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.3/repo/oss/                       
17 | repo-update                                       | Dépôt principal de mise à jour                                       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/oss                                          
18 | repo-update-non-oss                               | Dépôt de mises à jour (Non-OSS)                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/non-oss/

I’m not familiar at all with ldconfig. How would you use it in such a situation?

Post:

zypper se -sir https://download.opensuse.org/repositories/Application:/Geo/openSUSE_Leap_15.3/
zypper se -si qgis

Here are the results of the suggested commands:


localhost:~ # zypper se -sir https://download.opensuse.org/repositories/Application:/Geo/openSUSE_Leap_15.3/
Loading repository data...
Reading installed packages...

S  | Name             | Type    | Version           | Arch   | Repository
---+------------------+---------+-------------------+--------+----------------
i+ | gdal             | package | 3.4.1-lp153.163.1 | x86_64 | Application:Geo
i+ | gpsbabel         | package | 1.7.0-lp153.48.5  | x86_64 | Application:Geo
i+ | libfreexl1       | package | 1.0.6-lp153.22.4  | x86_64 | Application:Geo
i+ | libgdal30        | package | 3.4.1-lp153.163.1 | x86_64 | Application:Geo
i  | libgeos3_10_1    | package | 3.10.1-lp153.44.2 | x86_64 | Application:Geo
i  | libgeos_c1       | package | 3.10.1-lp153.44.2 | x86_64 | Application:Geo
i  | libgeotiff5      | package | 1.7.0-lp153.32.8  | x86_64 | Application:Geo
i+ | libkea1_4        | package | 1.4.10-lp153.16.5 | x86_64 | Application:Geo
i+ | libproj22        | package | 8.2.1-lp153.64.3  | x86_64 | Application:Geo
i  | libqwt6_2        | package | 6.2.0-lp153.5.4   | x86_64 | Application:Geo
i  | librttopo1       | package | 1.1.0-lp153.3.3   | x86_64 | Application:Geo
i+ | libshp2          | package | 1.5.0-lp153.12.1  | x86_64 | Application:Geo
i+ | libspatialindex6 | package | 1.9.3-lp153.10.3  | x86_64 | Application:Geo
i  | libspatialite7   | package | 5.0.1-lp153.15.6  | x86_64 | Application:Geo
i+ | proj             | package | 8.2.1-lp153.64.3  | x86_64 | Application:Geo
i+ | proj-data-at     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-au     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-be     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-br     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-ca     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-ch     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-de     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-dk     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-es     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-eur    | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-fi     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-fo     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-fr     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-is     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-jp     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-nc     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-nl     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-no     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-nz     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-pt     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-se     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-sk     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-uk     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | proj-data-us     | package | 8.2.1-lp153.64.3  | noarch | Application:Geo
i+ | python3-GDAL     | package | 3.4.1-lp153.163.1 | x86_64 | Application:Geo
i+ | python3-OWSLib   | package | 0.25.0-lp153.15.1 | noarch | Application:Geo
i+ | python3-PyYAML   | package | 6.0-lp153.58.27   | x86_64 | Application:Geo
i+ | python3-pyproj   | package | 3.0.1-lp153.31.2  | x86_64 | Application:Geo


localhost:~ # zypper se -si qgis
Loading repository data...
Reading installed packages...

S  | Name             | Type    | Version           | Arch   | Repository
---+------------------+---------+-------------------+--------+----------------
i+ | qgis             | package | 3.18.0-bp153.1.39 | x86_64 | Dépôt principal
i  | qgis-sample-data | package | 3.18.0-bp153.1.39 | noarch | Dépôt principal

Would this means that my installed QGIS comes from official repository and not from Geo one?

Would this means that my installed QGIS comes from official repository and not from Geo one?
Yes…

And many libs from Geo Repo.
That is the Problem.

Why do you need Geo Repo?

Thanks so much! I can’t remember why I added this repository…
Digging into my notes, I realize I installed QGIS in 2020 on OpenSUSE Leap 15.2 by downloading a package from Install package Application:Geo / qgis and then installed it with YaST 1-click Install.

I think I’m going to:

  • Remove all installed packages from Geo repository, as listed in my previous post:
zypper remove xx
  • Remove Geo repository:
zypper rr Application:Geo
  • Remove QGIS to make a fresh reinstall afterwards:
zypper remove qgis
  • Fresh reinstall:
zypper in qgis

Would you do anything else or different? Do you think any directories should be deleted also (i.e. inside /home directory)?

Many thanks again for your last advices!

Thomas

I would not delete the packages, switch them to the OSS Repo in yast.

That’s it!

I used YaST2 to switch one by one every package installed from Geo repository to official repository.

I then checked that the following command returned nothing:

zypper se -sir https://download.opensuse.org/repositories/Application:/Geo/openSUSE_Leap_15.3/

I then disabled the Geo repository and did a computer reboot.

After reboot, I installed QGIS via YaST2 and it now runs again perfectly!

Thanks again so much for precious help!

Thomas