Re: [AMBER] Bad magic number ?

From: Bill Miller III <brmilleriii.gmail.com>
Date: Sat, 12 Mar 2011 10:02:56 -0500

This is a python error that is often describing using a version of python
that is incompatible with the version of python that was used to create or
compile the .pyc files. Honestly, I haven't tested MMPBSA.py with Python
2.7. You might want to try re-compiling MMPBSA.py using Python 2.6 and using
that instead. I know MMPBSA.py is compatible with Python 2.6 and earlier
versions of Python 2. This should fix your problem.

As a side note, in the future AmberTools will compile and use its own
version of Python to help avoid issues like this with the system's Python.

-Bill

On Sat, Mar 12, 2011 at 9:41 AM, Hector A. Baldoni <hbaldoni.unsl.edu.ar>wrote:

> Hello,
>
> Trying to run mmpbsa.py I got the following error:
>
> Traceback (most recent call last):
> File "/share/apps/amber11/exe/MMPBSA.py", line 43, in <module>
> import inputparse, utils, alamdcrd # (2)
> ImportError: Bad magic number in /share/apps/amber11/bin/inputparse.pyc
>
> What should I do to fix the problems?
> My python version:
> Python 2.7 (r27:82500, Oct 6 2010, 19:51:31)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
>
> Thanks,
> Hector
>
>
>
> ---------------------------------
> Dr. Hector A. Baldoni
> Departamento de Quimica
> Universidad Nacional de San Luis
> Chacabuco 917 (D5700BWS)
> San Luis - Argentina
> hbaldoni at unsl.edu.ar
> Tel.:+54-(0)2652-423789 ext. 157
> ----------------------------------
>
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>



-- 
Bill Miller III
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-6715
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Sat Mar 12 2011 - 07:30:02 PST
Custom Search