modeller 9.11 and Ubuntu 12.04 installation
from modeller import * line in scripts fails with ImportError: No module name modeller
I have tried variations of the ln commands shown in the installation guide for Ubuntu 8 substituting 2.7 for the python version but still get the error message when trying to run the samples with command lines beginning with mod9.11 or python followed by the sample script file name.
I've looked over archived messages and have been unable to find a solution to this problem. I would appreciate anyone that has installed modeller 9.11 on ubuntu 12.04 successfully telling me what particularly I need to do to make it work. The installation of modeller itself seems to have gone ok as the modeller files seem to be installed.
Thanks!
Mike
On 9/27/12 8:11 PM, Mike WA8BXN wrote: > I have tried variations of the ln commands shown in the installation guide > for Ubuntu 8 substituting 2.7 for the python version but still get the error > message when trying to run the samples with command lines beginning with > mod9.11 or python followed by the sample script file name.
Are you running the 32-bit or 64-bit version, desktop or server?
I just tried the 64-bit desktop version of Ubuntu 12.04 and mod9.11 works fine (it gives a warning about 'import site' but this is normal, as discussed in the FAQ). What (exactly) does it do on your system? "python" didn't work for me, since the Ubuntu folks seem to have moved things around since Ubuntu 10; now there is no /usr/lib64/ directory (which is where Modeller puts its Python extensions). I fixed this pretty easily by symlinking the extensions into /usr/lib/ with
sudo ln -s /usr/lib64/python2.7/dist-packages/modeller \ /usr/lib/python2.7/dist-packages/
sudo ln -s /usr/lib64/python2.7/dist-packages/_modeller.so \ /usr/lib/python2.7/dist-packages/
If this is your experience also, and those links fix things for you, let me know and I'll update the release notes accordingly.
On the 32-bit desktop version of Ubuntu 12.04, everything works fine for me.
Ben Webb, Modeller Caretaker
Thank you very much for your prompt reply! Those two links did indeed fix there particular problem I was running into. I am using a desktop 64 bit Ubuntu 12.04 (dual boot along with Windows 7).
-------Original Message-------
From: Modeller Caretaker Date: 09/28/12 13:53:21 To: Mike WA8BXN Cc: modeller_usage@salilab.org Subject: Re: [modeller_usage] modeller 9.11 and Ubuntu 12.04 installation
On 9/27/12 8:11 PM, Mike WA8BXN wrote: > I have tried variations of the ln commands shown in the installation guide
> for Ubuntu 8 substituting 2.7 for the python version but still get the error > message when trying to run the samples with command lines beginning with > mod9.11 or python followed by the sample script file name.
Are you running the 32-bit or 64-bit version, desktop or server?
I just tried the 64-bit desktop version of Ubuntu 12.04 and mod9.11 works fine (it gives a warning about 'import site' but this is normal, as discussed in the FAQ). What (exactly) does it do on your system? "python" didn't work for me, since the Ubuntu folks seem to have moved things around since Ubuntu 10; now there is no /usr/lib64/ directory (which is where Modeller puts its Python extensions). I fixed this pretty easily by symlinking the extensions into /usr/lib/ with
sudo ln -s /usr/lib64/python2.7/dist-packages/modeller \ /usr/lib/python2.7/dist-packages/
sudo ln -s /usr/lib64/python2.7/dist-packages/_modeller.so \ /usr/lib/python2.7/dist-packages/
If this is your experience also, and those links fix things for you, let me know and I'll update the release notes accordingly.
On the 32-bit desktop version of Ubuntu 12.04, everything works fine for me.
Ben Webb, Modeller Caretaker
participants (2)
-
Mike WA8BXN
-
Modeller Caretaker