Maybe this is not what you are looking for, but in think the easiest way to get pybel to work with python is to install it through the anaconda cloud.
-Tayeb Tayeb Kakeshpour Graduate Research Assistant Jackson Research Group Michigan State University Department of Chemistry 578 S. Shaw Lane, room 535 East Lansing, MI 48824 kakes...@msu.edu > On Feb 7, 2019, at 3:42 PM, Matthew Bliss <mmblis...@gmail.com> wrote: > > I installed the OpenBabelGUI v2.3.2a and OpenBabel Python Bindings v1.8 > according to the instructions here: > https://open-babel.readthedocs.io/en/latest/UseTheLibrary/PythonInstall.html#windows > > When testing the installation, I was able to make it to the "import pybel" > command before my output deviated from those in the instructions. After > making the "import pybel" command, I received the following error message: > >> C:\Users\Matt>python >> Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 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:\Users\Matt\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pybel.py", >> line 52, in <module> >> import openbabel as ob >> File >> "C:\Users\Matt\AppData\Local\Programs\Python\Python37-32\lib\site-packages\openbabel.py", >> line 37, in <module> >> _openbabel = swig_import_helper() >> File >> "C:\Users\Matt\AppData\Local\Programs\Python\Python37-32\lib\site-packages\openbabel.py", >> line 33, in swig_import_helper >> _mod = imp.load_module('_openbabel', fp, pathname, description) >> File "C:\Users\Matt\AppData\Local\Programs\Python\Python37-32\lib\imp.py", >> line 243, in load_module >> return load_dynamic(name, filename, file) >> File "C:\Users\Matt\AppData\Local\Programs\Python\Python37-32\lib\imp.py", >> line 343, in load_dynamic >> return _load(spec) >> ImportError: DLL load failed: The specified module could not be found. > > I looked in the archives for this list and the threads with similar error > messages were not useful. I have python 3.7.0, should I be using python 3.3 > instead? > _______________________________________________ > OpenBabel-discuss mailing list > OpenBabel-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
_______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss