From: R.L. Marchese-R. <rl...@ca...> - 2009-04-16 11:57:09
|
Hi, I am working with Windows XP (32 bit). Following the instructions provided at:http://openbabel.org/wiki/Install_Python_bindings, I installed OpenBabel-2.2.1 using the installer OpenBabel2.2.1-Windows_Installer.exe. Since I am using python 2.5.2, I downloaded and ran openbabel-python-1.4.py2.5.exe. The output for all commands detailed in the instructions was as per the example output, save for import pybel. This generated: "***OpenBabelError in OpenBabel::OBDefine Failed to make an instance PatternFP" No such error was generated using "import openbabel" I can't find any specific documentation for this problem, but I believe it may be due to an error in fingeprints3.cpp. The only discernable effect would appear to be that molecule.calcfp('FPX') (where X DOES NOT EQUAL FP2) returns an empty list. Is the only way to fix this to modify fingerprints3.cpp and recompile from source? Thanks in advance for any assistance. Richard Marchese |
From: Noel O'B. <bao...@gm...> - 2009-04-17 12:48:40
|
Hello RL, The problem could simply be that there's a pattern file missing in the installer. I'll look into it. Say hi to John. - Noel 2009/4/16 R.L. Marchese-Robinson <rl...@ca...> > Hi, > I am working with Windows XP (32 bit). > > Following the instructions provided > at:http://openbabel.org/wiki/Install_Python_bindings, I installed > OpenBabel-2.2.1 using the installer OpenBabel2.2.1-Windows_Installer.exe. > Since I am using python 2.5.2, I downloaded and ran > openbabel-python-1.4.py2.5.exe. > > The output for all commands detailed in the instructions was as per the > example output, save for import pybel. This generated: "***OpenBabelError > in OpenBabel::OBDefine Failed to make an instance PatternFP" > > No such error was generated using "import openbabel" > > I can't find any specific documentation for this problem, but I believe it > may be due to an error in fingeprints3.cpp. The only discernable effect > would appear to be that molecule.calcfp('FPX') (where X DOES NOT EQUAL FP2) > returns an empty list. > > Is the only way to fix this to modify fingerprints3.cpp and recompile from > source? > > Thanks in advance for any assistance. > > Richard Marchese > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > OpenBabel-scripting mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openbabel-scripting > |
From: Noel O'B. <bao...@gm...> - 2009-04-19 18:14:30
|
2009/4/16 R.L. Marchese-Robinson <rl...@ca...> > Hi, > I am working with Windows XP (32 bit). > > Following the instructions provided > at:http://openbabel.org/wiki/Install_Python_bindings, I installed > OpenBabel-2.2.1 using the installer OpenBabel2.2.1-Windows_Installer.exe. > Since I am using python 2.5.2, I downloaded and ran > openbabel-python-1.4.py2.5.exe. > > The output for all commands detailed in the instructions was as per the > example output, save for import pybel. This generated: "***OpenBabelError > in OpenBabel::OBDefine Failed to make an instance PatternFP" I just repeated the procedure on my machine, which has the same setup, and there were no problems. The first thing I did was uninstall all previous OpenBabel installations and Python modules and check that the environment variables PATH and BABEL_DATADIR contained no references to either. Do you have several versions of Python installed? If so, did you select the correct version during the installation procedure for the python module? Are your environment variables set correctly (test at the command-line as described on the installation page for the python module)? BABEL_DATADIR needs to point to the OpenBabel installation directory. Try "import pybel" while in an empty folder- you may have a filename conflict with a file in BABEL_DATADIR. - Noel |