"import wxPython"-error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • YarrOfDoom
    Recognized Expert Top Contributor
    • Aug 2007
    • 1243

    "import wxPython"-error

    I just installed wxPython on my computer (Windows "fails-a-lot" Vista, 32bit, Python 2.6, PIL and pyOpenGL installed).

    However, when I try to import the wxPython module, I get this:
    [code=Python]>>> import wxPython

    Traceback (most recent call last):
    File "<pyshell#0 >", line 1, in <module>
    import wxPython
    File "C:\Python26\li b\site-packages\wx-2.8-msw-ansi\wxPython\_ _init__.py", line 7, in <module>
    DeprecationWarn ing, stacklevel=2)
    File "C:\Python26\li b\warnings.py", line 29, in _show_warning
    file.write(form atwarning(messa ge, category, filename, lineno, line))
    TypeError: idle_formatwarn ing_subproc() takes exactly 4 arguments (5 given)[/code]
    What could possibly be wrong?
  • kaarthikeyapreyan
    New Member
    • Apr 2007
    • 106

    #2
    My Guess is that the error is caused due to the incompatible versions of the pre-requisties and the WX python installed. I have faced similar kind of problems on my linux box give it a try with a different combinations of the installers

    Comment

    • YarrOfDoom
      Recognized Expert Top Contributor
      • Aug 2007
      • 1243

      #3
      Oops, stupid me. Should have been import wx instead of import wxPython, works all fine now.

      Comment

      • tharden3
        Contributor
        • Jul 2008
        • 916

        #4
        Is this your first look at wx? I looked into a little bit of that a few months ago. It's pretty cool, and relatively easy to pick up. I have good tutorials if you need any. I won't post them here, but if you'd like some PM me.

        Comment

        • timoteo
          New Member
          • Jan 2009
          • 6

          #5
          could you send it to my email?
          i am using python 2.6.1
          and wxpyhton
          but can not make a siple hello window example...
          Code:
          import wx
          app = wx.PySimpleApp()
          frame = wx.Frame(None, wx.ID_ANY, "Hello World")
          frame.Show(True)
          app.MainLoop()
          i receave the error:
          IDLE 2.6.1 ==== No Subprocess ====
          >>>
          Traceback (most recent call last):
          File "E:\Python\test e.pyw", line 1, in <module>
          import wx
          File "C:\Python26\li b\site-packages\wx-2.8-msw-unicode\wx\__in it__.py", line 45, in <module>
          from wx._core import *
          File "C:\Python26\li b\site-packages\wx-2.8-msw-unicode\wx\_cor e.py", line 4, in <module>
          import _core_
          ImportError: DLL load failed: Não foi possível iniciar esta aplicação porque a configuração da aplicação está incorrecta. A reinstalação da aplicação poderá corrigir este problema.

          by the way i use winXP

          Any help is well come.
          Thanks
          Tim

          Comment

          Working...