Discussion:
[Open Babel] Installation of OpenBabel python bindings
Markus Birkenmeier
2013-08-15 11:37:06 UTC
Permalink
Hi all,

I have a question concerning the installation of OpenBabel
python bindings on my system (Windows 7 64 bit, Python
2.7.5 64 bit). I installed OpenBabel v2.3.2 and tried to
use the installer of python bindings for my version 2.7
(http://open-babel.readthedocs.org/en/latest/UseTheLibrary/PythonInstall.html).
The installer didn’t find a python installation in the
registry and the only thing I could do is to abort the
setup. However, I also installed a numpy package. The
installer of this package recognized my python
installation. Is there a problem with the 64 bit version
of python? What can I do to solve the problem?

Best regards,
Markus
Markus Birkenmeier
2013-08-19 13:41:36 UTC
Permalink
Hi all,

I installed Python bindings on the basis of
http://open-babel.readthedocs.org/en/latest/UseTheLibrary/PythonInstall.html.
I tried to test the installation with the described
commands. Here is the output:

C:\Users\Markus>obabel -V
The command “obabel” is either typed wrong or cannot be
found

C:\Users\Markus>"C:\Program Files
(x86)\OpenBabel-2.3.2\obabel" -V
Open Babel 2.3.2 -- Oct 5 2012 -- 10:00:48
------------------------------------------------------------------------------------

C:\Users\Markus>obabel -Hsdf
The command “obabel” is either typed wrong or cannot be
found

C:\Users\Markus>"C:\Program Files
(x86)\OpenBabel-2.3.2\obabel" -Hsdf
sdf MDL MOL format
Reads and writes V2000 and V3000 versions
…
------------------------------------------------------------------------------------

C:\Users\Markus>dir "%BABEL_DATADIR%"\mr.txt
The system cannot find the denoted path
------------------------------------------------------------------------------------

C:\Users\Markus>C:\Python27\python
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500
32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more
information.
import pybel
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\pybel.py", line 52,
in <module>
import openbabel as ob
File "C:\Python27\lib\site-packages\openbabel.py", line
37, in <module>
_openbabel = swig_import_helper()
File "C:\Python27\lib\site-packages\openbabel.py", line
33, in swig_import_hel
per
_mod = imp.load_module('_openbabel', fp, pathname,
description)
ImportError: DLL load failed: The denoted module cannot be
found.
What can I do to get it work?

Best regards,
Markus
Noel O'Boyle
2013-08-20 17:24:35 UTC
Permalink
That's strange. Try reinstalling the GUI and restarting your computer.

If it still doesn't work, you should add the Open Babel install
directory to the front of the PATH manually. Google how to do this for
your particular operating system (and be careful when editing the
PATH).

- Noel

On 19 August 2013 14:41, Markus Birkenmeier
Post by Markus Birkenmeier
Hi all,
I installed Python bindings on the basis of
http://open-babel.readthedocs.org/en/latest/UseTheLibrary/PythonInstall.html.
I tried to test the installation with the described
C:\Users\Markus>obabel -V
The command “obabel” is either typed wrong or cannot be
found
C:\Users\Markus>"C:\Program Files
(x86)\OpenBabel-2.3.2\obabel" -V
Open Babel 2.3.2 -- Oct 5 2012 -- 10:00:48
------------------------------------------------------------------------------------
C:\Users\Markus>obabel -Hsdf
The command “obabel” is either typed wrong or cannot be
found
C:\Users\Markus>"C:\Program Files
(x86)\OpenBabel-2.3.2\obabel" -Hsdf
sdf MDL MOL format
Reads and writes V2000 and V3000 versions

------------------------------------------------------------------------------------
C:\Users\Markus>dir "%BABEL_DATADIR%"\mr.txt
The system cannot find the denoted path
------------------------------------------------------------------------------------
C:\Users\Markus>C:\Python27\python
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500
32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more
information.
import pybel
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\pybel.py", line 52,
in <module>
import openbabel as ob
File "C:\Python27\lib\site-packages\openbabel.py", line
37, in <module>
_openbabel = swig_import_helper()
File "C:\Python27\lib\site-packages\openbabel.py", line
33, in swig_import_hel
per
_mod = imp.load_module('_openbabel', fp, pathname,
description)
ImportError: DLL load failed: The denoted module cannot be
found.
What can I do to get it work?
Best regards,
Markus
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
OpenBabel-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
Noel O'Boyle
2013-08-20 17:28:00 UTC
Permalink
OB is 32-bit, and so you need to install 32-bit Python. (Note to self:
put this in the docs)

- Noel

On 15 August 2013 12:37, Markus Birkenmeier
Post by Markus Birkenmeier
Hi all,
I have a question concerning the installation of OpenBabel
python bindings on my system (Windows 7 64 bit, Python
2.7.5 64 bit). I installed OpenBabel v2.3.2 and tried to
use the installer of python bindings for my version 2.7
(http://open-babel.readthedocs.org/en/latest/UseTheLibrary/PythonInstall.html).
The installer didn’t find a python installation in the
registry and the only thing I could do is to abort the
setup. However, I also installed a numpy package. The
installer of this package recognized my python
installation. Is there a problem with the 64 bit version
of python? What can I do to solve the problem?
Best regards,
Markus
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
OpenBabel-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
Loading...