xrced not start :(

I get this same problem on Win2K with wxPython 2.3.4.2.

The modules all use

from xxx import *
from wxPython.wx import *
...

so there are all sorts of places where it could be having name clashes.
However, I don't see a

from wxPython.html import wxHtmlWindow

anywhere, so it doesn't look like the class is in the namespace. Even after
adding the import line above I get another exception because the variable
helpText on the line below where wxHtmlWindow is used isn't defined either.

ka

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Thursday, December 26, 2002 3:37 PM
To: wxPython-users@lists.wxwindows.org
Subject: Re: [wxPython-users] xrced not start :frowning:

Alexander I. Evseev wrote:
> I start xrced and I got this:
>
> Traceback (most recent call last):
> File "/usr/bin/xrced", line 4, in ?
> main()
> File "/usr/lib/python2.2/site-packages/wxPython/tools/XRCed/xrced.py",
> line 973, in main
> app = App(0, useBestVisual=false)
> File "/usr/lib/python2.2/site-packages/wxPython/wx.py", line 1738, in
> __init__
> _wxStart(self.OnInit)
> File "/usr/lib/python2.2/site-packages/wxPython/tools/XRCed/xrced.py",
> line 940, in OnInit
> frame = Frame(pos, size)
> File "/usr/lib/python2.2/site-packages/wxPython/tools/XRCed/xrced.py",
> line 359, in __init__
> self.Clear()
> File "/usr/lib/python2.2/site-packages/wxPython/tools/XRCed/xrced.py",
> line 789, in Clear
> panel.Clear()
> File "/usr/lib/python2.2/site-packages/wxPython/tools/XRCed/panel.py",
> line 133, in Clear
> self.SetData(None)
> File "/usr/lib/python2.2/site-packages/wxPython/tools/XRCed/panel.py",
> line 70, in SetData
> html = wxHtmlWindow(self.page1, -1, wxDefaultPosition,
> NameError: global name 'wxHtmlWindow' is not defined
>
>
> How can I fix it?
> python 2.2.2, wxPython 2.3.4.2
>

I don't know, it works here. Maybe there is an import loop or related
problem, perhaps caused by some file corruption or something. Try
uninstalling the RPM and then ensuring that
/usr/lib/python2.2/site-packages/wxPython does not exist or is totally
empty, then reinstall.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

Hello in 2003!

OKay, I see it now. Looks like when Roman refactored some of the code
one of the code paths didn't get exercised. It's only the first time
xrced is run that is displays a "don't panic" message in an html window.

Exactly. I've forgot to test it...

Roman, can you get this fixed soon so I can so a 2.4.0 release?

Sorrry, I was already on vacations, and I saw you fixed it already
(thanks). I've added a doc-string to xrced.py is it enough or should I
write a normal man-page too?

Regards,

Roman Rolinsky

···

On Thu, Dec 26, 2002 at 06:53:06PM -0800, Robin Dunn wrote:

Roman Rolinsky wrote:

Sorrry, I was already on vacations, and I saw you fixed it already
(thanks). I've added a doc-string to xrced.py is it enough or should I
write a normal man-page too?

The doc-string should be enough for now.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!