Subject: Re: [modeller_usage] Problem with running Flex-em
From: Modeller Caretaker <>
Date: Fri, 13 Jun 2008 23:37:19 -0700
Hua Li wrote:
Hi, I am very new to the program Modeller. I got a problem as I tried to
run the program Modeller 9v4 on Linux. Is there anybody that can
enlighten me on how to solve this problem? Any advice gratefully received.
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "flex-em.py", line 10, in ?
ImportError: No module named shutil
I'm guessing that you're trying to run this Python script using the
'mod9v4' script. Don't do that - use regular 'python' instead - i.e.
rather than 'mod9v4 flex-em.py' use 'python flex-em.py'. This should
work if you installed Modeller using the RPM (should also work on the
Mac or Windows). For other systems, the Modeller installer should have
installed a script called modpy.sh in the same directory as mod9v4. Add
that to your python command above, e.g.
'/my/modeller/directory/bin/modpy.sh python flex-em.py'
In fact the module "shutil" is available at python library and I have
added "setenv PYTHONHOME /usr/lib64/python2.4" to my .cshrc file.
I strongly recommend that you don't set PYTHONHOME. It may confuse other
applications, and is not an appropriate fix for this problem.