[Qgis-user] Issue with libQt5Core when running QGI 3.22 via singularity

2022-01-18 Thread Shan-ho Tsai

Hello,

I'm trying to run QGIS 3.22 on an HPC cluster. Docker is not available on the 
cluster, but Singularity is. I created a singularity image from the official 
docker container documented at https://hub.docker.com/r/qgis/qgis. The command 
I used to create the singularity image is

singularity pull docker://qgis/qgis

and this created qgis_latest.sif

But when I run it via Singularity, I get the error that libQt5Core.so cannot be 
found:

[shtsai@b1-24 ~]$ singularity run qgis_latest.sif qgis --help
/usr/bin/qgis: error while loading shared libraries: libQt5Core.so.5: cannot 
open shared object file: No such file or directory

This library is available in the container, but perhaps the library path is not 
set up correctly for using it via Singularity:

[shtsai@b1-24 ~]$ singularity run qgis_latest.sif ls -l 
/usr/lib/x86_64-linux-gnu/libQt5Core.so
lrwxrwxrwx 1 root root 20 Jan  5 13:54 /usr/lib/x86_64-linux-gnu/libQt5Core.so 
-> libQt5Core.so.5.12.8
[shtsai@b1-24 ~]$ singularity run qgis_latest.sif ls -l 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.8
-rw-r--r-- 1 root root 5519624 Jan  5 13:54 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.8

Any thoughts why this error occurred and how I can resolve it?

Thank you in advance.
Regards,
Shan-Ho


Shan-Ho Tsai
GACRC/EITS, University of Georgia
Athens, GA 30602
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Issue with libQt5Core when running QGI 3.22 via singularity

2022-01-18 Thread Jürgen E . Fischer
Hi Shan-ho,

On Tue, 18. Jan 2022 at 18:18:31 +, Shan-ho Tsai wrote:
> I'm trying to run QGIS 3.22 on an HPC cluster. Docker is not available on the 
> cluster, but Singularity is. I created a singularity image from the official 
> docker container documented at https://hub.docker.com/r/qgis/qgis. The 
> command I used to create the singularity image is
 
> singularity pull docker://qgis/qgis
 
> and this created qgis_latest.sif
 
> But when I run it via Singularity, I get the error that libQt5Core.so cannot 
> be found:
 
> [shtsai@b1-24 ~]$ singularity run qgis_latest.sif qgis --help
> /usr/bin/qgis: error while loading shared libraries: libQt5Core.so.5: cannot 
> open shared object file: No such file or directory

Run

strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5  


Jürgen

-- 
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Nordenhttps://www.norbit.de
QGIS release manager (PSC)  Germany IRC: jef on Libera|OFTC


signature.asc
Description: PGP signature
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Issue with libQt5Core when running QGI 3.22 via singularity

2022-01-19 Thread Shan-ho Tsai

Hi Jürgen,

Thank you so much for your response, that worked!

Now I am seeing a new (non-fatal) error:

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

ModuleNotFoundError: No module named 'owsllib.ogcapi.records'  "

Is this a module that is missing in the docker container or perhaps singularity 
is somehow not finding it?

Any thoughts how I can resolve this issue? (I am interested in running QGIS 
without a server or web services, if it matters).

I really appreciate your kind help.

Regards,
Shan-Ho



Shan-Ho Tsai
GACRC/EITS, University of Georgia, Athens GA




From: Qgis-user  on behalf of Jürgen E. 
Fischer 
Sent: Tuesday, January 18, 2022 3:29 PM
To: qgis-user@lists.osgeo.org 
Subject: Re: [Qgis-user] Issue with libQt5Core when running QGI 3.22 via 
singularity

[EXTERNAL SENDER - PROCEED CAUTIOUSLY]


Hi Shan-ho,

On Tue, 18. Jan 2022 at 18:18:31 +, Shan-ho Tsai wrote:
> I'm trying to run QGIS 3.22 on an HPC cluster. Docker is not available on the 
> cluster, but Singularity is. I created a singularity image from the official 
> docker container documented at https://hub.docker.com/r/qgis/qgis. The 
> command I used to create the singularity image is

> singularity pull docker://qgis/qgis

> and this created qgis_latest.sif

> But when I run it via Singularity, I get the error that libQt5Core.so cannot 
> be found:

> [shtsai@b1-24 ~]$ singularity run qgis_latest.sif qgis --help
> /usr/bin/qgis: error while loading shared libraries: libQt5Core.so.5: cannot 
> open shared object file: No such file or directory

Run

strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5


Jürgen

--
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Nordenhttps://www.norbit.de
QGIS release manager (PSC)  Germany IRC: jef on Libera|OFTC
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user