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.
Jed 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! > hongbo > > 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/pymol.php >> -> 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 >> (x86)\PyMOL\PyMOL/modules\pmg_tk\startup\CASTpyMOL_v2.pyc >> Error: unable to initialize plugin 'CASTpyMOL_v2'. >> >> Does anyone have any idea how to fix this issue? >> >> Thanks, Tomas >> >> > > -- ------------------------ Jed Goldstone, PhD Research Specialist Woods Hole Oceanographic Institution Redfield 3-52 MS#32 Woods Hole, MA 02543 http://www.whoi.edu/hpb/Site.do?id=481 Phone: 508-289-4823 ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net