Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338617 - sci-geosciences/mapnik builds ok, but missing python file
Summary: sci-geosciences/mapnik builds ok, but missing python file
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-24 22:58 UTC by John L. Poole
Modified: 2012-05-26 21:50 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John L. Poole 2010-09-24 22:58:00 UTC
emerge of  sci-geosciences/mapnik concludes without error.  According to the MapNik documentation at http://trac.mapnik.org/wiki/GettingStarted:

  Make sure you have mapnik installed. Depending on your installation path you may need to modify your PYTHONPATH, /etc/ld.so.conf or export LD_LIBRARY_PATH, or whatever your system requires.

  The simple check is to start python interpreter from a command line by typing python and then just type:

  >>> import mapnik

  and if you don't see any complaints, you're on the right track. If you do, you have to check your installation again. 



Reproducible: Always

Steps to Reproduce:
1. python
2. import mapnik


Actual Results:  
hermes examples # python
Python 2.6.5 (release26-maint, Aug 24 2010, 15:25:45)
[GCC 4.4.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mapnik
Problem loading plugin library: /usr/lib64/mapnik/input/ogr.input (libtool error: file not found)
Problem loading plugin library: /usr/lib64/mapnik/input/gdal.input (libtool error: file not found)
registered datasource : postgis
registered datasource : raster
registered datasource : sqlite
registered datasource : shape
>>>



Expected Results:  
hermes examples # python
Python 2.6.5 (release26-maint, Aug 24 2010, 15:25:45)
[GCC 4.4.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mapnik
registered datasource : postgis
registered datasource : raster
registered datasource : sqlite
registered datasource : shape
>>>


Here's the final installation notes:

>>> Completed installing mapnik-0.6.1-r3 into /var/tmp/portage/sci-geosciences/mapnik-0.6.1-r3/image/

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/lib64/python2.6/site-packages/mapnik/_mapnik.so
   usr/lib64/mapnik/input/ogr.input
   usr/lib64/mapnik/input/gdal.input
   usr/lib64/mapnik/input/postgis.input
   usr/lib64/mapnik/input/raster.input
   usr/lib64/mapnik/input/sqlite.input
   usr/lib64/mapnik/input/shape.input
   usr/lib64/libmapnik.so.0.6.1
   usr/bin/shapeindex
   usr/bin/pgsql2sqlite

>>> Installing (1 of 1) sci-geosciences/mapnik-0.6.1-r3
 *
 * See the home page or the OpenStreetMap wiki for more info, and
 * the installed examples for the default mapnik ogcserver config.
 *

 * Messages for package sci-geosciences/mapnik-0.6.1-r3:

 * mapnik-0.6.1 BOOST_VERSION is 1_39
 * mapnik-0.6.1 BOOST_INC is /usr/include/boost-1_39
 * mapnik-0.6.1 BOOST_LIB is /usr/lib64/boost-1_39
 *
 * See the home page or the OpenStreetMap wiki for more info, and
 * the installed examples for the default mapnik ogcserver config.
 *
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
hermes examples #
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-09-27 10:25:44 UTC
Please try running:
$ /usr/lib64/mapnik/input/ogr.input
$ /usr/lib64/mapnik/input/gdal.input
Comment 2 John L. Poole 2010-09-27 13:47:04 UTC
ouch:

  hermes var # /usr/lib64/mapnik/input/ogr.input
  Segmentation fault
  hermes var # /usr/lib64/mapnik/input/gdal.input
  Segmentation fault
  hermes var #
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-09-27 13:51:34 UTC
(In reply to comment #2)
> ouch:
>   hermes var # /usr/lib64/mapnik/input/ogr.input
>   Segmentation fault
>   hermes var # /usr/lib64/mapnik/input/gdal.input
>   Segmentation fault

That's normal. Doesn't look like having broken linkage.
Comment 4 Steve Arnold archtester gentoo-dev 2010-10-17 23:26:28 UTC
"import mapnik" gives me no errors, and no output at all...
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2012-05-26 09:46:41 UTC
Seems to work with 2.0.1 at least here.

Please reopen or open new bug if you can reproduce it with that version.
Comment 6 John L. Poole 2012-05-26 21:50:25 UTC
I successfully emerged mapnik:

[I] sci-geosciences/mapnik
     Available versions:  (~)0.7.1-r1 (~)0.7.1-r2 {M}(~)2.0.0 [M](~)9999[1] {bidi cairo curl debug (-)doc (+)gdal geos nobfonts postgres proj python sqlite}
     Installed versions:  2.0.0(07:15:19 05/26/12)(cairo debug gdal postgres python sqlite -bidi -doc -geos -nobfonts)
     Homepage:            http://www.mapnik.org/
     Description:         A Free Toolkit for developing mapping applications.


I had to tweak some settings and add "python" as a use variable to dev-libs/boost.

After all that, I tried an assay (with the new 2.0 tool mapnik-conf and nothing happened.

hermes ~ # mapnik-config -v

hermes ~ # 

This is a different issue and warrants a different bug which I may get around to logging at some point; however, I did not want someone visiting this bug to think all is well by a lack of comment by me.

Since this really wasn't "Fixed", I'm changing the status to "Obsolete".