Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111164 - GDAL 1.3.1 python module installed in wrong location
Summary: GDAL 1.3.1 python module installed in wrong location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-01 09:33 UTC by Homme Zwaagstra
Modified: 2005-11-02 00:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch fixing the python install path (gdal-1.3.1.ebuild.patch,319 bytes, patch)
2005-11-01 09:35 UTC, Homme Zwaagstra
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Homme Zwaagstra 2005-11-01 09:33:29 UTC
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
Comment 1 Homme Zwaagstra 2005-11-01 09:35:37 UTC
Created attachment 71879 [details, diff]
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
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-11-01 09:40:13 UTC
(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...
Comment 3 Steve Arnold archtester gentoo-dev 2005-11-02 00:43:48 UTC
It should have been $(get_libdir).  Now it works...