Hi,
Our group recently had our IT staff install the nightly build IMP-SVN.v17084-el6x86_64.rpm on our linux system. The first line of our python script is simply "import IMP" and it returns ImportError: No module named IMP. The folder "IMP" is located in /usr/bin/share/IMP and contains some of the modules like "atom" but nothing simply "IMP."
We've consulted with the IT staff who installed the program and he is quite confused as to what the problem is, any help would be appreciated.
Thanks,
Joseph Eschweiler Ruotolo Group University of Michigan
On 3/28/13 8:37 AM, Joseph Eschweiler wrote: > Our group recently had our IT staff install the nightly build > IMP-SVN.v17084-el6x86_64.rpm on our linux system. The first line of our > python script is simply "import IMP" and it returns ImportError: No > module named IMP. The folder "IMP" is located in /usr/bin/share/IMP and > contains some of the modules like "atom" but nothing simply "IMP."
Python modules generally live under /usr/lib64/python*/site-packages/. That's where IMP puts them too.
> We've consulted with the IT staff who installed the program and he is > quite confused as to what the problem is, any help would be appreciated.
A minor packaging bug resulted in the Python modules being installed in the wrong place, so that Python can't find them. That was fixed in r17104. So the easiest option would be to have your IT guy update to the latest nightly build.
Ben
Hi again,
After installing the latest build, I was successful in running the first few lines of script, importing IMP, IMP.atom, IMP.container, IMP.display and IMP.statistics. The problem now lies in importing the final module IMP.example. This folder is contained in /usr/lib64/python*/site-**packages/ with the others, but running the script returns "no module named example." The files in this folder include _randomize.py, _randomize.pyc and _randomize.pyo. Do you have any thoughts on what to do next?
Joseph Eschweiler
On Thu, Mar 28, 2013 at 11:52 AM, Ben Webb ben@salilab.org wrote:
> On 3/28/13 8:37 AM, Joseph Eschweiler wrote: > >> Our group recently had our IT staff install the nightly build >> IMP-SVN.v17084-el6x86_64.rpm on our linux system. The first line of our >> python script is simply "import IMP" and it returns ImportError: No >> module named IMP. The folder "IMP" is located in /usr/bin/share/IMP and >> contains some of the modules like "atom" but nothing simply "IMP." >> > > Python modules generally live under /usr/lib64/python*/site-**packages/. > That's where IMP puts them too. > > > We've consulted with the IT staff who installed the program and he is >> quite confused as to what the problem is, any help would be appreciated. >> > > A minor packaging bug resulted in the Python modules being installed in > the wrong place, so that Python can't find them. That was fixed in r17104. > So the easiest option would be to have your IT guy update to the latest > nightly build. > > Ben > -- > ben@salilab.org http://salilab.org/~ben/ > "It is a capital mistake to theorize before one has data." > - Sir Arthur Conan Doyle > ______________________________**_________________ > IMP-users mailing list > IMP-users@salilab.org > https://salilab.org/mailman/**listinfo/imp-usershttps://salilab.org/mailman/listinfo/imp-users >
On 3/29/13 6:47 AM, Joseph Eschweiler wrote: > After installing the latest build, I was successful in running the first > few lines of script, importing IMP, IMP.atom, IMP.container, IMP.display > and IMP.statistics. The problem now lies in importing the final module > IMP.example.
The RPM doesn't include the example module, as it's really intended as an example of how to write a new module. But since some of the examples do use it, I'll make sure future builds include it.
Ben
participants (2)
-
Ben Webb
-
Joseph Eschweiler