Hi all,
I’m trying to install wxpython 4.2.0a1 on Mint 21 with python 3.10, but get the error :
3 configure build
Setting top to : /tmp/pip-req-build-k1zreacm
Setting out to : /tmp/pip-req-build-k1zreacm/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' : /home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.9/env4.2.x-py310/bin/python
Checking for python version >= 3.7.0 : 3.10.4
python-config : /usr/bin/python3.10-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.706s)
Waf: Entering directory `/tmp/pip-req-build-k1zreacm/build/waf/3.10/gtk3'
**** Compiler: gcc --version
gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Copyright (C) 2021 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 "/tmp/pip-req-build-k1zreacm/bin/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Scripting.py", line 119, in waf_entry_point
run_commands()
File "/tmp/pip-req-build-k1zreacm/bin/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Scripting.py", line 182, in run_commands
ctx=run_command(cmd_name)
File "/tmp/pip-req-build-k1zreacm/bin/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Scripting.py", line 173, in run_command
ctx.execute()
File "/tmp/pip-req-build-k1zreacm/bin/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Scripting.py", line 375, in execute
return execute_method(self)
File "/tmp/pip-req-build-k1zreacm/bin/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Build.py", line 93, in execute
self.execute_build()
File "/tmp/pip-req-build-k1zreacm/bin/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Build.py", line 96, in execute_build
self.recurse([self.run_dir])
File "/tmp/pip-req-build-k1zreacm/bin/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Context.py", line 133, in recurse
user_function(self)
File "/tmp/pip-req-build-k1zreacm/wscript", line 531, in build
updateLicenseFiles(cfg)
File "/tmp/pip-req-build-k1zreacm/buildtools/config.py", line 1059, in updateLicenseFiles
copy_file(opj('sip', 'siplib', 'LICENSE'), opj('license', 'sip-license.txt'),
File "/home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.9/env4.2.x-py310/lib/python3.10/site-packages/setuptools/_distutils/file_util.py", line 115, in copy_file
raise DistutilsFileError(
distutils.errors.DistutilsFileError: can't copy 'sip/siplib/LICENSE': doesn't exist or not a regular file
Command '"/home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.9/env4.2.x-py310/bin/python" /tmp/pip-req-build-k1zreacm/bin/waf-2.0.22 --wx_config=/tmp/pip-req-build-k1zreacm/build/wxbld/gtk3/wx-config --gtk3 --python="/home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.9/env4.2.x-py310/bin/python" --out=build/waf/3.10/gtk3 configure build ' failed with exit code 2.
Finished command: build_py (0m2.282s)
Finished command: build (11m59.642s)
Command '"/home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.9/env4.2.x-py310/bin/python" -u build.py build' failed with exit code 2.
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 2
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.9/env4.2.x-py310/bin/python -u -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = "<auto-generated setuptools caller>"
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/tmp/pip-req-build-k1zreacm/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' bdist_wheel -d /tmp/pip-wheel-apuh7hr3
cwd: /tmp/pip-req-build-k1zreacm/
Building wheel for wxPython (setup.py): finished with status 'error'
ERROR: Failed building wheel for wxPython
Running setup.py clean for wxPython
Running command python setup.py clean
/home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.9/env4.2.x-py310/lib/python3.10/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead
warnings.warn(
/home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.9/env4.2.x-py310/lib/python3.10/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
/home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.9/env4.2.x-py310/lib/python3.10/site-packages/setuptools/dist.py:317: DistDeprecationWarning: use_2to3 is ignored.
warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
running clean
'build/lib.linux-x86_64-cpython-310' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.10' does not exist -- can't clean it
Failed to build wxPython
ERROR: Failed to build one or more wheels
I installed “pip install attrdict3”, and “pip install sip==5.5.0”, but I can"t achieve to run the installation.
Any idea ?
Thanks for reading