Python Forum
[WxPython] NameError: global name 'PyAssertionError' is not defined
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[WxPython] NameError: global name 'PyAssertionError' is not defined
#5
Ok I was thinking you wanted help with fixing the error.
PyAssertionError is not a built in python error its a wx python specific error, so you need to put wx. infront of it.
>>> import wx
>>> wx.PyAssertionError
<class 'wx._core.wxAssertionError'>
Reply


Messages In This Thread
RE: NameError: global name 'PyAssertionError' is not defined - by Yoriz - Jan-28-2017, 08:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  NameError: name 'self' is not defined hobbyist 30 14,855 Jul-25-2021, 10:22 AM
Last Post: hobbyist
  [Kivy] NameError: name 'App' is not defined nengkya 4 13,716 Apr-02-2017, 07:15 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020