Hello, So to preface this, I am fairly new to how all this works so more comprehensive answers would be helpful. I am trying to run a specific script for research which requires openbabel to run, however whenever I attempt to import pybel there are errors that occur and I do not know how to address them.
Below I have copied the command prompt window from the start of the testing detailed on https://open-babel.readthedocs.io/en/latest/UseTheLibrary/PythonInstall.html#windows. I am using python 2.7.6 and have the most up to date version of Openbabel. Any help would be greatly appreciated. Thank you! Microsoft Windows [Version 10.0.17134.950] (c) 2018 Microsoft Corporation. All rights reserved. C:\Users\Latos>obabel -V Open Babel 2.4.1 -- Oct 10 2016 -- 21:27:47 C:\Users\Latos>obabel -Hsdf sdf MDL MOL format Reads and writes V2000 and V3000 versions Open Babel supports an extension to the MOL file standard that allows cis/trans and tetrahedral stereochemistry to be stored in 0D MOL files. The tetrahedral stereochemistry is stored as the atom parity, while the cis/trans stereochemistry is stored using Up and Down bonds similar to how it is represented in a SMILES string. Use the ``S`` option when reading or writing if you want to avoid storing or interpreting stereochemistry in 0D MOL files. Read Options, e.g. -as s determine chirality from atom parity flags The default setting for 2D and 3D is to ignore atom parity and work out the chirality based on the bond stereochemistry (2D) or coordinates (3D). For 0D the default is already to determine the chirality from the atom parity. S do not read stereochemistry from 0D MOL files Open Babel supports reading and writing cis/trans and tetrahedral stereochemistry to 0D MOL files. This is an extension to the standard which you can turn off using this option. 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) a write atomclass if available m write no properties w use wedge and hash bonds from input (2D only) S do not store cis/trans stereochemistry in 0D MOL files A output in Alias form, e.g. Ph, if present E add an ASCII depiction of the molecule as a property H use HYD extension (always on if mol contains zero-order bonds) Specification at: http://www.mdl.com/downloads/public/ctfile/ctfile.jsp C:\Users\Latos>C:\Python27python.exe 'C:\Python27python.exe' is not recognized as an internal or external command, operable program or batch file. C:\Users\Latos> C:/Python27/python Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] 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:\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_helper _mod = imp.load_module('_openbabel', fp, pathname, description) ImportError: DLL load failed: The specified procedure could not be found. >>> >>>
_______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss