From: Warren D. <wa...@de...> - 2005-10-20 14:33:39
|
Konrad, Heads up: there are fundamental threading flaws inherent in Aqua/Tcl/Tk that currently preclude use of PyMOL with them. Basically, MacOS X can't feed events to multiple threads -- just a single thread. So, your either get interaction with the GLUT GUI, or the Tcl/Tk user interface, but not both : (. The only solution I can think of is embedding PyMOL into a Tcl/Tk widget...not something that is possible yet. By the way, you should be able to build current PyMOL CVS source code directly agaist MacOS frameworks without MacPython. But, like I mentioned above, the end-result isn't optimal -- you get either OpenGL or Tcl/Tk, but not both. =20 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 > kh...@ce... > Sent: Thursday, October 20, 2005 5:02 AM > To: pymol-users > Subject: [PyMOL] PyMol with MacOS 10.4 >=20 > Are there other people out there who compile their own PyMol=20 > on the Mac and who have succeeded with MacOS 10.4 (Tiger)? >=20 > After updating my Mac to Tiger, my PyMol installation doesn't work > anymore: >=20 > ~> pymol > Traceback (most recent call last): > File "/usr/local/lib/pymol/modules/pymol/__init__.py",=20 > line 90, in ? > import pymol > File "/usr/local/lib/pymol/modules/pymol/__init__.py",=20 > line 306, in ? > import _cmd > ImportError: Failure linking new module: /usr/local/lib/pymol/modules/ > pymol/_cmd.so: Symbol not found: _gluCylinder > Referenced from: /sw/lib/libglut.3.dylib > Expected in: /usr/X11R6/lib/libGL.1.dylib >=20 >=20 > I guess that something has changed in Apple's OpenGL libraries. My =20 > first reaction was to reinstall PyMol from sources in the=20 > same way as =20 > before (i.e. using the Distutils installation method and Fink's =20 > installation of Python 2.3). This fails pretty quickly due to some =20 > problem with the GLUT headers: >=20 > In file included from layer0/os_gl.h:95, > from layer2/RepNonbondedSphere.c:19: > /sw/include/GL/glut.h:432: error: parse error before "layer" > /sw/include/GL/glut.h:432: warning: function declaration isn't a =20 > prototype > /sw/include/GL/glut.h:490: error: parse error before "GLfloat" > /sw/include/GL/glut.h:490: warning: function declaration isn't a =20 > prototype > ... >=20 > This is perhaps not so surprising, because I didn't update=20 > Fink after =20 > updating to 10.4 - because that didn't work either. In fact, I am =20 > sufficiently fed up with the fragility of Fink that I would like to =20 > get rid of it entirely. >=20 > So I thought I should try to use MacPython 2.4.1 (my everyday Python =20 > on the Mac) and Apple's OpenGL and GLUT frameworks. That required a =20 > few patches to the PyMol sources (the includes need to be changed =20 > from GL/... to OpenGL/...) and a bit of tweaking setup.py plus some =20 > manual intervention (Distutils doesn't handle -framework=20 > parameters), =20 > but I got an error-free compile pretty quickly. I can then=20 > even start =20 > PyMol, but it messes up my screen to the point that I need to go to =20 > sleep mode and then restart to get the Finder redrawn. And I am not =20 > even sure that my approach is reasonable, given that with=20 > MacPython I =20 > also use Aqua-Tk, and thus no X11 at all. Window handling=20 > ought to be =20 > different then. >=20 > Does anyone have more ideas for getting this to work? I don't care =20 > which Python and which Tk I use, as long as I can add my own Python =20 > modules and get PyMol with NumPy support. >=20 > Konrad. >=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 |