Hello, I am tryint to install the python bindings to use pybel but I keep gettin error messages.
I reinstalled openbabel in the 2.3.1 version and I am using python 3.7 version. I tried installing in these both ways: https://openbabel.org/docs/current/UseTheLibrary/PythonInstall.html and https://open-babel.readthedocs.io/en/latest/UseTheLibrary/PythonInstall.html But I keep having problems. This is the message it shows when I try to install it following the steps in https://openbabel.org/docs/current/UseTheLibrary/PythonInstall.html C:\Users\Rita>python -V Python 3.7.3 C:\Users\Rita>obabel -V Open Babel 2.3.1 -- Oct 9 2011 -- 17:57:01 C:\Users\Rita>obabel -Hsdf sdf MDL MOL format Reads and writes V2000 and V3000 versions Read Options, e.g. -as s determine chirality from atom parity flags The default setting is to ignore atom parity and work out the chirality based on the bond stereochemistry. T read title only P read title and properties only When filtering an sdf file on title or properties only, avoid lengthy chemical interpretation by using the ``T`` or ``P`` option together with the :ref:`copy format <Copy_raw_text>`. Write Options, e.g. -x3 3 output V3000 not V2000 (used for >999 atoms/bonds) m write no properties w use wedge and hash bonds from input (2D structures only) A output in Alias form, e.g. Ph, if present Specification at: http://www.mdl.com/downloads/public/ctfile/ctfile.jsp C:\Users\Rita>dir "%BABEL_DATADIR%"\mr.txt El volumen de la unidad C no tiene etiqueta. El número de serie del volumen es: 9606-F203 Directorio de C:\ProgramData\OpenBabel-2.3.1\data 09/10/2011 17:47 4.295 mr.txt 1 archivos 4.295 bytes 0 dirs 863.775.387.648 bytes libres C:\Users\Rita>python Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pybel Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\Rita\AppData\Local\Programs\Python\Python37\lib\site-packages\pybel.py", line 16, in <module> import openbabel as ob File "C:\Users\Rita\AppData\Local\Programs\Python\Python37\lib\site-packages\openbabel.py", line 30, in <module> _openbabel = swig_import_helper() File "C:\Users\Rita\AppData\Local\Programs\Python\Python37\lib\site-packages\openbabel.py", line 26, in swig_import_helper _mod = imp.load_module('_openbabel', fp, pathname, description) File "C:\Users\Rita\AppData\Local\Programs\Python\Python37\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\Users\Rita\AppData\Local\Programs\Python\Python37\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: %1 no es una aplicación Win32 válida. >>> Could I have any help on this? Thank you -- Rita Ortega Vallbona
_______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss