WoeUSB-ng icon indicating copy to clipboard operation
WoeUSB-ng copied to clipboard

Can't install because building wxPython failed

Open BombFoolGranny opened this issue 1 year ago • 6 comments

  • [x] I've searched the issue tracker and is pretty sure that there's no duplicate issue already filed

Issue Reproduce Instructions

  1. 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)

BombFoolGranny avatar Jan 02 '25 17:01 BombFoolGranny

Might be useful to read this article and this github issue

BombFoolGranny avatar Jan 02 '25 18:01 BombFoolGranny

Accidentally closed the issue

BombFoolGranny avatar Jan 02 '25 18:01 BombFoolGranny

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.)

Enpheebled avatar Mar 28 '25 23:03 Enpheebled

found the solution on https://www.youtube.com/watch?v=z915KzZuDmI consider to update your README

thtrai avatar May 17 '25 22:05 thtrai

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

AntonisPylos avatar Jan 14 '26 16:01 AntonisPylos

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.

eingemaischt avatar Jan 28 '26 08:01 eingemaischt