I had the same problem.
Email Joe Dundas <jdunda1 at gmail > for the .py source code .py file,
and drop it into the modules/pmg_tk/startup folder.
Hongbo Zhu wrote:
> Hi, Tomas,
> Usually, the "Bad magic number" is caused by wrong python version when
> running .pyc file (the .pyc must have been compiled using a different
> version of python than the one in PyMOL 1.3, which is python 2.5.4).
> Maybe you have also noticed on the first line of the CASTpyMOL webpage :
> "To use CASTpyMOL version 2, you must be using PyMOL version 0.99 "
> pymol 0.99 and pymol 1.3 uses different versions of python.
> Maybe you should contact the CASTpyMOL people to get a .py file so you
> can try them with your pymol 1.3, or ask them to compile a .pyc using
> python 2.5.4 for you. Or install pymol 0.99 in parallel to you pymol 1.3.
> good luck!
> On 03/22/2011 11:03 AM, Tomáš Kučera wrote:
>> Hello pymol users,
>> I try to install this castp plugin:
>> -> http://sts.bioengr.uic.edu/castp/infoPages/CASTpyMOL_v2.pyc
>> I have pymol 1.3 (windows7 64bit)
>> and I got:
>> ImportError: Bad magic number in C:\Program Files
>> Error: unable to initialize plugin 'CASTpyMOL_v2'.
>> Does anyone have any idea how to fix this issue?
>> Thanks, Tomas
Jed Goldstone, PhD
Woods Hole Oceanographic Institution
Redfield 3-52 MS#32
Woods Hole, MA 02543