[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [modeller_usage] ImportError: No module named automodel...



matteo wrote:
i've just installed modeller9v1 from the source code on a x386 pc...
everything went fine, but as i run mod9v1 xxx.py, i get this message:

Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/home/teo/_work/_m-i7/modeller.py", line 3, in ?
    from modeller.automodel import *    # Load the automodel class
ImportError: No module named automodel

Don't call your input file "modeller.py", When you say "import modeller" or "from modeller import *" Python will actually try to import _your_ modeller.py script rather than the real Modeller library, since it looks in the current directory first. Renaming your script should make the problem go away.

	Ben Webb, Modeller Caretaker
--
             http://www.salilab.org/modeller/
Modeller mail list: http://salilab.org/mailman/listinfo/modeller_usage