libLAPACK version problem

Ryan Schmidt ryandesign at macports.org
Wed Jul 28 07:13:58 PDT 2010


On Jul 28, 2010, at 08:14, Matti Lyra wrote:

> I've been trying to get a PyQt python application that uses a PyQwt plot working. All is fine when I launch the scripts from the command line but after making an app bundle with PyInstaller the application crashes on launch with an error saying that libLAPACK has an incompatible version.
> 
> ImportError: dlopen(/Users/mattilyra/Library/PyInstaller/PyQtMatplotlib/MacPyQtMatplotlib.app/Contents/MacOS/PyQt4.QtCore.so, 2): Library not loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
> 
> Reason: Incompatible library version: vecLib requires version 1.0.0 or later, but libLAPACK.dylib provides version 0.0.0

I guess vecLib was compiled using the system's libLAPACK.dylib but because your filesystem is case-insensitive (as with most Macs), it's finding the liblapack.dylib installed by the MacPorts atlas port, which declares an earlier library version.


> Why are the liblapack versions 0.0.0 (did I somehow compile them wrong)

They are 0.0.0 on my system as well. Probably the developers of lapack do nothing to set the library version, and the atlas port does nothing to change this, while presumably Apple did do something to change this when they packaged lapack to be included in Mac OS X.


> and how do I fix this?

I do not know. I recall there was some discussion recently about whether it was wise to have atlas install liblapack at all. It would seem that if atlas had not installed liblapack, you would not now be having this problem. This is a matter that should probably be discussed with the maintainer of atlas, who will hopefully read and respond to this thread.




More information about the macports-users mailing list