From: Ben E. <be...@cr...> - 2008-12-17 18:09:12
|
Is it possible to add additional python modules to a MacPyMOL installation? I am trying to install the PyNMR plugin: http://maple.rsvs.ulaval.ca/mediawiki/index.php/PyNMR And it requires the Numeric python module. I have an external python installation built with the module, but it seems that MacPyMOL uses a bundled python interpreter. I tried setting the PYTHONPATH to the modules directory of my python build, but I get errors like this: /programs/i386-mac/python/2.5.2/lib/python2.5/site-packages/Numeric/Numeric.py:91: RuntimeWarning: Python C API version mismatch for module multiarray: This Python has API version 1012, module multiarray has version 1013. I poked around in the PyMOLX11Hybrid.app directories, but didn't see an obvious place I could add a module installation. Thanks. -ben -- Ben Eisenbraun Structural Biology Grid Harvard Medical School http://sbgrid.org http://hms.harvard.edu |
From: DeLano S. <de...@de...> - 2008-12-19 03:21:34
|
Hi Ben, Current versions of MacPyMOL make use of the 2.3 version of the operating-system-provided Python interpreter. Future versions may behave differently. Officially speaking, if you need to integrate external native-code-containing Python modules, then DeLano Scientific's sole recommended approach is to compile the Open-Source PyMOL source code for X11 instead of using MacPyMOL/PyMOLX11Hybrid. Unfortunately, the Python C ABI is just too fragile for anything else to be practical... Cheers, Warren -- DeLano Scientific LLC Subscriber Support Services mailto:su...@de... > -----Original Message----- > From: Ben Eisenbraun [mailto:be...@cr...] > Sent: Wednesday, December 17, 2008 9:53 AM > To: pym...@li... > Subject: [PyMOL] adding python modules for MacPyMOL > > > Is it possible to add additional python modules to a MacPyMOL > installation? > > I am trying to install the PyNMR plugin: > > http://maple.rsvs.ulaval.ca/mediawiki/index.php/PyNMR > > And it requires the Numeric python module. I have an > external python installation built with the module, but it > seems that MacPyMOL uses a bundled python interpreter. > > I tried setting the PYTHONPATH to the modules directory of my > python build, but I get errors like this: > > /programs/i386-mac/python/2.5.2/lib/python2.5/site-packages/Nu meric/Numeric.py:91: RuntimeWarning: Python C API version > mismatch for module multiarray: This Python has API version > 1012, module multiarray has version 1013. > > I poked around in the PyMOLX11Hybrid.app directories, but > didn't see an obvious place I could add a module installation. > > Thanks. > > -ben > > -- > Ben Eisenbraun > Structural Biology Grid Harvard > Medical School > http://sbgrid.org > http://hms.harvard.edu > > -------------------------------------------------------------- > ---------------- > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las > Vegas, Nevada. > The future of the web can't happen without you. Join us at > MIX09 to help pave the way to the Next Web now. Learn more > and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009 .visitmix.com/ > _______________________________________________ > PyMOL-users mailing list > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymol-users |