Search code examples
pythonwxpython

"AttributeError: module 'wx' has no attribute 'adv'" despite Phoenix


Does anyone know a solution to this?

EDIT: This question was closed, because the problem didn't seem clear.

So the problem was the error "AttributeError: module 'wx' has no attribute 'adv'", although everything seemed right.

And actually, everything was right, the problem was individual to another PC, where "import wx.adv" resulted in a segmentation fault.

$ python
Python 3.6.7 (default, Oct 22 2018, 11:32:17) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.version()
'4.0.7.post2 gtk3 (phoenix) wxWidgets 3.0.5'
>>> wx.adv.NotificationMessage
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'wx' has no attribute 'adv'
>>> 

Or is there any other "non intrusive" notification method?


Solution

  • try importing this and run this again

    import wx.adv