wxpythonwxwidgetspython-sip

Can anyone help getting wxPython to build?


I am trying to build wxPython (version 4.2. 4a1) from source for python 3.12.3 using wxWidgets (version 3.2. 7. 1) and SIP (version 6.11. 0) in a Docker container based on Ubuntu 24.04. The build fails at the SIP step with the following error:

sip-build: /opt/wxPython-src/sip/gen/scrolwin.sip:

I spend hours and many iterations trying to fix scrolwin.py, that generates the sip file. Now I have decided to skip that part. I just need a sip file or else the glue code necessary for it to work from python.

For those who have wxWidgets version close to 3.2.7.1 (using gtk3) and python version close to 3.12.3, I would be grateful if you can send me:

Some extra details: I have built wxWidgets succesfully. A simple pip install wxpython did not work. I'm building with:

python3 /opt/wxPython-src/build.py dox etg --nodoc sip --jobs=$(nproc --ignore=2) -v

This works well for all python scripts in Phoenix-master/etg except scrolwin.py. The next step will be

python3 /opt/wxPython-src/build.py build --jobs=$(nproc --ignore=2) -v

Solution

  • Facing simlar issue I managed to build the wxPython 4.2.3-r1 after downgrading sip from 6.11.0 to 6.10.0. I am using Python 3.13.

    Sip 6.10.0 seems to be required:
    https://github.com/wxWidgets/Phoenix/blob/wxPython-4.2.3/requirements/devel.txt