From: Warren D. <wa...@de...> - 2005-10-10 22:12:35
|
Dmitriy, Due to problem with multithreading (especially with the Tcl/Tk external GUI), we haven't been able to get the "import pymol" approach to work in a stable robust manner across different OSes and environments. =20 So sight now, as per comments in "modules/pymol/__init__.py", the only supported way to launch PyMOL is to run the __init__.py script on startup. %python modules/pymol/__init__.py Hoever, if you disable the external GUI, then you might be able to get "import pymol" to work... pymol_argv =3D ['pymol', '-qx'] import pymol pymol.finish_launching() from pymol import cmd cmd.load(...etc. Cheers, Warren -- Warren L. DeLano, Ph.D. =20 Principal Scientist . DeLano Scientific LLC =20 . 400 Oyster Point Blvd., Suite 213 =20 . South San Francisco, CA 94080 USA =20 . Biz:(650)-872-0942 Tech:(650)-872-0834 =20 . Fax:(650)-872-0273 Cell:(650)-346-1154 . mailto:wa...@de... =20 =20 > -----Original Message----- > From: pym...@li...=20 > [mailto:pym...@li...] On Behalf Of=20 > Dmitriy Igor Bryndin > Sent: Monday, October 10, 2005 2:33 PM > To: pym...@li... > Subject: [PyMOL] PyMol segmentation fault while starting from=20 > external python program >=20 > Launching PyMol form external python script will produce=20 > segmaentation fault. > For example starting "launch.py" from "/pymol/examples/launching" > ---------------------------------------------- > $ python launch.py > zsh: segmentation fault python launch.py > ---------------------------------------------- > Crashes without even showing PyMol windows.=20 >=20 > Tried it on Fedora Core 1, Fedora Core 4, Mandriva 2005. The=20 > same story. > Different pythons and compiling different versions of PyMol=20 > does not change anything.=20 >=20 > It will launch PyMol windows if there is only > import pymol > line.=20 >=20 > Adding > pymol.finish_launching() > or > from pymol import cmd > cmd.load("$PYMOL_PATH/test/dat/pept.pdb") > will produce segmentation fault. With no windows shown.=20 >=20 > The same time if I'll try to debug step by step, let's say,=20 > "launch_demo.py"=20 > (from "/pymol/examples/launching") > ------------------------------- > pymol.finish_launching() > from pymol import cmd > cmd.load("$PYMOL_PATH/test/dat/pept.pdb") > cmd.show("sticks") > ------------------------------- > using IDLE. Everything will work. It starts windows, loads a=20 > file, changes to sticks... > Running it "python launch_demo.py" will wait for a second and=20 > return segmentation fault.=20 >=20 > If someone knows what's going on, please help me.=20 >=20 > Thanks > Dmitriy Bryndin=20 >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads,=20 > discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > PyMOL-users mailing list > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymol-users >=20 >=20 >=20 >=20 |