OSGeo / homebrew-osgeo4mac

Mac homebrew tap for maintaining a stable work environment for the OSGeo.org geospatial toolset
https://git.io/fhh3X
BSD 3-Clause "New" or "Revised" License
364 stars 111 forks source link

gdal2xyz.py library not loaded #1266

Closed bennyistanto closed 4 years ago

bennyistanto commented 5 years ago

Hello, I am getting error when run gdal2xyz.py to convert geotiff image to csv.

Traceback (most recent call last): File "/usr/local/opt/osgeo-gdal-python/bin/gdal2xyz.py", line 34, in <module> from osgeo import gdal File "/usr/local/lib/python2.7/site-packages/osgeo/__init__.py", line 21, in <module> _gdal = swig_import_helper() File "/usr/local/lib/python2.7/site-packages/osgeo/__init__.py", line 17, in swig_import_helper _mod = imp.load_module('_gdal', fp, pathname, description) ImportError: dlopen(/usr/local/lib/python2.7/site-packages/osgeo/_gdal.so, 2): Library not loaded: /usr/local/opt/gdal/lib/libgdal.20.dylib Referenced from: /usr/local/lib/python2.7/site-packages/osgeo/_gdal.so Reason: image not found`

Then I tried to uninstall osgeo-gdal and install gdal from homebrew formula, its worked.

$ gdal2xyz.py Usage: gdal2xyz.py [-skip factor] [-srcwin xoff yoff width height] [-band b] [-csv] srcfile [dstfile]

Any ideas what to do to resolve this?

stale[bot] commented 4 years ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want to keep the issue open, please comment or update the info here. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue or pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.