Hi Noel, I'm receiving the same error. "ImportError: DLL load failed: %1 is not a valid Win32 application."
I have windows 64 bit running and Python 64-bit. I've downloaded the latest bindings and babel software. I get the error when trying to import pybel. Is there a compatibility issue? Thanks, Nathan Noel O'Boyle wrote > My bad. The appropriate Python bindings are version 1.8 downloadable > from > http://sourceforge.net/projects/openbabel/files/openbabel-python/1.8/. > I'll update those docs. > > On 13 December 2012 09:08, bshipman < > bshipman@ > > wrote: >> So the only obvious difference I am seeing between my posting and >> RichardMR's >> posting is Python2.6 vs 2.7. >> >> I did a complete uninstall / reinstall via Setting -> Add Remove programs >> for both the OpenBabelGui 2.3.2 and the python bindings. >> >> The first time I re-installed it didn't generate the BABEL_DATADIR >> variable >> at all so I uninstalled/installed again. This time I elected for the >> Remove >> VS2010 redistribution option instead of the repair. I got the >> BABEL_DATADIR >> variable but I still get the missing DLL business. >> >> http://open-babel.readthedocs.org/en/latest/UseTheLibrary/PythonInstall.html >> >> python -vv >> >>>>> import openbabel >> # trying c:\Python26\lib\encodings\cp437.pyd >> # trying c:\Python26\lib\encodings\cp437.py >> # c:\Python26\lib\encodings\cp437.pyc matches >> c:\Python26\lib\encodings\cp437.py >> >> import encodings.cp437 # precompiled from >> c:\Python26\lib\encodings\cp437.pyc >> # trying openbabel.pyd >> # trying openbabel.py >> # trying openbabel.pyw >> # trying openbabel.pyc >> # trying c:\Python26\DLLs\openbabel.pyd >> # trying c:\Python26\DLLs\openbabel.py >> # trying c:\Python26\DLLs\openbabel.pyw >> # trying c:\Python26\DLLs\openbabel.pyc >> # trying c:\Python26\lib\openbabel.pyd >> # trying c:\Python26\lib\openbabel.py >> # trying c:\Python26\lib\openbabel.pyw >> # trying c:\Python26\lib\openbabel.pyc >> # trying c:\Python26\lib\lib-tk\openbabel.pyd >> # trying c:\Python26\lib\lib-tk\openbabel.py >> # trying c:\Python26\lib\lib-tk\openbabel.pyw >> # trying c:\Python26\lib\lib-tk\openbabel.pyc >> # trying c:\Python26\openbabel.pyd >> # trying c:\Python26\openbabel.py >> # trying c:\Python26\openbabel.pyw >> # trying c:\Python26\openbabel.pyc >> # trying c:\Python26\lib\site-packages\openbabel.pyd >> # trying c:\Python26\lib\site-packages\openbabel.py >> # c:\Python26\lib\site-packages\openbabel.pyc matches >> c:\Python26\lib\site-packa >> ges\openbabel.py >> import openbabel # precompiled from >> c:\Python26\lib\site-packages\openbabel.pyc >> # trying new.pyd >> # trying new.py >> # trying new.pyw >> # trying new.pyc >> # trying c:\Python26\DLLs\new.pyd >> # trying c:\Python26\DLLs\new.py >> # trying c:\Python26\DLLs\new.pyw >> # trying c:\Python26\DLLs\new.pyc >> # trying c:\Python26\lib\new.pyd >> # trying c:\Python26\lib\new.py >> # c:\Python26\lib\new.pyc matches c:\Python26\lib\new.py >> import new # precompiled from c:\Python26\lib\new.pyc >> import imp # builtin >> # trying c:\Python26\lib\site-packages\_openbabel.pyd >> # clear[2] version_info >> # clear[2] new_instancemethod >> # clear[2] __file__ >> # clear[2] __name__ >> # clear[2] swig_import_helper >> Traceback (most recent call last): >> File " > <stdin> > ", line 1, in > <module> >> File "c:\Python26\lib\site-packages\openbabel.py", line 28, in > <module> >> _openbabel = swig_import_helper() >> File "c:\Python26\lib\site-packages\openbabel.py", line 24, in >> swig_import_hel >> per >> _mod = imp.load_module('_openbabel', fp, pathname, description) >> ImportError: DLL load failed: The specified procedure could not be found. >>>>> >> >> >> >> -- >> View this message in context: >> http://forums.openbabel.org/import-openbabel-Import-Error-DLL-load-failed-tp4655785p4655800.html >> Sent from the General discussion mailing list archive at Nabble.com. >> >> ------------------------------------------------------------------------------ >> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >> Remotely access PCs and mobile devices and provide instant support >> Improve your efficiency, and focus on delivering more value-add services >> Discover what IT Professionals Know. Rescue delivers >> http://p.sf.net/sfu/logmein_12329d2d >> _______________________________________________ >> OpenBabel-discuss mailing list >> > OpenBabel-discuss@.sourceforge >> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > OpenBabel-discuss mailing list > OpenBabel-discuss@.sourceforge > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss -- View this message in context: http://forums.openbabel.org/import-openbabel-Import-Error-DLL-load-failed-tp4655785p4656197.html Sent from the General discussion mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss