Ubuntu 21.10 gdal python3

Terrance McMinn t.mcminn at ocpms.com.au
Wed Dec 15 08:17:27 UTC 2021


I seem to have an underlining issue with libgdal28:

I have installed gdal-bin gdal-data python3-gdal.

In a bash terminal:

python3 /usr/share/doc/python3-gdal/examples/assemblepoly.py
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/osgeo/__init__.py", line 18, in 
     return importlib.import_module(mname)
   File "/usr/lib/python3.9/importlib/__init__.py", line 127, in 
     return _bootstrap._gcd_import(name[level:], package, level)
   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
   File "<frozen importlib._bootstrap>", line 986, in 
   File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
   File "<frozen importlib._bootstrap>", line 565, in module_from_spec
   File "<frozen importlib._bootstrap_external>", line 1173, in 
   File "<frozen importlib._bootstrap>", line 228, in 
ImportError: /lib/libgdal.so.28: undefined symbol: 
TIFFGetStrileByteCount, version LIBTIFF_4.0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/share/doc/python3-gdal/examples/assemblepoly.py", line 33, 
in <module>
     from osgeo import ogr
   File "/usr/lib/python3/dist-packages/osgeo/__init__.py", line 32, in 
     _gdal = swig_import_helper()
   File "/usr/lib/python3/dist-packages/osgeo/__init__.py", line 31, in 
     return importlib.import_module('_gdal')
   File "/usr/lib/python3.9/importlib/__init__.py", line 127, in 
     return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_gdal'

This same error prevents me from install qgis as qgis-providers requires 

ls -lai /usr/lib/libgdal*
7999020 lrwxrwxrwx 1 root root       17 Sep  9 19:03 
/usr/lib/libgdal.so.28 -> libgdal.so.28.0.2
7999019 -rw-r--r-- 1 root root 21914864 Sep  9 19:03 

Any suggestions on fixes?

Kind Regards
*Terrance McMinn*
Please consider the environment before printing this email.

Notice - This message contains confidential information intended only 
for the exclusive use of the addressee named above. No confidentiality 
is waived or lost by any mistaken transmission to you. If you have 
received this message in error please delete the document and notify me 

Any opinion, text, documentation or attachment received is valid as at 
the date of issue only. The recipient is responsible for reviewing the 
status of the transferred information and should advise me immediately 
upon receipt of any discrepancy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20211215/ae2d8bc4/attachment.html>

More information about the Ubuntu-devel-discuss mailing list