From: S J. S. <swa...@gm...> - 2005-12-16 17:29:00
|
As a quick fix, just move them manually. Next ry and move them to the front of the openbabel.i file. That should put it at the first part of the openbabel.py file. If none of that works, send a line to the listserve and i"ll poke around some swig faqs to find the answer. Josh On 16/12/05, Noel O'Boyle <no...@ca...> wrote: > I cannot get this patch to work, as the inserted lines always come after > the initial "import _openbabel" in openbabel.py. Any thoughts? > > Regards, > Noel > > On Fri, 2005-12-09 at 11:52 -0800, S Joshua Swamidass wrote: > > It works! > > > > Add this code to the openbabel.i file to add the patch to the .py libra= ry file: > > > > %pythoncode %{ > > import sys > > import dl > > sys.setdlopenflags(sys.getdlopenflags() | dl.RTLD_GLOBAL) > > %} > > > > You may want to add a python snippet to execute this code only if the > > architecture is Linux. > > > > Thanks for the help :) > > > > Josh > > > > On 09/12/05, Geoffrey Hutchison <ge...@ge...> wrote: > > > > > > On Dec 9, 2005, at 12:17 PM, Noel O'Boyle wrote: > > > > > > > (1) Is Python scripting for Openbabel available in Windows somehow? > > > > > > I don't have a Windows box to test. I'm also not sure how it would > > > link against the Windows OpenBabel DLLs. > > > > > > > (2) Is it necessary to compile? > > > > > > Well, I believe you can get DLLs either from the Open Babel windows > > > download or from Chris Morley. Certainly you *can* compile on Windows= . > > > > > > > (3) What's the current status of Cygwin/OpenBabel compilation? > > > > > > So-so. I know the problem, but haven't had the time to fix it or test > > > it. > > > > > > Cheers, > > > -Geoff > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through lo= g files > > > for problems? Stop! Download the new AJAX search engine that makes > > > searching your log files as easy as surfing the web. DOWNLOAD SPLUN= K! > > > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > > > _______________________________________________ > > > OpenBabel-scripting mailing list > > > Ope...@li... > > > https://lists.sourceforge.net/lists/listinfo/openbabel-scripting > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > OpenBabel-scripting mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openbabel-scripting > |