[Osgeo4w-trac] [osgeo4w] #646: gdal_array missing from latest python bindings?
OSGeo4W
trac_osgeo4w at osgeo.org
Wed Oct 21 22:39:15 PDT 2020
#646: gdal_array missing from latest python bindings?
---------------------+-------------------------------
Reporter: chau | Owner: osgeo4w-dev@…
Type: defect | Status: new
Priority: critical | Component: Package
Version: | Keywords: gdal python numpy
---------------------+-------------------------------
I cannot run this command any more:
`from osgeo import gdal_array?`
{{{
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\OSGEO4~1\apps\Python27\lib\site-packages\osgeo\gdal_array.py",
line 17, in <module>
_gdal_array = swig_import_helper()
File "C:\OSGEO4~1\apps\Python27\lib\site-packages\osgeo\gdal_array.py",
line 16, in swig_import_helper
return importlib.import_module('_gdal_array')
File "C:\OSGEO4~1\apps\Python27\lib\importlib\__init__.py", line 37, in
import_module
__import__(name)
ImportError: No module named _gdal_array
}}}
I cannot find any `_gdal_array*.pyd` in my OSGeo folder related to Python
2.7, only for python 3.7.
Latest gdal seems to be 3.1.4rc2-1 and unlike all other gdal packages
(which can revert back to 3.0.4-2), I cannot revert back to a previous
version with exactly the package`gdal-python: The GDAL/OGR Python Bindings
and Scripts`.
Has something gone wrong in the latest build?
--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/646>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
More information about the Osgeo4w-trac
mailing list