Re: [gdal-dev] Problem importing osgeo module in Python

2008-08-09 Thread Mateusz Loskot
Christopher Barker wrote: Mateusz Loskot wrote:http://trac.osgeo.org/gdal/browser/trunk I don't think so. I presume Roger used custom --prefix and --pymoddir while configuring. If that's the case, then he could set --pmoddir to the regular python location. But if setting --prefix changes wh

Re: [gdal-dev] Problem importing osgeo module in Python

2008-08-08 Thread Christopher Barker
Mateusz Loskot wrote: I don't think so. I presume Roger used custom --prefix and --pymoddir while configuring. If that's the case, then he could set --pmoddir to the regular python location. But if setting --prefix changes where the python stuff goes too, then that's an unfortunate limitati

Re: [gdal-dev] Problem importing osgeo module in Python

2008-08-08 Thread Mateusz Loskot
Christopher Barker wrote: Christopher Barker wrote: What is /export? I've seen that before. I meant, I HAVEN'T seen that before. Anyone, what I'm trying to figure out is if there is something wrong with GDAL's install scripts, or if there is something odd about your system. Chris, I don

Re: [gdal-dev] Problem importing osgeo module in Python

2008-08-08 Thread Roger André
No, no, there is nothing wrong with the install scripts. The reason it placed the stuff there is because I specified a --prefix=/export flag in my configure command. I installed a bunch of different things on my machine, and I have a large mounted disk at /export. Thanks for the follow-up though

Re: [gdal-dev] Problem importing osgeo module in Python

2008-08-08 Thread Christopher Barker
Christopher Barker wrote: What is /export? I've seen that before. I meant, I HAVEN'T seen that before. Anyone, what I'm trying to figure out is if there is something wrong with GDAL's install scripts, or if there is something odd about your system. -Chris -- Christopher Barker, Ph.D. Oc

Re: [gdal-dev] Problem importing osgeo module in Python

2008-08-08 Thread Christopher Barker
Roger André wrote: that shouldn't be required -- site-packages should be on your sys.path already. Is your python in /export/lib64/python2.3 ? Do you have more than one python? My Python is not in /export/lib64/python2.3. That's a useful trick, thanks. My python install appear

Re: [gdal-dev] Problem importing osgeo module in Python

2008-08-08 Thread Roger André
Hi Chris, > that shouldn't be required -- site-packages should be on your sys.path > already. Is your python in /export/lib64/python2.3 ? Do you have more than > one python? My Python is not in /export/lib64/python2.3. (for some reason, saying that makes me laugh, but I digress) I also do no

Re: [gdal-dev] Problem importing osgeo module in Python

2008-08-08 Thread Christopher Barker
Roger André wrote: $ python Python 2.3.4 (#1, Dec 11 2007, 05:28:55) [GCC 3.4.6 20060404 (Red Hat 3.4.6-9)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from osgeo import gdal Traceback (most recent call last): File "", line 1, in ? ImportError: No modu

Re: [gdal-dev] Problem importing osgeo module in Python

2008-08-08 Thread Roger André
Thanks Mateusz, that did the trick, thanks. # find /export -name "libgdal.so" /export/lib/libgdal.so # export LD_LIBRARY_PATH=/export/lib # python Python 2.3.4 (#1, Dec 11 2007, 05:28:55) [GCC 3.4.6 20060404 (Red Hat 3.4.6-9)] on linux2 Type "help", "copyright", "credits" or "license" for more in

Re: [gdal-dev] Problem importing osgeo module in Python

2008-08-08 Thread Mateusz Loskot
Roger André wrote: Hi everyone, I'm getting a new machine setup and have hit a snag with the GDAL installation. I've installed GDAL from source onto a CentOS box using the gdal-1.5.2.tar.gz file, and with the following parameters: $ sudo ./configure --prefix=/export --with-pg=/export/bin/pg_co

[gdal-dev] Problem importing osgeo module in Python

2008-08-08 Thread Roger André
Hi everyone, I'm getting a new machine setup and have hit a snag with the GDAL installation. I've installed GDAL from source onto a CentOS box using the gdal-1.5.2.tar.gz file, and with the following parameters: $ sudo ./configure --prefix=/export --with-pg=/export/bin/pg_config --with-python $