[gdal-dev] gdal_merge.py won't load libpng
Dominik Schneider
Dominik.Schneider at Colorado.EDU
Fri Jul 5 12:39:51 PDT 2013
anyone have any suggestions?! I'm at a complete loss how to troubleshoot.
Dominik Schneider
o 303.735.6296 | c 518.956.3978
On Tue, Jul 2, 2013 at 10:52 AM, Dominik Schneider <
dominik.schneider at colorado.edu> wrote:
> Hi,
> I am trying to run:
> gdal_merge.py -init -9999 -n 2001 -o
> MOD09GA.A2012001.h08v05.005.NRTsnow_fraction.tif.1
> MOD09GA.A2012001.h08v05.005.NRTsnow_fraction.tif
>
> The Error:
> Traceback (most recent call last):
> File "/Library/Frameworks/GDAL.framework/Programs/gdal_merge.py", line
> 36, in <module>
> import gdal
> File "/usr/local/lib/python2.7/site-packages/gdal.py", line 2, in
> <module>
> from osgeo.gdal import deprecation_warn
> 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: libpng15.15.dylib
> Referenced from: /usr/local/Cellar/gdal/1.10.0/lib/libgdal.1.dylib
> Reason: image not found
>
> Gdal is here:
> > which gdal_merge.py
> /Library/Frameworks/GDAL.framework/Programs/gdal_merge.py
>
> I'm completely new gdal but am guessing i've got some confusion between
> different versions of gdal and python. I have rgdal installed so at some
> point in the past I probably installed gdal too? Today I installed gdal
> with homebrew and also tried the binary from
> http://www.kyngchaos.com/software:frameworks
> For python I have the system default (2.7) on osx.7.5 and the anaconda
> installation.
>
> I should also say, if I load python I am unable to import gdal:
> > python
> Python 2.7.4 |Anaconda 1.5.1 (x86_64)| (default, May 9 2013, 12:12:00)
> [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from osgeo import gdal
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> 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: libpng15.15.dylib
> Referenced from: /usr/local/Cellar/gdal/1.10.0/lib/libgdal.1.dylib
> Reason: image not found
>
>
> any help would be appreciated.
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130705/367d919e/attachment.html>
More information about the gdal-dev
mailing list