From: richard a. <ric...@ya...> - 2006-11-04 19:49:05
|
Has anyone gotten the Python Open Babel interface to work on amd64 Linux? I'm using rev 1578 of the svn trunk When I try to import openbabel, I get the following error >>> import openbabel Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib64/python2.4/site-packages/openbabel.py", line 3, in ? import dl ImportError: No module named dl I noticed a similar problem reported here, but no solution: http://sourceforge.net/mailarchive/message.php?msg_id=37015184 I had no problems either compiling or installing pyopenbabel - just loading it in python. My system does lack the python dl module, which as far as I can tell is supposed to be standard. In googling around, I found several references to the python dl module being unstable on amd64 - and therefore not available. So - has anyone found a workaround to this problem? I tried one: comment out the code responsible for loading dl in the first place (openbabel.py): if sys.platform.find("linux") != -1: import dl sys.setdlopenflags(sys.getdlopenflags() | dl.RTLD_GLOBAL) I can in fact import openbabel after doing this. The problem is that when using OBConversion, none of the formats are loaded: >>> import openbabel >>> c=openbabel.OBConversion() ============================== *** Open Babel Error in LoadFormatFiles /usr/local/lib/openbabel/cmlreactlformat.so did not load properly ============================== ... and dozens more load errors after this one ... thanks, Rich ____________________________ Richard Apodaca Blog: http://depth-first.com ____________________________________________________________________________________ Everyone is raving about the all-new Yahoo! Mail (http://advision.webevents.yahoo.com/mailbeta/) |