Skip to content

Error when import figtree module in Python [Mac OS X Yosemite] #2

@DSamuylov

Description

@DSamuylov

Hello,

I had been using your library mostly through Python wrapper without any problem on Ubuntu 12.04 and Ubuntu 14.10. Now I migrated to Mac (OS X Yosemite). I am doing exactly the same steps I did with Ubuntu, but there is an error when I import figtree module:

Python 2.7.9 |Anaconda 2.2.0 (x86_64)| (default, Dec 15 2014, 10:37:34) 
>>> import figtree
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/denis/Documents/code/figtree/python/figtree.so, 2): Library not loaded: ../lib/libfigtree.so
  Referenced from: /Users/denis/Documents/code/figtree/python/figtree.so
  Reason: image not found

The most weird thing for me is that it seems libfigtree.so exists at that location:

denis@DeSaMac:lib$ pwd
/Users/denis/Documents/code/figtree/lib
denis@DeSaMac:lib$ ls
libann_figtree_version.so   libfigtree.so 

I asked my colleague to install figtree on his laptop (also Mac, OS X Yosemite) without telling him how I did it, and he got the same error. So I might guess there is a problem with installation on OS X or Mac in general. Do you have an idea what can be a reason? I tried to check Makefiles, but I don't have enough experience to spot if there is a problem there...

All the best,
Denis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions