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

cip picture cip · Jan 19, 2011 · Viewed 19.4k times · Source

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?

Answer

Ignacio Vazquez-Abrams picture Ignacio Vazquez-Abrams · Jan 19, 2011

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