wxWidgets / Phoenix

wxPython's Project Phoenix. A new implementation of wxPython, better, stronger, faster than he was before.
http://wxpython.org/
2.33k stars 515 forks source link

linux debian bullseye : AttributeError: module 'wx' has no attribute 'HelpProvider_Set' (#1104 revival ?) #1969

Open g-vidal opened 3 years ago

g-vidal commented 3 years ago

Hi, I have followed step by step the following page except that I have used pipenv instead of env+pip. https://wxpython.org/blog/2017-08-17-builds-for-linux-with-pip/

I get the error just after the declaration of the provider, The installation seems to work properly...

Operating system: Linux ***** 5.10.0-7-amd64 #1 SMP Debian 5.10.40-1 (2021-05-28) x86_64 GNU/Linux wxPython version & source: pip download wxPython -> wxPython-4.1.1.tar.gz Python version & source: Python 3.9.2 debian package (apt install python3) ii python3 3.9.2-3 amd64 interactive high-level object-oriented language (default python3 version)

Description of the problem: AttributeError: module 'wx' has no attribute 'HelpProvider_Set'

Code Example (click to expand) ```python import wx import wx.html import wx.lib.colourselect as csel import wx.lib.sized_controls as sc import wx.lib.filebrowsebutton as filebrowse import locale from functions import DoConf, exec_rcode, translation_languages import os from shutil import copyfile from PrintRScript import barplot, ChronoChi2Script, ChronoPropScript, ChronoggScript import tempfile import sys from KeyFrame import AlcOptFrame import wx.lib.agw.hyperlink as hl #--------------------------------------------------------------------------- provider = wx.SimpleHelpProvider() wx.HelpProvider_Set(provider) ```

Thanks

swt2c commented 3 years ago

Should be wx.HelpProvider.Set(provider) - note dot instead of underscore.

See: https://docs.wxpython.org/wx.HelpProvider.html?highlight=helpprovider#wx.HelpProvider