[cairo] Problems setting up PyCairo on Windows XP with Python 2.6

Josh Szepietowski JSzepietowski at totimm.com
Thu Jan 28 14:43:17 PST 2010


Hello, I am trying to setup PyCairo for the purposes of using PyCha
(http://www.lorenzogil.com/projects/pycha/). I am on Windows XP with
admin privileges using Python 2.6.2. 

 

These are the steps I have taken:

1.       Installed
http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.8/

2.       Downloaded the binaries for zlib, libpng, and cairo from
http://www.gtk.org/download-windows.html

3.       Extracted libcairo-2.dll, libpng12-0.dll, and zlib1.dll to my
python \Lib\site-packages\cairo directory

4.       Extracted libcairo-2.dll, libpng12-0.dll, and zlib1.dll to my
python \DLLs directory

5.       And also put them in Windows\system32 for good measure.. 

6.       Renamed libpng12-0.dll to libpng13.dll in all those locations 

 

I have a script which just does:

 

import cairo

 

I get the following error: 

 

Traceback (most recent call last):

  File "{blahblahblahpath}test.py", line 1, in <module>

    import cairo

  File "C:\Python26\lib\site-packages\cairo\__init__.py", line 1, in
<module>

    from _cairo import *

ImportError: DLL load failed: The specified module could not be found.

 

Any information would be helpful. Thanks!

 

 

Josh Szepietowski   | Software Engineer

Total Immersion Software        | RealWorld Core

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20100128/bf87b6b3/attachment.html 


More information about the cairo mailing list