Menu

#192 Boa dosent start

open
nobody
None
5
2004-04-18
2004-04-18
Anonymous
No

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.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    what the hell does that mean ?
    what exactly has to be done ?

    thanks in advance
    bernd

     
  • bernd.will@siemens.com

    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

     
  • Nobody/Anonymous

    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'

     
  • Nobody/Anonymous

    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

     
  • Nobody/Anonymous

    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

     
  • Biber23

    Biber23 - 2004-07-04

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.