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 startAlexander 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