Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Traceback in About Dialog

2007-02-06
2013-04-26
  • Hello,

    I like your program and it looks very effictient.
    Ubuntu, wxPy 2881, Unicode:
    Traceback (most recent call last):
      File "C:\Eigene Dateien\wxpython\apps\metamorphose\main_window.py", line 722,
    in OnMenuHelpAboutMenu
        about.create(self).Show()
      File "C:\Eigene Dateien\wxpython\apps\metamorphose\about.py", line 34, in crea
    te
        return About(parent)
      File "C:\Eigene Dateien\wxpython\apps\metamorphose\about.py", line 142, in __i
    nit__
        self._init_ctrls(parent)
      File "C:\Eigene Dateien\wxpython\apps\metamorphose\about.py", line 80, in _ini
    t_ctrls
        name=u'CLOSE', parent=self, size=wx.Size(128,128), style=wx.NO_BORDER)
    TypeError: __init__() got an unexpected keyword argument 'ID'T

     
    • ianaré
      ianaré
      2007-02-07

      Honestly I'm a little confused by your error code:

      First, if you are running it in Ubuntu, why is the file name in windows format?

      Second, I'm assuming you mean wxPython 2.8.1.1 - there is no 2.8.8.1.

      In any case I have done only very limited testing on wxPython in the 2.8 series, and at first glance it seems to fail on several things. If you are using windows, use the compiled version (the .exe installer), as it has the correct wxPython version built in. If in Linux, install wxPython 2.6 (I would recommend using apt-get or equivalent), then open up metamorphose.py and make the following modifications:

      - original -

      import wx
      import wxversion
      import os
      import platform

      - modified -

      import wxversion
      wxversion.select('2.6')
      import wx
      import os
      import platform

      Thanks, and let me know how it goes!

       
      • Arrgg, sorry, 2 errors in my post with my fast typing. :(
        On windows of course, I mistyped it and wxPython 2.8.1.1 Unicode.

        In my company I work with windows, and at home I also use Linux.

        Thank you for your answer.