Hello, this problem is solved (by copying openbabel's dlls to python
directory. I'm able to import openbabel now, but when I try to import
pybel, I get the following error:
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    import pybel
  File "C:\Python33\lib\site-packages\pybel.py", line 69, in <module>
    informats = _formatstodict(_obconv.GetSupportedInputFormat())
  File "C:\Python33\lib\site-packages\pybel.py", line 65, in _formatstodict
    broken = [(x,y.strip()) for x,y in broken]
  File "C:\Python33\lib\site-packages\pybel.py", line 65, in <listcomp>
    broken = [(x,y.strip()) for x,y in broken]
ValueError: need more than 1 value to unpack

Can anybody help??
Thanks,
Michal Krompiec

On 7 October 2013 12:37, Michal Krompiec <michal.kromp...@gmail.com> wrote:
> Hello, I need urgent help with the openbabel python library. I can't
> get it  to work (on 3 different Windows 7 computers).
> I installed OpenBabel GUI 2.3.2 first, then Python 3.3 32-bit, then
> OpenBabel python bindings 1.8 for python 3.3.
>
> When I try to import openabel or pybel, I get the following error message:
>>>> import pybel
> Traceback (most recent call last):
>   File "<pyshell#0>", line 1, in <module>
>     import pybel
>   File "C:\Python33\lib\site-packages\pybel.py", line 52, in <module>
>     import openbabel as ob
>   File "C:\Python33\lib\site-packages\openbabel.py", line 37, in <module>
>     _openbabel = swig_import_helper()
>   File "C:\Python33\lib\site-packages\openbabel.py", line 33, in
> swig_import_helper
>     _mod = imp.load_module('_openbabel', fp, pathname, description)
>   File "C:\Python33\lib\imp.py", line 183, in load_module
>     return load_dynamic(name, filename, file)
> ImportError: DLL load failed: The specified module could not be found.
>
> What to do? openbabel directory is in the path, copying openbabel's
> dlls into windows/system doesn't help.
> I tried again with Python 2.7, but got exactly the same problem.
> I know that some people reported this issue previously, but their
> solutions don't work for me.
> Thanks in advance,
> Michal Krompiec

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to