···
==================================
I installed python 2.6.1, wxpython 2.8.10.1, and wxcairo 1.8.6, together
with the 3 dll's, on an old Windows 2000 Server machine, and had the same
problem.
Then I took a spare hdd, put it in the W2K machine, installed Windows XP
Pro, then installed python, wxpython, and wxcairo exactly the same as
before, and it works!
So there seems to be some issue with Windows 2000/2003.
In the interim, my laptop was stolen and I have temporarily set up a desktop
machine as a replacement. I had not re-installed cairo, but having read this
thread I have now installed it, and lo and behold - it works.
The only change I can think of is that I am now using python 2.6.2 instead
of 2.6.1 - could this make a difference?
BTW, I battled to get cairo working at first. If I typed 'import cairo', I
got an error message saying that it could not locate the DLL.
I had initially downloaded the following zip files from
www.gtk.org/download-windows.html -
cairo_1.8.8-2_win32.zip
libpng_1.2.38-1_win32.zip
zlib123-dll.zip
After getting nowhere, I tried, more in hope than expectation, the zip files
from wxpython.org/cairo -
cairo_1.8.6-1_win32.zip
libpng_1.2.34-1_win32.zip
zlib123-dll.zip
After unpacking, the DLL names were the same as before, but when I copied
them into my PATH, everything worked.
BTW2, I still have the same problem on gtk2. It appears to work initially,
but if I resize the window it crashes. The tracebacks vary, but here is a
typical one -
Robin Dunn wrote:
ralph wrote:
> I found this exact problem on the old mailing list posted back in May
> (Nabble: http://www.nabble.com/Problem-running-Cairo-demo-
tt23406281.html#a23406281),
> although it appears it was never solved.
>
The only crash I was able to reproduce was fixed in 2.8.10.1, but IIRC
Frank was still having a problem with it. Unfortunately, if I can't
duplicate it I can't do much about solving it. It will likely take
somebody who is having the problem to make a debug build of Python,
wxWidgets and wxPython and then run it under the debugger to see what is
going on.
Here is an update which is probably more confusing than helpful, but I think
it is encouraging.
My previous report, in June, stated the following -
==================================
I installed python 2.6.1, wxpython 2.8.10.1, and wxcairo 1.8.6, together
with the 3 dll's, on an old Windows 2000 Server machine, and had the same
problem.
Then I took a spare hdd, put it in the W2K machine, installed Windows XP
Pro, then installed python, wxpython, and wxcairo exactly the same as
before, and it works!
So there seems to be some issue with Windows 2000/2003.
In the interim, my laptop was stolen and I have temporarily set up a desktop
machine as a replacement. I had not re-installed cairo, but having read this
thread I have now installed it, and lo and behold - it works.
The only change I can think of is that I am now using python 2.6.2 instead
of 2.6.1 - could this make a difference?
BTW, I battled to get cairo working at first. If I typed 'import cairo', I
got an error message saying that it could not locate the DLL.
I had initially downloaded the following zip files from
www.gtk.org/download-windows.html -
cairo_1.8.8-2_win32.zip
libpng_1.2.38-1_win32.zip
zlib123-dll.zip
After getting nowhere, I tried, more in hope than expectation, the zip files
from wxpython.org/cairo -
cairo_1.8.6-1_win32.zip
libpng_1.2.34-1_win32.zip
zlib123-dll.zip
After unpacking, the DLL names were the same as before, but when I copied
them into my PATH, everything worked.
Robin Dunn wrote:
ralph wrote:
> I found this exact problem on the old mailing list posted back in May
> (Nabble: http://www.nabble.com/Problem-running-Cairo-demo-
tt23406281.html#a23406281),
> although it appears it was never solved.
>
The only crash I was able to reproduce was fixed in 2.8.10.1, but IIRC
Frank was still having a problem with it. Unfortunately, if I can't
duplicate it I can't do much about solving it. It will likely take
somebody who is having the problem to make a debug build of Python,
wxWidgets and wxPython and then run it under the debugger to see what is
going on.
Here is an update which is probably more confusing than helpful, but I think
it is encouraging.
My previous report, in June, stated the following -
==================================
I installed python 2.6.1, wxpython 2.8.10.1, and wxcairo 1.8.6, together
with the 3 dll's, on an old Windows 2000 Server machine, and had the same
problem.
Then I took a spare hdd, put it in the W2K machine, installed Windows XP
Pro, then installed python, wxpython, and wxcairo exactly the same as
before, and it works!
So there seems to be some issue with Windows 2000/2003.
In the interim, my laptop was stolen and I have temporarily set up a desktop
machine as a replacement. I had not re-installed cairo, but having read this
thread I have now installed it, and lo and behold - it works.
The only change I can think of is that I am now using python 2.6.2 instead
of 2.6.1 - could this make a difference?
BTW, I battled to get cairo working at first. If I typed 'import cairo', I
got an error message saying that it could not locate the DLL.
I had initially downloaded the following zip files from
www.gtk.org/download-windows.html -
cairo_1.8.8-2_win32.zip
libpng_1.2.38-1_win32.zip
zlib123-dll.zip
After getting nowhere, I tried, more in hope than expectation, the zip files
from wxpython.org/cairo -
cairo_1.8.6-1_win32.zip
libpng_1.2.34-1_win32.zip
zlib123-dll.zip
After unpacking, the DLL names were the same as before, but when I copied
them into my PATH, everything worked.
Robin Dunn wrote:
ralph wrote:
> I found this exact problem on the old mailing list posted back in May
> (Nabble: http://www.nabble.com/Problem-running-Cairo-demo-
tt23406281.html#a23406281),
> although it appears it was never solved.
>
The only crash I was able to reproduce was fixed in 2.8.10.1, but IIRC
Frank was still having a problem with it. Unfortunately, if I can't
duplicate it I can't do much about solving it. It will likely take
somebody who is having the problem to make a debug build of Python,
wxWidgets and wxPython and then run it under the debugger to see what is
going on.
Here is an update which is probably more confusing than helpful, but I think
it is encouraging.
My previous report, in June, stated the following -
==================================
I installed python 2.6.1, wxpython 2.8.10.1, and wxcairo 1.8.6, together
with the 3 dll's, on an old Windows 2000 Server machine, and had the same
problem.
Then I took a spare hdd, put it in the W2K machine, installed Windows XP
Pro, then installed python, wxpython, and wxcairo exactly the same as
before, and it works!
So there seems to be some issue with Windows 2000/2003.
In the interim, my laptop was stolen and I have temporarily set up a desktop
machine as a replacement. I had not re-installed cairo, but having read this
thread I have now installed it, and lo and behold - it works.
The only change I can think of is that I am now using python 2.6.2 instead
of 2.6.1 - could this make a difference?
BTW, I battled to get cairo working at first. If I typed 'import cairo', I
got an error message saying that it could not locate the DLL.
I had initially downloaded the following zip files from
www.gtk.org/download-windows.html -
cairo_1.8.8-2_win32.zip
libpng_1.2.38-1_win32.zip
zlib123-dll.zip
After getting nowhere, I tried, more in hope than expectation, the zip files
from wxpython.org/cairo -
cairo_1.8.6-1_win32.zip
libpng_1.2.34-1_win32.zip
zlib123-dll.zip
After unpacking, the DLL names were the same as before, but when I copied
them into my PATH, everything worked.
Robin Dunn wrote:
ralph wrote:
> I found this exact problem on the old mailing list posted back in May
> (Nabble: http://www.nabble.com/Problem-running-Cairo-demo-
tt23406281.html#a23406281),
> although it appears it was never solved.
>
The only crash I was able to reproduce was fixed in 2.8.10.1, but IIRC
Frank was still having a problem with it. Unfortunately, if I can't
duplicate it I can't do much about solving it. It will likely take
somebody who is having the problem to make a debug build of Python,
wxWidgets and wxPython and then run it under the debugger to see what is
going on.
Here is an update which is probably more confusing than helpful, but I think
it is encouraging.
My previous report, in June, stated the following -
==================================
I installed python 2.6.1, wxpython 2.8.10.1, and wxcairo 1.8.6, together
with the 3 dll's, on an old Windows 2000 Server machine, and had the same
problem.
Then I took a spare hdd, put it in the W2K machine, installed Windows XP
Pro, then installed python, wxpython, and wxcairo exactly the same as
before, and it works!
So there seems to be some issue with Windows 2000/2003.
In the interim, my laptop was stolen and I have temporarily set up a desktop
machine as a replacement. I had not re-installed cairo, but having read this
thread I have now installed it, and lo and behold - it works.
The only change I can think of is that I am now using python 2.6.2 instead
of 2.6.1 - could this make a difference?
BTW, I battled to get cairo working at first. If I typed 'import cairo', I
got an error message saying that it could not locate the DLL.
I had initially downloaded the following zip files from
www.gtk.org/download-windows.html -
cairo_1.8.8-2_win32.zip
libpng_1.2.38-1_win32.zip
zlib123-dll.zip
After getting nowhere, I tried, more in hope than expectation, the zip files
from wxpython.org/cairo -
cairo_1.8.6-1_win32.zip
libpng_1.2.34-1_win32.zip
zlib123-dll.zip
After unpacking, the DLL names were the same as before, but when I copied
them into my PATH, everything worked.
BTW2, I still have the same problem on gkt2. It appears to work, but if I
resixe the window, it crashes. The traceback varies, but this is a typical
one -
Traceback (most recent call last):
File "Cairo.py", line 31, in OnPaint
self.Render(dc)
File "Cairo.py", line 72, in Render
wx.FFont(10, wx.SWISS, wx.FONTFLAG_BOLD))
File
"/usr/local/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/lib/wxcairo.p
y", line 164, in FontFaceFromFont
fontface =
pycairoAPI.FontFace_FromFontFace(ctypes.c_void_p(fontfaceptr))
cairo.Error: <unknown error status>
I am still using python 2.6.1 on gtk2 - I will try to find the time to
upgrade to 2.6.2 and see if this makes any difference.
Frank Millman