Re: [modeller_usage] Problem importing modeller and _modeller modules
To: Gustavo Machado Alvares de Lima <>
Subject: Re: [modeller_usage] Problem importing modeller and _modeller modules
From: Modeller Caretaker <>
Date: Fri, 18 Oct 2013 09:43:01 -0700
Cc:
On 10/18/13 7:08 AM, Gustavo Machado Alvares de Lima wrote:
Hi, I'm trying to import modeller modules to python in order to create
custom scripts for my needs. When I used the 32bit version of ubuntu (or
debian), it works perfectly. When I try to run the same script in a
64bit OS, python cant find modeller.
Did you install the .deb package? That should have made suitable
symlinks so that everything works without any need for setting random
environment variables (obviously you need to install the 32-bit .deb on
a 32-bit system, and the 64-bit .deb on a 64-bit system). The .deb files
are produced on an Ubuntu 9.10 system, but the Ubuntu folks do have a
tendency to move the Python paths around between releases.
in the /usr/lib/modeller9.12/modlib/modeller/__init__.py it tries to import
_modeller module, and that one I cant find/add.
If you want to go down this route, you'll have to add the directory that
contains _modeller.so to your Python path as well. Setting
LD_LIBRARY_PATH won't help here, because Python doesn't look in that path.
I'm using ubuntu 13.04 64bit, but I have this same problem in some other
distros, like Mint linux (even 32bit on this one).