Hi,
Le 05/09/2012 08:06, stevenc a écrit :
>
> Hello all,
>
> my main incentive to start learning python was to use the
> cheminformatics software openbabel.py and pybel.py (which uses
> openbabel.py). I tried to import it under python 2.7, in windows, but
> got the following error message:
>
>
>>>> import pybel
> Traceback (most recent call last):
> File "<pyshell#0>", line 1, in <module>
> import pybel
> File "C:\Python27\lib\site-packages\pybel.py", line 16, in <module>
> import openbabel as ob
> File "C:\Python27\lib\site-packages\openbabel.py", line 28, in <module>
> _openbabel = swig_import_helper()
> File "C:\Python27\lib\site-packages\openbabel.py", line 24, in
> swig_import_helper
> _mod = imp.load_module('_openbabel', fp, pathname, description)
> ImportError: DLL load failed: The specified module could not be found.
>
>
>
is Swig properly installed ? How did you install pybel (easy_install or
pre built exe binaries) ?
Thomas
> I am not sure what to make from this error message. The modules pybel
> and openbabel are present in Python27\lib\site-packages\.
>
> Greetings,
> Steven
--
Dr. Thomas Lecocq
Geologist
Seismology - Gravimetry
Royal Observatory of Belgium
*
* * * * *
* * * *
---------
http://www.seismology.be
http://twitter.com/#!/Seismologie_be