I’ve installed Modeller-9.14 on a Mac (Mavericks). If I launch the system python2.7, I can import modeller successfully. However, I use the anaconda python distribution. I have tried creating a symbolic link from /Library/modeller-9.14/modlib/modeller to anaconda/lib/python2.7/site-packages/modeller, but I get the following import error:
>>> import modeller Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mikesivley/anaconda/lib/python2.7/site-packages/modeller/__init__.py", line 93, in <module> import _modeller ImportError: No module named _modeller
I wasn’t able to find any mention of Anaconda on Modeller’s installation or FAQ pages. Has anyone successfully installed Modeller and imported from anaconda python?
Thanks!
Mike Sivley PhD Student Department of Biomedical Informatics Vanderbilt University Medical Center
On 10/27/14, 12:59 PM, R. Michael Sivley wrote: > I wasn’t able to find any mention of Anaconda on Modeller’s installation > or FAQ pages.
That's because we only support the system version of Python on Macs, /usr/bin/python.
> Has anyone successfully installed Modeller and imported > from anaconda python?
Note that you missed a step: the Modeller Python interface consists of two parts, a pure Python part ("import modeller") and the underlying interface itself ("import _modeller") which the pure Python part pulls in automatically. On a Mac you'll find that second part in a file called /Library/modeller-9.14/lib/mac10v4 /_modeller.so, which you'll also need to symlink.
If you're lucky then Anaconda Python doesn't change the ABI from the system version and this should work. If it doesn't, you can rebuild the interface for any version of Python using the files in the src/swig/ subdirectory.
Ben Webb, Modeller Caretaker