On 18/06/2009, at 20:33, <[email protected]> 
<[email protected] 
 > wrote:
>> 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.
>
> 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.

ipython? What Python is that, and where is it installed? Run

which ipython

to find out.

Fink-installed Python modules are only available to Fink-installed  
Python, which should be either /sw/bin/python2.5 or /sw/bin/python2.6.


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

Reply via email to