Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 828
cip Avatar asked Jan 19 '11 04:01

cip


1 Answers

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

like image 50
Ignacio Vazquez-Abrams Avatar answered Nov 01 '22 10:11

Ignacio Vazquez-Abrams