FS#58299 - [python2-gdal] ImportError: No module named _gdal_array

Attached to Project: Community Packages
Opened by Xavier Corredor Llano (epsilom) - Saturday, 21 April 2018, 23:57 GMT
Last edited by Balló György (City-busz) - Sunday, 22 April 2018, 07:46 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Bug occur for python2-gdal and python-gdal version 2.2.4:

python2 -c "from osgeo import gdalnumeric"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/osgeo/gdalnumeric.py", line 1, in <module>
from osgeo.gdal_array import *
File "/usr/lib/python2.7/site-packages/osgeo/gdal_array.py", line 28, in <module>
_gdal_array = swig_import_helper()
File "/usr/lib/python2.7/site-packages/osgeo/gdal_array.py", line 20, in swig_import_helper
import _gdal_array
ImportError: No module named _gdal_array

Error due to missing files:

/usr/lib/python2.7/site-packages/osgeo/_gdal_array.so
This task depends upon

Closed by  Balló György (City-busz)
Sunday, 22 April 2018, 07:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-gdal 2.2.4-2 and python2-gdal 2.2.4-2
Comment by Xavier Corredor Llano (epsilom) - Sunday, 22 April 2018, 03:11 GMT
For python-gdal the file missing is:

/usr/lib/python3.6/site-packages/osgeo/_gdal_array.cpython-36m-x86_64-linux-gnu.so
Comment by Xavier Corredor Llano (epsilom) - Sunday, 22 April 2018, 03:23 GMT
This bug is very important, some app/scripts stopped working:

* gdal_calc.py
* Some process in Qgis
* Some plugins in Qgis
* ...

Loading...