pycairo “ImportError: DLL load failed: The specified module could not be found.” even after DLLs installed

StackOverflow https://stackoverflow.com/questions/4731786

سؤال

I'm following the pycairo installation instructions here : http://www.cs.rhul.ac.uk/home/tamas/development/igraph/tutorial/install.html to install pycairo for use with igraph.

However, even after running the installer and unzipping/copying all DLL's into the site-packages cairo directory according to the instructions, I still get the following error:


>>> import cairo
Traceback (most recent call last):
  File "", line 1, in 
  File "c:\Python26\lib\site-packages\cairo__init__.py", line 1, in 
    from _cairo import *
ImportError: DLL load failed: The specified module could not be found.
>>> 

I am running python 2.6.6 under Windows 7.

Any ideas?

هل كانت مفيدة؟

المحلول

Open _cairo.pyd in Dependency Walker and figure out what it's missing.

نصائح أخرى

I kinda solved the problem installing the Gtk-Bundle for Windows, wich had the third party dll dependencies.

(I did a dirty solution by pasting the dlls directly into c:/Python27/lib/dist-packages/cairo, because I am not used to Windows anymore and don't know for sure what is the expected place for the dlls to go.)

But my scripts started to work at last.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top