Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
View Bug Activity | Format For Printing | XML | Clone This Bug
The GDAL python modules (including gdal, ogr and osr) are all installed in the wrong location. This results in the import statement failing to locate them, producing an ImportError: ImportError: No module named gdal Instead of being installed in the /usr/lib/python2.4/site-packages directory the modules are installed in /usr/python2.4/site-packages Reproducible: Always Steps to Reproduce: 1. Open up an interactive python session 2. Type 'import gdal' followed by return Actual Results: ImportError: No module named gdal Expected Results: Imported the gdal module
Created an attachment (id=71879) [edit] Patch fixing the python install path use_conf="--with-pymoddir=/usr/${get_libdir}/python${PYVER}/site-packages is changed to: use_conf="--with-pymoddir=/usr/lib/python${PYVER}/site-packages
(In reply to comment #1) > use_conf="--with-pymoddir=/usr/${get_libdir}/python${PYVER}/site-packages > > is changed to: > > use_conf="--with-pymoddir=/usr/lib/python${PYVER}/site-packages Uhm no, that'll break things for amd64...
It should have been $(get_libdir). Now it works...