I may be experiencing the same or a related issue.

I have Python 2.7.3 (32-bit) installed under Windows 7 (64-bit).

Following the link referred to above -
http://open-babel.readthedocs.org/en/latest/UseTheLibrary/PythonInstall.html
- I downloaded the OpenBabel2.3.2a_Windows_Installer.exe and
openbabel-python-1.7.py27.exe

I made sure that all previous versions of OpenBabel and
openbabel-python-1.7.py27 were uninstalled via Programs and Features.

I ran the OpenBabel2.3a installer as administrator. 

The GUI seemed to install successfully. 

Also, my path seems to have been updated correctly (?) and BABEL_DATADIR
appears to have been created correctly - since:
====

C:\Work\sciInstalls\PythonInstalls>echo %PATH%
C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files
(x8
6)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\AMD
APP\bin
\x86_64;C:\Program Files (x86)\AMD
APP\bin\x86;C:\windows\system32;C:\windows;C:
\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program
Fi
les (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files
(x86)\Windows Li
ve\Shared;C:\Python27;C:\Program Files (x86)\OpenBabel-2.3.2;C:\Program
Files (x
86)\Mozilla Firefox

C:\Work\sciInstalls\PythonInstalls>echo %BABEL_DATADIR%
C:\Users\Owner\AppData\Roaming\OpenBabel-2.3.2\data

C:\Work\sciInstalls\PythonInstalls>
=============

I notice, however, that no \bin\ subdirectory was created under C:\Program
Files(x86)\OpenBabel-2.3.2
This also appears to be the case above.

Is this the key pointer to the existence of an error - or has this
subdirectory been moved in 2.3.2?

The issue which makes me wonder whether my problem is NOT IDENTICAL TO THE
ONE REPORTED ABOVE (?)  is that I was prompted to <repair> or <remove> a
Microsoft Visual C++ Runtime x86 dll during the installation. 

I selected <repair>.


I then ran the openbabel-python-1.7.py27.exe installer without any errors.

>From a new command prompt, however, trying to import pybel gave the
following error:


C:\Users\Owner>python
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on
win
32
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 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_hel
per
    _mod = imp.load_module('_openbabel', fp, pathname, description)
ImportError: DLL load failed: The specified procedure could not be found.
>>> import openbabel
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  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_hel
per
    _mod = imp.load_module('_openbabel', fp, pathname, description)
ImportError: DLL load failed: The specified procedure could not be found.
>>>

When I repeated everything from above (including uninstalling OpenBabel and
Pybel as before), except for selecting <remove> when it came to the Visual
C++ dll prompt, I got exactly the same results.


Any assistance would be greatly appreciated. 

Please let me know if I should start a new thread!





--
View this message in context: 
http://forums.openbabel.org/import-openbabel-Import-Error-DLL-load-failed-tp4655785p4655799.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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to