[email protected] wrote:
> I get the same list that you get when running "fink list gdal" and
> have installed the python 25 and 26 libs. I have also installed the
> Grass 6.2 libs.
> i grass62 6.2.3-1 Powerful GIS software
> i grass62-dev 6.2.3-1 GRASS Development Headers
> i grass62-shlibs 6.2.3-1 GRASS Shared Libraries
> However, when I switch to ipython and test the command "from osgeo
> import ogr" I get the same output as before. No module named osgeo.
>
> Thanks,
> Jon
>
When looking at this, I found that I had intially gotten a misbuilt
version of gdal-py26 which lacked any python files. You can check this
out by using
dpkg -L gdal-py26
where the misbuild looks like
$ dpkg -S gdal-py26
gdal-py26: /sw/share/doc/gdal-py26/HOWTO-RELEASE
gdal-py26: /sw/share/doc/gdal-py26/COMMITERS
gdal-py26: /sw/share/doc/gdal-py26
gdal-py26: /sw/share/doc/gdal-py26/LICENSE.TXT
gdal-py26: /sw/share/doc/gdal-py26/README.txt
gdal-py26: /sw/share/doc/gdal-py26/PROVENANCE.TXT
gdal-py26: /sw/share/doc/gdal-py26/VERSION
I then used
fink rebuild gdal-py26
and now get the following:
$ dpkg -L gdal-py26
/.
/sw
/sw/bin
/sw/bin/epsg_tr.py26
/sw/bin/esri2wkt.py26
/sw/bin/gcps2vec.py26
/sw/bin/gcps2wld.py26
/sw/bin/gdal2tiles.py26
/sw/bin/gdal2xyz.py26
/sw/bin/gdal_merge.py26
/sw/bin/gdal_polygonize.py26
/sw/bin/gdal_proximity.py26
/sw/bin/gdal_retile.py26
/sw/bin/gdal_sieve.py26
/sw/bin/gdalchksum.py26
/sw/bin/gdalident.py26
/sw/bin/gdalimport.py26
/sw/bin/mkgraticule.py26
/sw/bin/pct2rgb.py26
/sw/bin/rgb2pct.py26
/sw/lib
/sw/lib/python2.6
/sw/lib/python2.6/site-packages
/sw/lib/python2.6/site-packages/GDAL-1.6.0-py2.6.egg-info
/sw/lib/python2.6/site-packages/GDAL-1.6.0-py2.6.egg-info/PKG-INFO
/sw/lib/python2.6/site-packages/GDAL-1.6.0-py2.6.egg-info/SOURCES.txt
/sw/lib/python2.6/site-packages/GDAL-1.6.0-py2.6.egg-info/dependency_links.txt
/sw/lib/python2.6/site-packages/GDAL-1.6.0-py2.6.egg-info/not-zip-safe
/sw/lib/python2.6/site-packages/GDAL-1.6.0-py2.6.egg-info/top_level.txt
/sw/lib/python2.6/site-packages/gdal.py
/sw/lib/python2.6/site-packages/gdal.pyc
/sw/lib/python2.6/site-packages/gdalconst.py
/sw/lib/python2.6/site-packages/gdalconst.pyc
/sw/lib/python2.6/site-packages/gdalnumeric.py
/sw/lib/python2.6/site-packages/gdalnumeric.pyc
/sw/lib/python2.6/site-packages/ogr.py
/sw/lib/python2.6/site-packages/ogr.pyc
/sw/lib/python2.6/site-packages/osgeo
/sw/lib/python2.6/site-packages/osgeo/__init__.py
/sw/lib/python2.6/site-packages/osgeo/__init__.pyc
/sw/lib/python2.6/site-packages/osgeo/_gdal.so
/sw/lib/python2.6/site-packages/osgeo/_gdal_array.so
/sw/lib/python2.6/site-packages/osgeo/_gdalconst.so
/sw/lib/python2.6/site-packages/osgeo/_ogr.so
/sw/lib/python2.6/site-packages/osgeo/_osr.so
/sw/lib/python2.6/site-packages/osgeo/gdal.py
/sw/lib/python2.6/site-packages/osgeo/gdal.pyc
/sw/lib/python2.6/site-packages/osgeo/gdal_array.py
/sw/lib/python2.6/site-packages/osgeo/gdal_array.pyc
/sw/lib/python2.6/site-packages/osgeo/gdalconst.py
/sw/lib/python2.6/site-packages/osgeo/gdalconst.pyc
/sw/lib/python2.6/site-packages/osgeo/gdalnumeric.py
/sw/lib/python2.6/site-packages/osgeo/gdalnumeric.pyc
/sw/lib/python2.6/site-packages/osgeo/ogr.py
/sw/lib/python2.6/site-packages/osgeo/ogr.pyc
/sw/lib/python2.6/site-packages/osgeo/osr.py
/sw/lib/python2.6/site-packages/osgeo/osr.pyc
/sw/lib/python2.6/site-packages/osr.py
/sw/lib/python2.6/site-packages/osr.pyc
/sw/share
/sw/share/doc
/sw/share/doc/gdal-py26
/sw/share/doc/gdal-py26/COMMITERS
/sw/share/doc/gdal-py26/HOWTO-RELEASE
/sw/share/doc/gdal-py26/LICENSE.TXT
/sw/share/doc/gdal-py26/PROVENANCE.TXT
/sw/share/doc/gdal-py26/README.txt
/sw/share/doc/gdal-py26/VERSION
.
I'm not sure what changed to make this work correctly, but in any case try
fink -l rebuild gdal-py26
and use the "dpkg -L" command to check what's in it after that.
--
Alexander Hansen
Fink User Liaison
> > CC: [email protected]
> > From: [email protected]
> > To: [email protected]; [email protected]
> > Subject: Re: [Fink-beginners] OSGeo problems in Fink
> > Date: Thu, 18 Jun 2009 19:23:31 -0300
> >
> > On 18/06/2009, at 18:44, JPKay wrote:
> > > I am interested in using fink to install the OSGeo libraries that
> > > specifically include GDAL and OGR. I have installed the gdal-dev
> > > libraries
> > > and have also installed the GRASS-62 libraries, however when I go to
> > > my
> > > interactive python window I get the following error.
> > > from osgeo import ogr
> > > ImportError: No module named osgeo
> > Running
> >
> > fink list gdal
> >
> > on my box outputs
> >
> > gdal 1.6.0-1002 Raster/Vector Geospatial Format Translator
> > gdal-dev 1.6.0-1002 GDAL/OGR development headers
> > gdal-py25 1.6.0-1 Raster/Vector Geospatial Format Translator
> > gdal-py26 1.6.0-1 Raster/Vector Geospatial Format Translator
> > gdal-shlibs 1.6.0-1002 GDAL/OGR shared libraries
> >
> > If osgeo/ogr are provided by gdal then you should probably install
> > either gdal-py25 or gdal-py26, which are the Python modules for Python
> > 2.5 and Python 2.6, respectively. gdal-dev contains development
> > headers that are usually needed only if you want to compile C/C++ code
> > that uses gdal.
> >
> > > This suggests to me that the OSGeo packages have not been installed
> > > correctly. Any ideas to get me unstuck would be appreciated.
> >
> > I'm CC'ing Kurt Schwehr, the maintainer of gdal* and grass-62, who's
> > the best person to provide assistance with these packages.
> >
> >
> > Cheers,
> >
> > --
> > monipol
> >
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners