[gdal-dev] AttributeError: module '_gdal' has no attribute 'DirEntry_name_get'
Han Wang
hanwgeek at gmail.com
Fri Jan 8 09:30:12 PST 2021
Hi all,
I want to use gdal in python3.6 with QGIS but when I `from osgeo import
gdal`, it shows:
```python
>>> from osgeo import gdal
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/osgeo/gdal.py", line 1565,
in <module>
class DirEntry(_object):
File "/usr/local/lib/python3.6/dist-packages/osgeo/gdal.py", line 1573,
in DirEntry
__swig_getmethods__["name"] = _gdal.DirEntry_name_get
AttributeError: module '_gdal' has no attribute 'DirEntry_name_get'
```
I installed GDAL2.2.3 from qgis.org repo. What can I do to fix this? Thanks
a lot!
Best regards,
Han
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210109/b870131e/attachment.html>
More information about the gdal-dev
mailing list