Opened 15 years ago

Closed 15 years ago

#21169 closed defect (duplicate)

py26-mapnik install fails on Snow Leopard (OS X 10.6)

Reported by: brian.gyss@… Owned by: dbsgeo@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc:
Port: py26-mapnik

Description

py26-mapnik fails when I attempt to build it under Snow Leopard (OS X 10.6) with the following errors:

briangyss@cheese: ttys000: 3 files 0b -> sudo port install py26-mapnik +postgis +gdal +cairo
--->  Computing dependencies for py26-mapnik
--->  Fetching py26-mapnik
--->  Attempting to fetch mapnik-0.6.0.tar.bz2 from http://distfiles.macports.org/py26-mapnik
--->  Verifying checksum(s) for py26-mapnik
--->  Extracting py26-mapnik
--->  Applying patches to py26-mapnik
--->  Configuring py26-mapnik
--->  Building py26-mapnik
--->  Staging py26-mapnik into destroot
Warning: violation by /opt/local/lib64
Warning: py26-mapnik violates the layout of the ports-filesystems!
Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases!
--->  Installing py26-mapnik @0.6.0_1+cairo+gdal+postgis
--->  Activating py26-mapnik @0.6.0_1+cairo+gdal+postgis
--->  Cleaning py26-mapnik

briangyss@cheese: ttys000: 3 files 0b -> python
Python 2.6.2 (r262:71600, Sep  6 2009, 18:26:00) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mapnik
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort trap

Attachments (1)

py26-mapnik.log (290.2 KB) - added by brian.gyss@… 15 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 15 years ago by blb@…

Owner: changed from macports-tickets@… to dbsgeo@…

Possibly building against the system python's library by mistake?

Changed 15 years ago by brian.gyss@…

Attachment: py26-mapnik.log added

comment:2 in reply to:  1 Changed 15 years ago by brian.gyss@…

Replying to blb@…:

Possibly building against the system python's library by mistake?

Doesn't really look like it - I've attached a copy of the debug log and it looks like it's building against the framework macports library:

Bindings Python version... 2.6 Python 2.6 prefix... /opt/local/Library/Frameworks/Python.framework/Versions/2.6

comment:3 Changed 15 years ago by dbsgeo@…

I would guess that you have a broken install of the boost_python library that is linked to something other than the /opt/local py26.

What does this give?

otool -L /opt/local/lib/libboost_python*

comment:4 Changed 15 years ago by dbsgeo@…

I assume that the above command will show that boost is linked to the WRONG version of python, the SYSTEM python26.

If this is the case you can try running:

install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.6/Python /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python /opt/local/lib/libboost_python-mt.dylib

I have just build py26-mapnik using a clean build of macports and do not see this error. I assume therefore that this is a boost port problem not a py26-mapnik problem.

comment:5 Changed 15 years ago by dbsgeo@…

Note, this should likely be marked as a duplicate of #21444

comment:6 Changed 15 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.