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

Re: [modeller_usage] Problem with running Flex-em

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.

Error message:

'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "flex-em.py", line 10, in ?
    import shutil
ImportError: No module named shutil

See #2 at http://salilab.org/modeller/release.html#issues

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.

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