slidedeck.py gives image-not-found or no-module-named-flask error
Benjamin Gilbert
bgilbert at cs.cmu.edu
Tue Mar 26 23:37:22 EDT 2013
Hi Andrew,
On 03/26/2013 11:16 PM, Andrew Packer wrote:
> OSError: dlopen(libopenslide.0.dylib, 6): Library not loaded:
> /opt/local/lib/libpng14.14.dylib
> Referenced from: /usr/local/lib/libopenslide.0.dylib
> Reason: image not found
It looks as though you previously installed OpenSlide from source and
haven't removed it. The old version is being loaded and is failing to
find an old version of libpng that used to be shipped by MacPorts.
Remove the hand-installed OpenSlide with "sudo rm -f
/usr/local/bin/openslide* /usr/local/lib/*openslide*
/usr/local/share/man/man1/*openslide*" and try again.
> On the other hand when I try using the MacPorts Python Launcher to
> launch slidedeck.py, I get the following.
>
> ImportError: No module named flask
Your system has two installations of Python: the one that comes with Mac
OS X and the one installed by MacPorts. Flask is installed under
/opt/local, which is the MacPorts copy, so that's the Python you want.
Apparently the Python Launcher is giving you the other one.
--Benjamin Gilbert
More information about the openslide-users
mailing list