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 > -- Hongbo ZHU Postdoctoral Researcher Structural Bioinformatics Technische Universität Dresden Biotechnology Center Tatzberg 47/49 01307 Dresden, Germany Tel: +49 (0) 351 463-40083 Fax: +49 (0) 351 463-40087 E-Mail: hongbo.zhu at biotec Webpage: www.biotec.tu-dresden.de ------------------------------------------------------------------------------ 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