I’m in Ubuntu Noble (24.04) and in the desktop environment lxqt.
I’m trying to run “Playonlinux” but not all the dependencies were installed when I installed the package.
Here is the scrollback for when I tried to get it set up:
C:\home\james> /usr/bin/playonlinux
Looking for python3... 3.12.7 - Traceback (most recent call last):
File "/usr/share/playonlinux/python/check_python.py", line 3, in <module>
import wx
ModuleNotFoundError: No module named 'wx'
failed tests
Looking for python... 3.12.7 - Traceback (most recent call last):
File "/usr/share/playonlinux/python/check_python.py", line 3, in <module>
import wx
ModuleNotFoundError: No module named 'wx'
failed tests
Looking for python2.7... python2 and python3 to be found. - unexpected version
Looking for python2.6...
Looking for python2... python2 and python3 to be found. - unexpected version
Please install python before trying to run this program
C:\home\james> python
Python 3.12.7 | packaged by Anaconda, Inc. | (main, Oct 4 2024, 13:27:36) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
C:\home\james> pipx install wx
Command 'pipx' not found, but can be installed with:
sudo apt install pipx
C:\home\james> sudo apt install pipx
[sudo] password for james:
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1332323 (synaptic)
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1332323 (synaptic)
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1332323 (synaptic)
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1332323 (synaptic)
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1332323 (synaptic)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
python3-argcomplete python3-pip-whl python3-platformdirs python3-psutil python3-setuptools-whl python3-userpath
python3-venv python3.12-venv
The following NEW packages will be installed:
pipx python3-argcomplete python3-pip-whl python3-platformdirs python3-psutil python3-setuptools-whl
python3-userpath python3-venv python3.12-venv
0 upgraded, 9 newly installed, 0 to remove and 121 not upgraded.
Need to get 3,467 kB of archives.
After this operation, 7,642 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu noble-updates/universe amd64 python3-pip-whl all 24.0+dfsg-1ubuntu1.1 [1,703 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu noble-updates/universe amd64 python3-setuptools-whl all 68.1.2-2ubuntu1.1 [716 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu noble-updates/universe amd64 python3.12-venv amd64 3.12.3-1ubuntu0.5 [5,678 B]
Get:4 http://us.archive.ubuntu.com/ubuntu noble-updates/universe amd64 python3-venv amd64 3.12.3-0ubuntu2 [1,034 B]
Get:5 http://us.archive.ubuntu.com/ubuntu noble-updates/universe amd64 python3-argcomplete all 3.1.4-1ubuntu0.1 [33.8 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu noble/main amd64 python3-platformdirs all 4.2.0-1 [16.1 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu noble/universe amd64 python3-userpath all 1.9.1-1 [9,416 B]
Get:8 http://us.archive.ubuntu.com/ubuntu noble/universe amd64 pipx all 1.4.3-1 [787 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu noble/main amd64 python3-psutil amd64 5.9.8-2build2 [195 kB]
Fetched 3,467 kB in 2s (2,139 kB/s)
Selecting previously unselected package python3-pip-whl.
(Reading database ... 338806 files and directories currently installed.)
Preparing to unpack .../0-python3-pip-whl_24.0+dfsg-1ubuntu1.1_all.deb ...
Unpacking python3-pip-whl (24.0+dfsg-1ubuntu1.1) ...
Selecting previously unselected package python3-setuptools-whl.
Preparing to unpack .../1-python3-setuptools-whl_68.1.2-2ubuntu1.1_all.deb ...
Unpacking python3-setuptools-whl (68.1.2-2ubuntu1.1) ...
Selecting previously unselected package python3.12-venv.
Preparing to unpack .../2-python3.12-venv_3.12.3-1ubuntu0.5_amd64.deb ...
Unpacking python3.12-venv (3.12.3-1ubuntu0.5) ...
Selecting previously unselected package python3-venv.
Preparing to unpack .../3-python3-venv_3.12.3-0ubuntu2_amd64.deb ...
Unpacking python3-venv (3.12.3-0ubuntu2) ...
Selecting previously unselected package python3-argcomplete.
Preparing to unpack .../4-python3-argcomplete_3.1.4-1ubuntu0.1_all.deb ...
Unpacking python3-argcomplete (3.1.4-1ubuntu0.1) ...
Selecting previously unselected package python3-platformdirs.
Preparing to unpack .../5-python3-platformdirs_4.2.0-1_all.deb ...
Unpacking python3-platformdirs (4.2.0-1) ...
Selecting previously unselected package python3-userpath.
Preparing to unpack .../6-python3-userpath_1.9.1-1_all.deb ...
Unpacking python3-userpath (1.9.1-1) ...
Selecting previously unselected package pipx.
Preparing to unpack .../7-pipx_1.4.3-1_all.deb ...
Unpacking pipx (1.4.3-1) ...
Selecting previously unselected package python3-psutil.
Preparing to unpack .../8-python3-psutil_5.9.8-2build2_amd64.deb ...
Unpacking python3-psutil (5.9.8-2build2) ...
Setting up python3-setuptools-whl (68.1.2-2ubuntu1.1) ...
Setting up python3-pip-whl (24.0+dfsg-1ubuntu1.1) ...
Setting up python3-platformdirs (4.2.0-1) ...
Setting up python3-psutil (5.9.8-2build2) ...
Setting up python3-argcomplete (3.1.4-1ubuntu0.1) ...
Setting up python3-userpath (1.9.1-1) ...
Setting up python3.12-venv (3.12.3-1ubuntu0.5) ...
Setting up python3-venv (3.12.3-0ubuntu2) ...
Setting up pipx (1.4.3-1) ...
Processing triggers for man-db (2.12.0-4build2) ...
C:\home\james> pipx install wx
Traceback (most recent call last):
File "/usr/bin/pipx", line 8, in <module>
sys.exit(cli())
^^^^^
File "/usr/lib/python3/dist-packages/pipx/main.py", line 921, in cli
return run_pipx_command(parsed_pipx_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pipx/main.py", line 219, in run_pipx_command
return commands.install(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pipx/commands/install.py", line 87, in install
venv.create_venv(venv_args, pip_args, override_shared)
File "/usr/lib/python3/dist-packages/pipx/venv.py", line 163, in create_venv
shared_libs.create(self.verbose)
File "/usr/lib/python3/dist-packages/pipx/shared_libs.py", line 44, in create
if not self.is_valid:
^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pipx/shared_libs.py", line 57, in is_valid
out = run_subprocess(
^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pipx/util.py", line 179, in run_subprocess
completed_process = subprocess.run(
^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/james/.local/share/pipx/shared/bin/python'
C:\home\james> python -m venv myenv
C:\home\james> source myenv/bin/activate
(myenv) C:\home\james> pip install wx
WARNING: Ignoring invalid distribution ~penai-whisper (/home/james/myenv/lib/python3.12/site-packages)
ERROR: Could not find a version that satisfies the requirement wx (from versions: none)
ERROR: No matching distribution found for wx
(myenv) C:\home\james> pip install wxPython
WARNING: Ignoring invalid distribution ~penai-whisper (/home/james/myenv/lib/python3.12/site-packages)
Collecting wxPython
Downloading wxPython-4.2.3.tar.gz (58.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.9/58.9 MB 9.9 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: wxPython
Building wheel for wxPython (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for wxPython (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [160 lines of output]
/tmp/pip-build-env-fy949jhb/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
dist._finalize_license_expression()
/tmp/pip-build-env-fy949jhb/overlay/lib/python3.12/site-packages/setuptools/dist.py:761: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
Will build using: "/home/james/myenv/bin/python3"
3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0]
Python's architecture is 64bit
cfg.VERSION: 4.2.3
Running command: build
Running command: build_wx
wxWidgets build options: ['--wxpython', '--unicode', '--gtk3']
Configure options: ['--enable-unicode', '--with-gtk=3', '--enable-sound', '--enable-graphics_ctx', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--enable-autoidman', '--with-sdl']
/tmp/pip-install-n7yjj7w9/wxpython_011e7ecdadf84996b403c6549b32e441/ext/wxWidgets/configure --enable-unicode --with-gtk=3 --enable-sound --enable-graphics_ctx --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --enable-autoidman --with-sdl
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for toolkit... gtk
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether we are using the Intel C compiler... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether we are using the Intel C++ compiler... no
checking whether we are using the Sun C++ compiler... no
checking for ar... ar
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for langinfo.h... yes
checking for wchar.h... yes
checking for sys/select.h... yes
checking for cxxabi.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking size of short... 2
checking size of void *... 8
checking size of int... 4
checking size of long... 8
checking size of size_t... 8
checking size of long long... 8
checking size of wchar_t... 4
checking for va_copy... yes
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking if large file support is available... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether byte ordering is bigendian... no
checking for std::wstring in <string>... yes
checking for std::istream... yes
checking for std::ostream... yes
checking for type_traits... yes
checking for __sync_xxx_and_fetch builtins... yes
checking for libraries directories... /usr/lib/x86_64-linux-gnu /usr/lib
checking for cos... no
checking for floor... no
checking if floating point functions link without -lm... no
checking for sin... yes
checking for ceil... yes
checking if floating point functions link with -lm... yes
checking for strtoull... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBPCRE... yes
checking for zlib.h >= 1.1.4... yes
checking for zlib.h... (cached) yes
checking for deflate in -lz... yes
checking for png.h > 0.90... no
checking for png.h... (cached) no
configure: WARNING: system png library not found or too old, will use built-in instead
checking whether png.c file exists... yes
checking for jpeglib.h... no
configure: WARNING: system jpeg library not found, will use built-in instead
checking whether jpeglib.h file exists... yes
checking for jbg_dec_init in -ljbig... no
checking for LIBTIFF... not found via pkg-config
checking for tiffio.h... no
configure: WARNING: system tiff library not found, will use built-in instead
checking whether tiff.h file exists... yes
checking for expat.h... no
configure: WARNING: system expat library not found, will use built-in instead
checking whether expat.h file exists... yes
checking for gcc option to accept ISO C99... none needed
checking for LIBCURL... not found
checking for GTK+ version...
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GTK+ - version >= 3.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occurred. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.
Error running configure
ERROR: failed building wxWidgets
Traceback (most recent call last):
File "/tmp/pip-install-n7yjj7w9/wxpython_011e7ecdadf84996b403c6549b32e441/build.py", line 1607, in cmd_build_wx
wxbuild.main(wxDir(), build_options)
File "/tmp/pip-install-n7yjj7w9/wxpython_011e7ecdadf84996b403c6549b32e441/buildtools/build_wxwidgets.py", line 383, in main
exitIfError(wxBuilder.configure(dir=wxRootDir, options=configure_opts, env=env),
File "/tmp/pip-install-n7yjj7w9/wxpython_011e7ecdadf84996b403c6549b32e441/buildtools/build_wxwidgets.py", line 70, in exitIfError
raise builder.BuildError(msg)
buildtools.builder.BuildError: Error running configure
Finished command: build_wx (0m7.201s)
Finished command: build (0m7.201s)
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
--skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.
"/home/james/myenv/bin/python3" -u build.py build
Command '"/home/james/myenv/bin/python3" -u build.py build' failed with exit code 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for wxPython
Failed to build wxPython
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (wxPython)
(myenv) C:\home\james> sudo apt install gtk+-2.0.pc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package gtk+-2.0.pc
E: Couldn't find any package by glob 'gtk+-2.0.pc'
(myenv) C:\home\james> pip install wxPython
WARNING: Ignoring invalid distribution ~penai-whisper (/home/james/myenv/lib/python3.12/site-packages)
Collecting wxPython
Using cached wxPython-4.2.3.tar.gz (58.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: wxPython
Building wheel for wxPython (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for wxPython (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [154 lines of output]
/tmp/pip-build-env-npnjrl0c/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
dist._finalize_license_expression()
/tmp/pip-build-env-npnjrl0c/overlay/lib/python3.12/site-packages/setuptools/dist.py:761: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
Will build using: "/home/james/myenv/bin/python3"
3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0]
Python's architecture is 64bit
cfg.VERSION: 4.2.3
Running command: build
Running command: build_wx
wxWidgets build options: ['--wxpython', '--unicode', '--gtk3']
Configure options: ['--enable-unicode', '--with-gtk=3', '--enable-sound', '--enable-graphics_ctx', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--enable-autoidman', '--with-sdl']
/tmp/pip-install-e8wvm_6k/wxpython_b2271fd5f1f6486b93b2830b3fd7f72c/ext/wxWidgets/configure --enable-unicode --with-gtk=3 --enable-sound --enable-graphics_ctx --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --enable-autoidman --with-sdl
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for toolkit... gtk
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether we are using the Intel C compiler... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether we are using the Intel C++ compiler... no
checking whether we are using the Sun C++ compiler... no
checking for ar... ar
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for langinfo.h... yes
checking for wchar.h... yes
checking for sys/select.h... yes
checking for cxxabi.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking size of short... 2
checking size of void *... 8
checking size of int... 4
checking size of long... 8
checking size of size_t... 8
checking size of long long... 8
checking size of wchar_t... 4
checking for va_copy... yes
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking if large file support is available... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether byte ordering is bigendian... no
checking for std::wstring in <string>... yes
checking for std::istream... yes
checking for std::ostream... yes
checking for type_traits... yes
checking for __sync_xxx_and_fetch builtins... yes
checking for libraries directories... /usr/lib/x86_64-linux-gnu /usr/lib
checking for cos... no
checking for floor... no
checking if floating point functions link without -lm... no
checking for sin... yes
checking for ceil... yes
checking if floating point functions link with -lm... yes
checking for strtoull... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBPCRE... yes
checking for zlib.h >= 1.1.4... yes
checking for zlib.h... (cached) yes
checking for deflate in -lz... yes
checking for png.h > 0.90... yes
checking for png.h... (cached) yes
checking for png_sig_cmp in -lpng... yes
checking for jpeglib.h... yes
checking for jpeg_read_header in -ljpeg... yes
checking for jbg_dec_init in -ljbig... yes
checking for LIBTIFF... yes
checking for expat.h... yes
checking if expat.h is valid C++ header... yes
checking for XML_ParserCreate in -lexpat... yes
checking for LIBCURL... not found
checking for GTK+ version...
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GTK+ - version >= 3.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occurred. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.
Error running configure
ERROR: failed building wxWidgets
Traceback (most recent call last):
File "/tmp/pip-install-e8wvm_6k/wxpython_b2271fd5f1f6486b93b2830b3fd7f72c/build.py", line 1607, in cmd_build_wx
wxbuild.main(wxDir(), build_options)
File "/tmp/pip-install-e8wvm_6k/wxpython_b2271fd5f1f6486b93b2830b3fd7f72c/buildtools/build_wxwidgets.py", line 383, in main
exitIfError(wxBuilder.configure(dir=wxRootDir, options=configure_opts, env=env),
File "/tmp/pip-install-e8wvm_6k/wxpython_b2271fd5f1f6486b93b2830b3fd7f72c/buildtools/build_wxwidgets.py", line 70, in exitIfError
raise builder.BuildError(msg)
buildtools.builder.BuildError: Error running configure
Finished command: build_wx (0m6.739s)
Finished command: build (0m6.739s)
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
--skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.
"/home/james/myenv/bin/python3" -u build.py build
Command '"/home/james/myenv/bin/python3" -u build.py build' failed with exit code 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for wxPython
Failed to build wxPython
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (wxPython)
(myenv) C:\home\james> pip install wxPython
WARNING: Ignoring invalid distribution ~penai-whisper (/home/james/myenv/lib/python3.12/site-packages)
Collecting wxPython
Using cached wxPython-4.2.3.tar.gz (58.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: wxPython
Building wheel for wxPython (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for wxPython (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [154 lines of output]
/tmp/pip-build-env-smhmndhc/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
dist._finalize_license_expression()
/tmp/pip-build-env-smhmndhc/overlay/lib/python3.12/site-packages/setuptools/dist.py:761: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
Will build using: "/home/james/myenv/bin/python3"
3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0]
Python's architecture is 64bit
cfg.VERSION: 4.2.3
Running command: build
Running command: build_wx
wxWidgets build options: ['--wxpython', '--unicode', '--gtk3']
Configure options: ['--enable-unicode', '--with-gtk=3', '--enable-sound', '--enable-graphics_ctx', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--enable-autoidman', '--with-sdl']
/tmp/pip-install-1ozwqcv6/wxpython_419f61b2cf234d84b686ef25da991790/ext/wxWidgets/configure --enable-unicode --with-gtk=3 --enable-sound --enable-graphics_ctx --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --enable-autoidman --with-sdl
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for toolkit... gtk
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether we are using the Intel C compiler... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether we are using the Intel C++ compiler... no
checking whether we are using the Sun C++ compiler... no
checking for ar... ar
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for langinfo.h... yes
checking for wchar.h... yes
checking for sys/select.h... yes
checking for cxxabi.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking size of short... 2
checking size of void *... 8
checking size of int... 4
checking size of long... 8
checking size of size_t... 8
checking size of long long... 8
checking size of wchar_t... 4
checking for va_copy... yes
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking if large file support is available... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether byte ordering is bigendian... no
checking for std::wstring in <string>... yes
checking for std::istream... yes
checking for std::ostream... yes
checking for type_traits... yes
checking for __sync_xxx_and_fetch builtins... yes
checking for libraries directories... /usr/lib/x86_64-linux-gnu /usr/lib
checking for cos... no
checking for floor... no
checking if floating point functions link without -lm... no
checking for sin... yes
checking for ceil... yes
checking if floating point functions link with -lm... yes
checking for strtoull... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBPCRE... yes
checking for zlib.h >= 1.1.4... yes
checking for zlib.h... (cached) yes
checking for deflate in -lz... yes
checking for png.h > 0.90... yes
checking for png.h... (cached) yes
checking for png_sig_cmp in -lpng... yes
checking for jpeglib.h... yes
checking for jpeg_read_header in -ljpeg... yes
checking for jbg_dec_init in -ljbig... yes
checking for LIBTIFF... yes
checking for expat.h... yes
checking if expat.h is valid C++ header... yes
checking for XML_ParserCreate in -lexpat... yes
checking for LIBCURL... not found
checking for GTK+ version...
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GTK+ - version >= 3.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occurred. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.
Error running configure
ERROR: failed building wxWidgets
Traceback (most recent call last):
File "/tmp/pip-install-1ozwqcv6/wxpython_419f61b2cf234d84b686ef25da991790/build.py", line 1607, in cmd_build_wx
wxbuild.main(wxDir(), build_options)
File "/tmp/pip-install-1ozwqcv6/wxpython_419f61b2cf234d84b686ef25da991790/buildtools/build_wxwidgets.py", line 383, in main
exitIfError(wxBuilder.configure(dir=wxRootDir, options=configure_opts, env=env),
File "/tmp/pip-install-1ozwqcv6/wxpython_419f61b2cf234d84b686ef25da991790/buildtools/build_wxwidgets.py", line 70, in exitIfError
raise builder.BuildError(msg)
buildtools.builder.BuildError: Error running configure
Finished command: build_wx (0m6.763s)
Finished command: build (0m6.763s)
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
--skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.
"/home/james/myenv/bin/python3" -u build.py build
Command '"/home/james/myenv/bin/python3" -u build.py build' failed with exit code 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for wxPython
Failed to build wxPython
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (wxPython)
(myenv) C:\home\james> conda install wxpython
Retrieving notices: ...working... done
Channels:
- defaults
- anaconda
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: / warning libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed
LibMambaUnsatisfiableError: Encountered problems while solving:
- nothing provides openssl >=1.1.1,<1.1.2.0a0 needed by python-2.7.15-h9bab390_2
Could not solve for environment specs
The following packages are incompatible
├─ pin-1 is installable and it requires
│ └─ python 3.12.* , which can be installed;
└─ wxpython is not installable because there are no viable options
├─ wxpython [4.0.1|4.0.2|4.0.3|4.0.4] would require
│ └─ python >=2.7,<2.8.0a0 but there are no viable options
│ ├─ python [2.7.13|2.7.14|...|2.7.18] conflicts with any installable versions previously reported;
│ └─ python [2.7.15|3.6.7|3.7.1] would require
│ └─ openssl >=1.1.1,<1.1.2.0a0 , which does not exist (perhaps a missing channel);
├─ wxpython [4.0.1|4.0.2|4.0.3] would require
│ └─ python >=3.5,<3.6.0a0 , which conflicts with any installable versions previously reported;
├─ wxpython [4.0.1|4.0.2|4.0.3|4.0.4] would require
│ └─ python >=3.6,<3.7.0a0 but there are no viable options
│ ├─ python [2.7.15|3.6.7|3.7.1], which cannot be installed (as previously explained);
│ └─ python [3.6.10|3.6.12|...|3.6.9] conflicts with any installable versions previously reported;
└─ wxpython [4.0.2|4.0.3|4.0.4] would require
└─ python >=3.7,<3.8.0a0 but there are no viable options
├─ python [2.7.15|3.6.7|3.7.1], which cannot be installed (as previously explained);
└─ python [3.7.0|3.7.1|...|3.7.9] conflicts with any installable versions previously reported.
(myenv) C:\home\james>
from another terminal:
C:\home\james> sudo synaptic
[sudo] password for james:
C:\home\james> sudo apt install pkg-config libgtk2.0-dev build-essential
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
pkg-config is already the newest version (1.8.1-2build1).
libgtk2.0-dev is already the newest version (2.24.33-4ubuntu1.1).
build-essential is already the newest version (12.10ubuntu1).
build-essential set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 121 not upgraded.
C:\home\james> sudo apt install libglib2.0-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libglib2.0-dev is already the newest version (2.80.0-6ubuntu3.2).
libglib2.0-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 121 not upgraded.
C:\home\james> sudo apt install libglib2.0-dev;sudo apt install --reinstall libgtk2.0-dev
sudo apt build‑dep libgtk2.0-0
[sudo] password for james:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libglib2.0-dev is already the newest version (2.80.0-6ubuntu3.2).
0 upgraded, 0 newly installed, 0 to remove and 121 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 121 not upgraded.
Need to get 0 B/779 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 341968 files and directories currently installed.)
Preparing to unpack .../libgtk2.0-dev_2.24.33-4ubuntu1.1_amd64.deb ...
Unpacking libgtk2.0-dev:amd64 (2.24.33-4ubuntu1.1) over (2.24.33-4ubuntu1.1) ...
Setting up libgtk2.0-dev:amd64 (2.24.33-4ubuntu1.1) ...
Processing triggers for man-db (2.12.0-4build2) ...
E: Invalid operation build‑dep
C:\home\james> sudo apt-get build‑dep libgtk2.0-0
E: Invalid operation build‑dep
C:\home\james>
I’m not in windows, I just have my linux showing C:.