PyCairo “ImportError: carga DLL falló: El módulo especificado no se pudo encontrar.” incluso después de instalar DLL
Pregunta
Estoy siguiendo las instrucciones de instalación PyCairo aquí: http://www.cs.rhul.ac .uk / home / Tamas / desarrollo / igraph / tutorial / install.html instalar PyCairo para su uso con igraph.
Sin embargo, incluso después de ejecutar el instalador y descomprimir / copiar todos los DLL en el directorio site-packages Cairo acuerdo con las instrucciones, todavía consigo el error siguiente:
>>> 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.
>>>
Me postulo Python 2.6.6 en Windows 7.
¿Alguna idea?
Solución
Open _cairo.pyd in Dependency Walker and figure out what it's missing.
Otros consejos
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.