I have installed the latest versions of both Boa and
wxPython nad get the following error at startup:
Traceback (most recent call last):
File
"E:\Python23\Lib\site-packages\wxPython\tools\boa\Boa.py",
line 603, in ?
main()
File
"E:\Python23\Lib\site-packages\wxPython\tools\boa\Boa.py",
line 585, in main
app = BoaApp()
File
"E:\Python23\Lib\site-packages\wxPython\tools\boa\Boa.py",
line 408, in __init__
wxApp.__init__(self, false)
File "E:\Python23\Lib\site-packages\wx\core.py", line
5042, in __init__
self._BootstrapApp()
File "E:\Python23\Lib\site-packages\wx\core.py", line
4791, in _BootstrapApp
return _core.PyApp__BootstrapApp(*args, **kwargs)
File
"E:\Python23\Lib\site-packages\wxPython\tools\boa\Boa.py",
line 417, in OnInit
conf = Utils.createAndReadConfig('Explorer')
File
"E:\Python23\Lib\site-packages\wxPython\tools\boa\Utils.py",
line 296, in createAndReadConfig
confFile = os.path.join(Preferences.rcPath,
'%s%s.cfg' % (name,
NameError: global name 'wx' is not defined
not at all surprising as wx is not imported, removing
the explicit reference to wx fixes the problem.
Logged In: NO
what the hell does that mean ?
what exactly has to be done ?
thanks in advance
bernd
Logged In: YES
user_id=794620
what the hell does that mean ?
what has to be done (please describe exactly what file to
edit) ?
thanks in advance
bernd
Logged In: NO
It means replace "wx.wxPlatform" with just "wxPlatform".
That fixed the problem for me, only to run into a new problem:
Starting Boa Constructor v0.2.3
importing wxPython
reading user preferences
running main...
Traceback (most recent call last):
File "C:\Python23\Lib\site-packages\wx\lib\wxpTag.py",
line 117, in HandleTag
return self.HandleWxpTag(tag)
File "C:\Python23\Lib\site-packages\wx\lib\wxpTag.py",
line 142, in HandleWxpT
ag
self.ctx.classObj = getattr(self.ctx.classMod, className)
AttributeError: 'module' object has no attribute 'wxStaticText'
Traceback (most recent call last):
File "C:\Python23\Lib\site-packages\wx\lib\wxpTag.py",
line 117, in HandleTag
return self.HandleWxpTag(tag)
File "C:\Python23\Lib\site-packages\wx\lib\wxpTag.py",
line 142, in HandleWxpT
ag
self.ctx.classObj = getattr(self.ctx.classMod, className)
AttributeError: 'module' object has no attribute 'wxWindow'
Traceback (most recent call last):
File "boa.py", line 603, in ?
main()
File "boa.py", line 585, in main
app = BoaApp()
File "boa.py", line 408, in __init__
wxApp.__init__(self, false)
File "C:\Python23\Lib\site-packages\wx\core.py", line
5042, in __init__
self._BootstrapApp()
File "C:\Python23\Lib\site-packages\wx\core.py", line
4791, in _BootstrapApp
return _core.PyApp__BootstrapApp(*args, **kwargs)
File "boa.py", line 421, in OnInit
abt = About.createSplash(None, modTot, fileTot)
File
"C:\Python23\Lib\site-packages\wxPython\tools\boa\About.py",
line 141, in
createSplash
return AboutBoxSplash(parent, modTot, fileTot)
File
"C:\Python23\Lib\site-packages\wxPython\tools\boa\About.py",
line 162, in
__init__
self.setPage()
File
"C:\Python23\Lib\site-packages\wxPython\tools\boa\About.py",
line 234, in
setPage
self.label.SetBackgroundColour(wxWHITE)
AttributeError: 'NoneType' object has no attribute
'SetBackgroundColour'
Logged In: NO
Traceback (most recent call last):
File "C:\Program Files\Python23\Lib\site-
packages\wxPython\tools\boa\Boa.py", line 603, in -toplevel-
main()
File "C:\Program Files\Python23\Lib\site-
packages\wxPython\tools\boa\Boa.py", line 585, in main
app = BoaApp()
File "C:\Program Files\Python23\Lib\site-
packages\wxPython\tools\boa\Boa.py", line 408, in __init__
wxApp.__init__(self, false)
File "C:\PROGRA~1\Python23\Lib\site-
packages\wx\core.py", line 5042, in __init__
self._BootstrapApp()
File "C:\PROGRA~1\Python23\Lib\site-
packages\wx\core.py", line 4791, in _BootstrapApp
return _core.PyApp__BootstrapApp(*args, **kwargs)
File "C:\Program Files\Python23\Lib\site-
packages\wxPython\tools\boa\Boa.py", line 417, in OnInit
conf = Utils.createAndReadConfig('Explorer')
File "C:\Program Files\Python23\Lib\site-
packages\wxPython\tools\boa\Utils.py", line 296, in
createAndReadConfig
confFile = os.path.join(Preferences.rcPath, '%s%s.cfg' %
(name,
NameError: global name 'wx' is not defined
How do you fix the above exactly! thanks
Logged In: NO
Hi, I ahve the same problem, any ideas how to get it running.
Starting Boa Constructor v0.2.3
importing wxPython
reading user preferences
running main...
Traceback (most recent call last):
File "C:\Python23\Lib\site-
packages\wxPython\tools\boa\Boa.py", line 603, in ?
main()
File "C:\Python23\Lib\site-
packages\wxPython\tools\boa\Boa.py", line 585, in main
app = BoaApp()
File "C:\Python23\Lib\site-
packages\wxPython\tools\boa\Boa.py", line 408, in __init__
wxApp.__init__(self, false)
File "C:\Python23\Lib\site-packages\wx\core.py", line 5042,
in __init__
self._BootstrapApp()
File "C:\Python23\Lib\site-packages\wx\core.py", line 4791,
in _BootstrapApp
return _core.PyApp__BootstrapApp(*args, **kwargs)
File "C:\Python23\Lib\site-
packages\wxPython\tools\boa\Boa.py", line 417, in OnInit
conf = Utils.createAndReadConfig('Explorer')
File "C:\Python23\Tools\boa-constructor-0.2.3\Utils.py", line
295, in createAndReadConfig
confFile = os.path.join(Preferences.rcPath, '%s%s.cfg' %
(name,
NameError: global name 'wx' is not defined
Logged In: YES
user_id=1076827
Hello everybody
i have the very same problem.
but I tl now I didn't figure out how to fix the
"global name 'wx' ist not defined"-problem.
Has no one any idea how to get this handled???
Thanks
Biber23