Can't install because building wxPython failed
- [x] I've searched the issue tracker and is pretty sure that there's no duplicate issue already filed
Issue Reproduce Instructions
- Try installing WoeUSB-ng with this command
sudo pipx install WoeUSB-ng
Expected Behavior
No error
Current Behavior
Pip returns error with following message:
pip failed to build package:
wxPython
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
configure: WARNING: system jpeg library not found, will use built-in instead
checking for LIBTIFF... not found via pkg-config
configure: WARNING: system tiff library not found, will use built-in instead
checking for LIBCURL... not found
The development files for GTK+ were not found. For GTK+ 2, please
ERROR: failed building wxWidgets
buildtools.builder.BuildError: Error running configure
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (wxPython)
Error installing woeusb-ng.
Information about the Operating System
Debian GNU/Linux 12 (bookworm)
Might be useful to read this article and this github issue
Accidentally closed the issue
I got past this problem in Linux Mint 22.1 XFCE (derived from Ubuntu 24.04) by installing libgtk-3-dev. Perhaps the list of required dependencies for Ubuntu variants should updated to include libgtk-3-dev.
(Unfortunately, the installation still failed because Ubuntu variants now use pipx instead of python3-pip, and pipx should never be run as 'sudo' according to the pipx documentation. Running 'pipx install WoeUSB-ng' resulted in a permissions error "error: [Errno 13] Permission denied: '/usr/local/bin/woeusbgui'", but that's a different issue.)
found the solution on https://www.youtube.com/watch?v=z915KzZuDmI consider to update your README
I agree that the README needs an update. I ran into the same problem (linux mint) and had to manually track down the missing dependencies.
Solution: https://github.com/wxWidgets/Phoenix/issues/1831#issuecomment-1406729778
found the solution on https://www.youtube.com/watch?v=z915KzZuDmI consider to update your README
`Commands mentioned in the video:
sudo apt update && sudo apt upgrade -y
sudo apt install git p7zip-full python3-wxgtk4.0
git clone https://github.com/WoeUSB/WoeUSB-ng.git cd WoeUSB-ng
sudo apt install build-essential devscripts equivs git p7zip-full python3-all python3-pip python3-setuptools python3-wheel python3-wxgtk4.0
sudo python3 setup.py install`
I got both errors to - the wxpython one, but also the "permission denied". Why is pip install trying to write something in /usr/local/bin ? This makes a venv-only install impossible and is very bad behaviour.