Build error: 'sip/cpp/_core.sbf' missing
Operating system: Arch-derived wxPython version & source: 4.2.5 Python version & source: Python 3.10 (distro) sip: https://archlinux.org/packages/extra/any/sip/
Description of the problem:
File "./src/wxpython-4.2.5/buildtools/config.py", line 716, in _getSbfValue
with open(sbf) as fid:
FileNotFoundError: [Errno 2] No such file or directory: 'sip/cpp/_core.sbf'
Command '"/usr/bin/python" /usr/bin/waf --wx_config=wx-config --gtk3 --python="/usr/bin/python" --out=build/waf/3.10/gtk3 configure build ' failed with exit code 2.
It seems that sip is not found despite being present on my system.
We would need to see the full build logs as something likely went wrong much earlier.
./Phoenix/build.py:40: DeprecationWarning: dep_util is Deprecated. Use functions from setuptools instead.
from distutils.dep_util import newer, newer_group
Will build using: "/usr/bin/python"
3.10.14 (main, Apr 11 2024, 20:56:41) [GCC 13.2.1 20230801]
Python's architecture is 64bit
cfg.VERSION: 4.3.0a1
Running command: sip
Unable to delete: 'sip/siplib' (it doesn't exist or is not a folder)
sip-module --sdist --abi-version 12.14 --target-dir /tmp/tmpjtymtga3 wx.siplib
['9', '10', '11', '12', '13', '14', '15', '16', '17', '18']
copying sip/siplib/sip.h --> wx/include/wxPython
Finished command: sip (0m3.666s)
Running command: build
Running command: build_wx
use_syswx option specified, skipping wxWidgets build
Finished command: build_wx (0.0s)
Running command: build_py
"/usr/bin/python" /usr/bin/waf --wx_config=wx-config --gtk3 --no_magic --python="/usr/bin/python" --out=build/waf/3.10/gtk3 configure build
Setting top to : ./Phoenix
Setting out to : ./Phoenix/build/waf/3.10/gtk3
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for 'g++' (C++ compiler) : /usr/bin/g++
Checking for program 'python' : /usr/bin/python
Checking for python version >= 3.7.0 : 3.10.14
python-config : /usr/bin/python-config
Asking python-config for pyext '--cflags --libs --ldflags' flags : yes
Testing pyext configuration : yes
Finding libs for WX : yes
Finding libs for WXADV : yes
Finding libs for WXSTC : yes
Finding libs for WXHTML : yes
Finding libs for WXGL : yes
Finding libs for WXWEBVIEW : yes
Finding libs for WXXML : yes
Finding libs for WXXRC : yes
Finding libs for WXRICHTEXT : yes
Finding libs for WXMEDIA : yes
Finding libs for WXRIBBON : yes
Finding libs for WXPROPGRID : yes
Finding libs for WXAUI : yes
'configure' finished successfully (1.578s)
Waf: Entering directory `./Phoenix/build/waf/3.10/gtk3'
**** Compiler: /usr/bin/cc --version
cc (GCC) 15.2.1 20260209
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Traceback (most recent call last):
File "/lib/python3.10/site-packages/waf/waflib/Scripting.py", line 162, in waf_entry_point
run_commands()
File "/lib/python3.10/site-packages/waf/waflib/Scripting.py", line 258, in run_commands
ctx = run_command(cmd_name)
File "/lib/python3.10/site-packages/waf/waflib/Scripting.py", line 242, in run_command
ctx.execute()
File "/lib/python3.10/site-packages/waf/waflib/Scripting.py", line 594, in execute
return execute_method(self)
File "/lib/python3.10/site-packages/waf/waflib/Build.py", line 231, in execute
self.execute_build()
File "/lib/python3.10/site-packages/waf/waflib/Build.py", line 244, in execute_build
self.recurse([self.run_dir])
File "/lib/python3.10/site-packages/waf/waflib/Context.py", line 297, in recurse
user_function(self)
File "./Phoenix/wscript", line 567, in build
makeETGRule(bld, 'etg/_core.py', '_core', 'WX')
File "./Phoenix/wscript", line 678, in makeETGRule
source=getEtgSipCppFiles(etg) + rc,
File "./Phoenix/buildtools/config.py", line 724, in getEtgSipCppFiles
return _getSbfValue(etg, 'sources')
File "./Phoenix/buildtools/config.py", line 716, in _getSbfValue
with open(sbf) as fid:
FileNotFoundError: [Errno 2] No such file or directory: 'sip/cpp/_core.sbf'
Command '"/usr/bin/python" /usr/bin/waf --wx_config=wx-config --gtk3 --no_magic --python="/usr/bin/python" --out=build/waf/3.10/gtk3 configure build ' failed with exit code 2.
Finished command: build_py (0m2.90s)
Finished command: build (0m2.90s)
I am a bit confused. In your original message, you reporting wxPython 4.2.5, but your log file refers to wxPython 4.3.0a. Which are you trying to build? I would suggest starting over with a clean build tree and make sure to follow the instructions in the README file. During a normal build, there should be a lot more output during the sip step.
I've tried to circumvent the error by switching from https://files.pythonhosted.org/packages/source/w/wxPython/wxpython-4.2.5.tar.gz to git+https://github.com/wxWidgets/Phoenix.git
Doesn't arch already have a packaged version of wxpython? Is there some reason you're not using that one?
I'm not on vanilla ArchLinux, but on a Arch derivative, which lags mainline on its Python version. Python packages are not binary-compatibly across major versions.
Closing this as I'm not seeing anything actionable here.