Build git master on ubuntu 22 (Python 3.10)

75 views
Skip to first unread message

massimo di stefano

unread,
Jan 20, 2022, 2:02:53 PM1/20/22
to wxPython-dev
Hi,

I am trying to build the git master branch on ubuntu 22, with python 3.10.1

I am following the instruction on the readme - I only had to add 'python3-sipbuild' to the list of dependencies (I installed it via apt-get) - unfortunately the build ends with the following error:

"/usr/bin/python" etg/propgridprops.py --sip --nodoc
"/usr/bin/python" etg/propgridadvprops.py --sip --nodoc
"/usr/bin/python" etg/propgridmanager.py --sip --nodoc
"/usr/bin/python" etg/auiframemanager.py --sip --nodoc
WARNING: Method wxAuiManagerEvent::Veto already exists in C++ class API, can not create a property.
"/usr/bin/python" etg/auidockart.py --sip --nodoc
"/usr/bin/python" etg/auibar.py --sip --nodoc
"/usr/bin/python" etg/auibook.py --sip --nodoc
"/usr/bin/python" etg/auitabmdi.py --sip --nodoc
"/usr/bin/python" etg/mediactrl.py --sip --nodoc
Finished command: etg (0m21.52s)
Running command: sip
Running SIP code generator on: sip/gen/_core.sip
build.py: An internal error occurred...
Traceback (most recent call last):
  File "/home/epinux/dev/Phoenix/build.py", line 2321, in <module>
    main(sys.argv[1:])
  File "/home/epinux/dev/Phoenix/build.py", line 202, in main
    function(options, args)
  File "/home/epinux/dev/Phoenix/build.py", line 1287, in cmd_sip
    sip_runner(src_name,
  File "/home/epinux/dev/Phoenix/buildtools/wxpysip.py", line 98, in sip_runner
    handle_exception(e)
  File "/usr/lib/python3/dist-packages/sipbuild/exceptions.py", line 81, in handle_exception
    raise e
  File "/home/epinux/dev/Phoenix/buildtools/wxpysip.py", line 65, in sip_runner
    set_globals(SIP_VERSION, SIP_VERSION_STR, int(abi_major), int(abi_minor),
TypeError: function takes exactly 7 arguments (6 given)
Finished command: sip (0.18s)
➜  Phoenix git:(master) which sip
/usr/bin/sip

➜  Phoenix git:(master) sip -V      
4.19.25

Do you have any advice on how to fix this? Do I need a more recent version of sip and sipbuild? Any pointer on how to install/build them?

Oleksis Fraga Menéndez

unread,
Jan 25, 2022, 6:18:31 PM1/25/22
to wxPyth...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wxPython-dev/54482249-ca9a-4195-8786-6afb6c864817n%40googlegroups.com.


--
"Los buenos programadores saben qué escribir. Los mejores, que reescribir (y reutilizar)". - Eric S. Raymond

abu...@gmail.com

unread,
Mar 9, 2023, 12:28:44 AM3/9/23
to wxPython-dev
That guide seems to be for wxPython 4.1.1 under ubuntu 21.04 using Python 3.9 - would be nice to have an updated guide for wxPython 4.2 under ubuntu 22.04 using Python 3.10, with any changes to depended on package version numbers/names. 

It also would be helpful to know if such instructions would work on Ubuntu ARM, since there is no official wheel for wxPython on Ubuntu ARM - it looks like we have to build it ourselves? I wonder why there isn't an official wheel for arm. I am able to install wxpython ok on Mac ARM using pip, which is nice.

Reply all
Reply to author
Forward
0 new messages