Re: minidom + wxPython woes

2006-04-11 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > > FYI, the incompatibility issues that arise with pyexpat in mod_python > are well documented at: > > http://www.dscpl.com.au/articles/modpython-006.html Nice document! Is there some possibly-similar explanation of character encoding issues with mod_python and Expat so

Re: minidom + wxPython woes

2006-04-11 Thread grahamd
Paul Boddie wrote: > Frank Millman wrote: > > Fredrik Lundh wrote: > > > > > > no, it's not a bug in the pyexpat module -- the problem is that > > > wxPython uses it's own incompatible version of the expat library, > > > and loads it in a way that causes problems for any library that's > > > tries

Re: minidom + wxPython woes

2006-04-10 Thread Lonnie Princehouse
I'm hesitant to resort to tricks like "import pyexpat before wx, so that symbols are loaded from the right library". Luckily, I stumbled onto pxdom. It's a pure-python DOM implementation, and switching to it was as easy as this: # import xml.dom.minidom as dom import pxdom as dom -- http://mai

Re: minidom + wxPython woes

2006-04-08 Thread Paul Boddie
Frank Millman wrote: > Fredrik Lundh wrote: > > > > no, it's not a bug in the pyexpat module -- the problem is that > > wxPython uses it's own incompatible version of the expat library, > > and loads it in a way that causes problems for any library that's > > tries to use its own statically linked

Re: minidom + wxPython woes

2006-04-08 Thread Frank Millman
Fredrik Lundh wrote: > Frank Millman wrote: > > > This sounds similar to a problem I reported a few months ago. This is > > the link. > > > http://groups.google.com/group/comp.lang.python/browse_frm/thread/6fc1097d26083e43/5fbdf493f3c38942?q=&rnum=1&hl=en#5fbdf493f3c38942 > > > > In my case, it tu

Re: minidom + wxPython woes

2006-04-08 Thread Fredrik Lundh
Frank Millman wrote: > This sounds similar to a problem I reported a few months ago. This is > the link. > http://groups.google.com/group/comp.lang.python/browse_frm/thread/6fc1097d26083e43/5fbdf493f3c38942?q=&rnum=1&hl=en#5fbdf493f3c38942 > > In my case, it turned out to be a bug in the pyexpat m

Re: minidom + wxPython woes

2006-04-07 Thread Frank Millman
Lonnie Princehouse wrote: > Hi all, > > I'm getting a seg fault when I try to use minidom to parse some XML > inside a wxPython app. > > I was wondering if someone else could run the simple code below on > Linux and, if it doesn't crash horribly, post which versions of > (Python, wxPython) they ar

Re: minidom + wxPython woes

2006-04-07 Thread Peter Hansen
Lonnie Princehouse wrote: > Oops, I missed a bracket... that should read: > > testxml = '' > > But it still crashes ;-) Maybe missing a question mark still too? (It's like a processing instruction, not an element.) -Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: minidom + wxPython woes

2006-04-07 Thread Lonnie Princehouse
Oops, I missed a bracket... that should read: testxml = '' But it still crashes ;-) -- http://mail.python.org/mailman/listinfo/python-list