Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: QGIS Python error "RuntimeError: Cannot find any suitable spatialite module"

  1. #11
    Join Date
    May 2009
    Location
    Spain
    Posts
    28

    Default Re: QGIS Python error "RuntimeError: Cannot find any suitable spatialite module"

    I updated the issue on github with your findings and they closed it
    BR

  2. #12
    Join Date
    Oct 2014
    Location
    Rotterdam
    Posts
    281

    Default Re: QGIS Python error "RuntimeError: Cannot find any suitable spatialite module"

    Yes, this is no QGIS issue but a Opensuse packaging problem.

    On the problem, I see the module is provided for me (running on Thumbleweed) by
    Code:
    > rpm -qif /usr/lib64/mod_spatialite.so.7    
    Name        : libspatialite7 
    Version     : 4.3.0a 
    Release     : 15.41 
    Architecture: x86_64 
    Install Date: Sun Apr 25 15:39:20 2021 
    Group       : System/Libraries 
    Size        : 12571136 
    License     : MPL-1.1 
    Signature   : DSA/SHA1, Thu Apr 22 08:45:52 2021, Key ID 01db7302943d8bb8 
    Source RPM  : libspatialite-4.3.0a-15.41.src.rpm 
    Build Date  : Thu Apr 22 08:43:46 2021 
    Build Host  : goat03 
    Vendor      : obs://build.opensuse.org/science
    URL         : http://www.gaia-gis.it/spatialite/ 
    Summary     : Spatial SQLite 
    Description : 
    The SpatiaLite extension enables SQLite to support spatial data too [aka 
    GEOMETRY], in a way conformant to OpenGis specifications. 
    Distribution: science / openSUSE_Tumbleweed
    That is remarkable, it is from obs://build.opensuse.org/science, I would have expected from Application:Geo
    And yes, there are two packages:
    1. http://download.opensuse.org/reposit....41.x86_64.rpm
    2. http://download.opensuse.org/reposit....34.x86_64.rpm
    The one from Science is newer, so is that the reason zypper did choice that?

    Next question, what is in the .rpm?

    Code:
    > rpm -ql http://download.opensuse.org/repositories/science/openSUSE_Tumbleweed/x86_64/libspatialite7-4.3.0a-15.41.x86_64.rpm
    /usr/lib64/libspatialite.so.7
    /usr/lib64/libspatialite.so.7.1.0
    /usr/lib64/mod_spatialite.so.7
    /usr/lib64/mod_spatialite.so.7.1.0
    /usr/share/doc/packages/libspatialite7
    /usr/share/doc/packages/libspatialite7/README
    /usr/share/doc/packages/libspatialite7/README.coverage
    /usr/share/licenses/libspatialite7
    /usr/share/licenses/libspatialite7/COPYING
    > rpm -qp --scripts http://download.opensuse.org/repositories/science/openSUSE_Tumbleweed/x86_64/libspatialite7-4.3.0a-15.41.x86_64.rpm
    postinstall program: /sbin/ldconfig
    postuninstall program: /sbin/ldconfig
    The output is the same for the Application:Geo version.

    So what is ldconfig doing?
    Code:
    > sudo /sbin/ldconfig -v | grep libspatialite
            libspatialite.so.7 -> libspatialite.so.7.1.0
    Still not clear to me who is responsible for creating the libspatialite.so -> libspatialite.so.7 symlink...

  3. #13
    Join Date
    Oct 2014
    Location
    Rotterdam
    Posts
    281

    Default Re: QGIS Python error "RuntimeError: Cannot find any suitable spatialite module"

    More things not clear, where is libspatialite7 coming from?

    On the official SpatiaLite page I see "current version is 5.0.1 (released on 2021-02-07)" and searching on the Internet lispatialite7 seems to be an Opensuse thing.

    Also remarkable is that there are 4 libspatialite packages:
    1. libspatialite-debugsource-4.3.0a-15.41.x86_64.rpm
    2. libspatialite-devel-4.3.0a-15.41.x86_64.rpm
    3. libspatialite7-4.3.0a-15.41.x86_64.rpm
    4. libspatialite7-debuginfo-4.3.0a-15.41.x86_64.rpm


    And I can only find the Science libspatialite package on build.opensuse.org not libspatialite7
    Found that there is in the libspatialite.spec file:

    Code:
    %define sover   7
    %define libname %{name}%{sover}
    Name:           libspatialite
    Version:        4.3.0a
    I guess solving the issue is a matter of removing the first two lines but is that a good idea?

    NB: The Application:Geo package has exactly the same issue.

  4. #14
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,064
    Blog Entries
    15

    Default Re: QGIS Python error "RuntimeError: Cannot find any suitable spatialite module"

    Quote Originally Posted by marel View Post
    More things not clear, where is libspatialite7 coming from?

    On the official SpatiaLite page I see "current version is 5.0.1 (released on 2021-02-07)" and searching on the Internet lispatialite7 seems to be an Opensuse thing.

    Also remarkable is that there are 4 libspatialite packages:
    1. libspatialite-debugsource-4.3.0a-15.41.x86_64.rpm
    2. libspatialite-devel-4.3.0a-15.41.x86_64.rpm
    3. libspatialite7-4.3.0a-15.41.x86_64.rpm
    4. libspatialite7-debuginfo-4.3.0a-15.41.x86_64.rpm


    And I can only find the Science libspatialite package on build.opensuse.org not libspatialite7
    Found that there is in the libspatialite.spec file:

    Code:
    %define sover   7
    %define libname %{name}%{sover}
    Name:           libspatialite
    Version:        4.3.0a
    I guess solving the issue is a matter of removing the first two lines but is that a good idea?

    NB: The Application:Geo package has exactly the same issue.
    Hi
    No, that is the shared library version....
    Best idea is a bug report... openSUSE:Submitting bug reports - openSUSE
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #15
    Join Date
    Oct 2014
    Location
    Rotterdam
    Posts
    281

    Default Re: QGIS Python error "RuntimeError: Cannot find any suitable spatialite module"

    Bug submitted: https://bugzilla.opensuse.org/show_bug.cgi?id=1185415

    Yes, 7 is the shared library version but I see quite some packages that does not define it and it is unclear to me why libspatialite would need it.

  6. #16
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,064
    Blog Entries
    15

    Default Re: QGIS Python error "RuntimeError: Cannot find any suitable spatialite module"

    Quote Originally Posted by marel View Post
    Bug submitted: https://bugzilla.opensuse.org/show_bug.cgi?id=1185415

    Yes, 7 is the shared library version but I see quite some packages that does not define it and it is unclear to me why libspatialite would need it.
    Hi
    Because it's a shared library packaging policy if not there will fail..... https://en.opensuse.org/openSUSE:Sha...ckaging_policy
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •