Closed zanseb closed 1 year ago
Have the same Problem with Ubuntu 18.04 and python 3.8.10. I tried the followings and none helped
It's very frustrating :| windows 10, python 3.11.2, wxPython 4.2.1a1 (used whl from Windows artifacts), Ride 2.0. So everything looks fine but I can't open ride.py. Windows is asking me what program to use... so maybe I missed some instaltion step? Anyone has similar problem?
Same problem here: MacOS 13.3.1 pyenv 2.3.17 python 3.11.3 pip 23.1
EDIT: Installing 3.10.3 in pyenv and then installing wxpython with a blank pip list encountered no error.
ios$ pip list | grep attrdict
attrdict 2.0.1
attrdict3 2.0.2
ios$ pip3 install wxpython
Collecting wxpython
Using cached wxPython-4.2.0.tar.gz (71.0 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
Traceback (most recent call last):
File "/Users/ben/.pyenv/versions/3.11.3/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Users/ben/.pyenv/versions/3.11.3/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ben/.pyenv/versions/3.11.3/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/w8/bgzlm3zd5_b7jk2mzv6500zc0000gn/T/pip-build-env-1qj9mh9z/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/w8/bgzlm3zd5_b7jk2mzv6500zc0000gn/T/pip-build-env-1qj9mh9z/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "/private/var/folders/w8/bgzlm3zd5_b7jk2mzv6500zc0000gn/T/pip-build-env-1qj9mh9z/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 488, in run_setup
self).run_setup(setup_script=setup_script)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/w8/bgzlm3zd5_b7jk2mzv6500zc0000gn/T/pip-build-env-1qj9mh9z/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 27, in <module>
File "/private/var/folders/w8/bgzlm3zd5_b7jk2mzv6500zc0000gn/T/pip-install-ucuqdz3y/wxpython_3e6f707860154ef8886201da6a4db4a7/buildtools/config.py", line 30, in <module>
from attrdict import AttrDict
ModuleNotFoundError: No module named 'attrdict'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I met absolutely same happening as above. pls help me find a way to solve it...
I met absolutely same happening as above. pls help me find a way to solve it...
I downgraded to Python 3.10.3 via pyenv and wxpython then installed fine via pip
tks solved it
On my MacBook with OSX 13.3.1 run python3.11.3 (installed with brew). In a virtual environment (with pip and setuptools) I have installed: wheel, six, attrdict3, numpy, Pillow and at the end wxpython. And now, wxpython run :-)
I've got the same trouble on a SuSE Linux (Leap 15.4) with Python 3.10.11 built from source. pip install -v wxPython
leads me directly into a build error:
Running command: build_py
Checking for /tmp/pip-install-uk9gvb8g/wxpython_a0c02055c2ed4fd989fdb55af1dfa75a/bin/waf-2.0.24...
"/home/jacek/bin/tmp/Python-3.10.11/dist/displaycal/bin/python" /tmp/pip-install-uk9gvb8g/wxpython_a0c02055c2ed4fd989fdb55af1dfa75a/bin/waf-2.0.24 --wx_config=/tmp/pip-install-uk9gvb8g/wxpython_a0c02055c2ed4fd989fdb55af1dfa75a/build/wxbld/gtk3/wx-config --gtk3 --python="/home/jacek/bin/tmp/Python-3.10.11/dist/displaycal/bin/python" --out=build/waf/3.10/gtk3 configure build
Setting top to : /tmp/pip-install-uk9gvb8g/wxpython_a0c02055c2ed4fd989fdb55af1dfa75a
Setting out to : /tmp/pip-install-uk9gvb8g/wxpython_a0c02055c2ed4fd989fdb55af1dfa75a/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/jacek/bin/tmp/Python-3.10.11/dist/displaycal/bin/python
Checking for python version >= 3.7.0 : 3.10.11
python-config : not found
Checking for library python3.10 in LIBDIR : yes
Checking for header Python.h : Distutils not installed? Broken python installation? Get python-config now!
The configuration failed
(complete log in /tmp/pip-install-uk9gvb8g/wxpython_a0c02055c2ed4fd989fdb55af1dfa75a/build/waf/3.10/gtk3/config.log)
Command '"/home/jacek/bin/tmp/Python-3.10.11/dist/displaycal/bin/python" /tmp/pip-install-uk9gvb8g/wxpython_a0c02055c2ed4fd989fdb55af1dfa75a/bin/waf-2.0.24 --wx_config=/tmp/pip-install-uk9gvb8g/wxpython_a0c02055c2ed4fd989fdb55af1dfa75a/build/wxbld/gtk3/wx-config --gtk3 --python="/home/jacek/bin/tmp/Python-3.10.11/dist/displaycal/bin/python" --out=build/waf/3.10/gtk3 configure build ' failed with exit code 1.
Finished command: build_py (0m1.30s)
Finished command: build (1m21.724s)
Command '"/home/jacek/bin/tmp/Python-3.10.11/dist/displaycal/bin/python" -u build.py build' failed with exit code 1.
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/jacek/bin/tmp/Python-3.10.11/dist/displaycal/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-install-uk9gvb8g/wxpython_a0c02055c2ed4fd989fdb55af1dfa75a/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' bdist_wheel -d /tmp/pip-wheel-l8bfwyv2
cwd: /tmp/pip-install-uk9gvb8g/wxpython_a0c02055c2ed4fd989fdb55af1dfa75a/
Building wheel for wxPython (setup.py) ... error
ERROR: Failed building wheel for wxPython
Running setup.py clean for wxPython
Running command python setup.py clean
/home/jacek/bin/tmp/Python-3.10.11/dist/displaycal/lib/python3.10/site-packages/setuptools/dist.py:755: SetuptoolsDeprecationWarning: Invalid dash-separated options
opt = self.warn_dash_deprecation(opt, section)
/home/jacek/bin/tmp/Python-3.10.11/dist/displaycal/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
parsed = self.parsers.get(option_name, lambda x: x)(value)
/home/jacek/bin/tmp/Python-3.10.11/dist/displaycal/lib/python3.10/site-packages/setuptools/dist.py:955: DistDeprecationWarning: use_2to3 is ignored.
ep.load()(self, ep.name, value)
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: Could not build wheels for wxPython, which is required to install pyproject.toml-based projects
@JacekRuzyczka, from your log:
python-config : not found
The build process couldn't find python-config
. You need to ensure your built python-config is in your path.
On my MacBook with OSX 13.3.1 run python3.11.3 (installed with brew). In a virtual environment (with pip and setuptools) I have installed: wheel, six, attrdict3, numpy, Pillow and at the end wxpython. And now, wxpython run :-)
This worked for me.
I'm also facing same issue. os: windows 11 python version: 3.11.3
C:\Users\abhishek>pip install wxPython
Defaulting to user installation because normal site-packages is not writeable
Collecting wxPython
Using cached wxPython-4.2.0.tar.gz (71.0 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
Traceback (most recent call last):
File "C:\Users\abhishek\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\abhishek\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\abhishek\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\abhishek\AppData\Local\Temp\pip-build-env-1j3p841k\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\abhishek\AppData\Local\Temp\pip-build-env-1j3p841k\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "C:\Users\abhishek\AppData\Local\Temp\pip-build-env-1j3p841k\overlay\Lib\site-packages\setuptools\build_meta.py", line 488, in run_setup
self).run_setup(setup_script=setup_script)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\abhishek\AppData\Local\Temp\pip-build-env-1j3p841k\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 27, in <module>
File "C:\Users\abhishek\AppData\Local\Temp\pip-install-gz4amqb2\wxpython_8c929cd901fb41b093783e3e0d9335fb\buildtools\config.py", line 30, in <module>
from attrdict import AttrDict
ModuleNotFoundError: No module named 'attrdict'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Can anyone tell? how to install note: i already installed attrdict3 before installing wx-python
For what it's worth, I just wanted to say what worked for me:
I'm currently running a macOS Ventura 13.4, and my Python version is 3.11.3. I was trying to install MAVProxy, which has wxPython as one of its requirements I believe. And so I was running into the error of "metadata-generation-failed", to which I tried manually running pip install attrdict
and also pip install attrdict3
. Didn't work. So what I did was I manually pip uninstall attrdict
& pip uninstall attrdict3
, then reinstalled them manually (pip install attrdict
& pip install attrdict3
) to which my wxPython installed perfectly (after running pip install MAVProxy
)
@sabdulmajid I haven't install attrdict, so it wasn't presented in my packeges. as i install attrdict3, it still gives the error. I think main problem is with attrdict3 module. I have tried to import it in normal file, still it gives same error, "module not found" Maybe in mac its not the issue, but in windows i'm facing this. I'm using windows 11.
@swt2c python-config
is already installed on my system! Path: /home/jacek/bin/tmp/Python-3.10.11/build/python-config
@JacekRuzyczka make sure it is in your $PATH.
@swt2c can you look this also?
@swt2c can you look this also?
If you have attrdict3 installed (before trying to install wxPython, not at the same time), then I don't have any ideas for you.
If you have attrdict3 installed (before trying to install wxPython, not at the same time), then I don't have any ideas for you.
Then let's wait for the official release...
If you have attrdict3 installed (before trying to install wxPython, not at the same time), then I don't have any ideas for you.
Then let's wait for the official release...
Any idea when?
It's absolutely ridiculous that this is still an issue. Python 3.11 was released in October of last year. It's been over half a year, and people still have to do weird workarounds and hacks that A) they shouldn't have to do and B) that only work half the time. "So you have to install this, then that, then this, then open a particular command prompt and then it might work" is an absolutely awful developer experience. If I publish a project on GitHub, my users shouldn't have to install either an older version of this library or an older version of Python just to run my code, especially not when it's an actively maintained library. Utterly incompetent.
[# Gabry B:] Totally AGREE you with you.
So the question could be: is there something we could do to ask DEVs to normalize this situation?
Maybe collecting signatures and send a petition?
New release 4.2.1 has been made with Python 3.11 wheels.
Hello all, I am also trying to install wxPython on Python 3.11 (Windows 10).
I tried pip install wxPython==4.2.1 but still did not work.
I need it to use eelbrain.
However, I tried to install all dependenices but wxPython still fails to build.
DId someone find out a complete solution? I read the entire thread but not finding one fitting for me.
Here the output:
Checking for /tmp/pip-install-13lmk9pv/wxpython_ada4d602cbc340e4842654cc3fdb6de5/bin/waf-2.0.19...
"/home/ru74yig/CHI24_VisualSearch/chi24_VisualSearch/bin/python3.11" /tmp/pip-install-13lmk9pv/wxpython_ada4d602cbc340e4842654cc3fdb6de5/bin/waf-2.0.19 --wx_config=/tmp/pip-install-13lmk9pv/wxpython_ada4d602cbc340e4842654cc3fdb6de5/build/wxbld/gtk3/wx-config --gtk3 --python="/home/ru74yig/CHI24_VisualSearch/chi24_VisualSearch/bin/python3.11" --out=build/waf/3.1/gtk3 configure build
Setting top to : /tmp/pip-install-13lmk9pv/wxpython_ada4d602cbc340e4842654cc3fdb6de5
Setting out to : /tmp/pip-install-13lmk9pv/wxpython_ada4d602cbc340e4842654cc3fdb6de5/build/waf/3.1/gtk3
Checking for 'gcc' (C compiler) : /bin/gcc
Checking for 'g++' (C++ compiler) : /bin/g++
Checking for program 'python' : /home/ru74yig/CHI24_VisualSearch/chi24_VisualSearch/bin/python3.11
Checking for python version >= 2.7.0 : 3.11.1
python-config : /opt/jupyterhub/bin/python3.11-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.244s)
Waf: Entering directory `/tmp/pip-install-13lmk9pv/wxpython_ada4d602cbc340e4842654cc3fdb6de5/build/waf/3.1/gtk3'
**** Compiler: /bin/gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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.
[ 1/921] Compiling sip/siplib/qtlib.c
[ 2/921] Compiling sip/siplib/bool.cpp
[ 3/921] Compiling sip/siplib/apiversions.c
[ 4/921] Compiling sip/siplib/objmap.c
[ 5/921] Compiling sip/siplib/voidptr.c
[ 6/921] Compiling sip/siplib/int_convertors.c
[ 7/921] Compiling sip/siplib/array.c
[ 8/921] Compiling sip/siplib/threads.c
[ 9/921] Compiling sip/siplib/descriptors.c
[ 10/921] Compiling sip/siplib/siplib.c
../../../../sip/siplib/siplib.c: In function ‘sip_api_get_frame’:
../../../../sip/siplib/siplib.c:13750:22: error: invalid use of undefined type ‘struct _frame’
13750 | frame = frame->f_back;
| ^~
Waf: Leaving directory `/tmp/pip-install-13lmk9pv/wxpython_ada4d602cbc340e4842654cc3fdb6de5/build/waf/3.1/gtk3'
Build failed
-> task in 'siplib' failed with exit status 1 (run with -v to display more information)
Command '"/home/ru74yig/CHI24_VisualSearch/chi24_VisualSearch/bin/python3.11" /tmp/pip-install-13lmk9pv/wxpython_ada4d602cbc340e4842654cc3fdb6de5/bin/waf-2.0.19 --wx_config=/tmp/pip-install-13lmk9pv/wxpython_ada4d602cbc340e4842654cc3fdb6de5/build/wxbld/gtk3/wx-config --gtk3 --python="/home/ru74yig/CHI24_VisualSearch/chi24_VisualSearch/bin/python3.11" --out=build/waf/3.1/gtk3 configure build ' failed with exit code 1.
Finished command: build_py (0m2.222s)
Finished command: build (1m8.46s)
Command '"/home/ru74yig/CHI24_VisualSearch/chi24_VisualSearch/bin/python3.11" -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
Running setup.py clean for wxPython
Failed to build wxPython
ERROR: Could not build wheels for wxPython, which is required to install pyproject.toml-based projects
What happened when you tried to install wxPython 4.2.1? The log above is not from 4.2.1. Releases older than 4.2.1 will not work with Python 3.11.
Apologies for the confusing report.
Here is the terminal output when I try with: pip install wxpython==4.2.1
It seems an issue with building the wheel, as before showing the log it takes some minutes.
/home/ru74yig/CHI24_VisualSearch/chi24_VisualSearch/bin/python3.11 setup-wxsvg.py build_ext --inplace
Compiling wx/svg/_nanosvg.pyx because it changed.
[1/1] Cythonizing wx/svg/_nanosvg.pyx
Error compiling Cython file:
------------------------------------------------------------
...
for manipulating the SVG shape info in memory.
"""
import sys
cimport cython.object
^
------------------------------------------------------------
wx/svg/_nanosvg.pyx:45:8: 'cython.object' is not a valid cython.* module
Traceback (most recent call last):
File "/tmp/pip-install-z3925wux/wxpython_ca98f6b81e0545229acf2e5ced415b12/setup-wxsvg.py", line 54, in <module>
modules = cythonize([module],
^^^^^^^^^^^^^^^^^^^
File "/home/ru74yig/CHI24_VisualSearch/chi24_VisualSearch/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
cythonize_one(*args)
File "/home/ru74yig/CHI24_VisualSearch/chi24_VisualSearch/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: wx/svg/_nanosvg.pyx
Command '/home/ru74yig/CHI24_VisualSearch/chi24_VisualSearch/bin/python3.11 setup-wxsvg.py build_ext --inplace' failed with exit code 1.
Finished command: build_others (0.785s)
Finished command: build_py (2m4.637s)
Finished command: build (3m7.882s)
Command '"/home/ru74yig/CHI24_VisualSearch/chi24_VisualSearch/bin/python3.11" -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
Running setup.py clean for wxpython
Failed to build wxpython
Are you sure that's Windows? It sure looks like Linux. In any event, you're seeing an error when building with newer Cython (that I've already fixed but not in a new release). You can try pip install cython==0.29.36
and then try installing wxPython.
It did the job, thank you! 🥳
hi am using Python 3.7.8 and try to install pip install -U wxPython but results in the below ,could anyone help me Collecting numpy (from wxPython) Using cached numpy-1.21.6-cp37-cp37m-win_amd64.whl (14.0 MB) 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 ╰─> [33 lines of output] running bdist_wheel running build Will build using: "C:\Users\AppData\Local\Programs\Python\Python37\python.exe" 3.7.8 (tags/v3.7.8:4b47a5b6ba, Jun 28 2020, 08:53:46) [MSC v.1916 64 bit (AMD64)] Python's architecture is 64bit cfg.VERSION: 4.2.1
Running command: build
Running command: build_wx
Traceback (most recent call last):
File "build.py", line 2377, in <module>
main(sys.argv[1:])
File "build.py", line 208, in main
function(options, args)
File "build.py", line 1452, in cmd_build
cmd_build_wx(options, args)
File "build.py", line 1462, in cmd_build_wx
checkCompiler()
File "build.py", line 795, in checkCompiler
info = getMSVCInfo(PYTHON, arch, set_env=True)
File "C:\Users\AppData\Local\Temp\pip-install-m0okaqyh\wxpython_3fa8c68b405f4f94bcc736954a60ad78\buildtools\config.py", line 993, in getMSVCInfo
from attrdict import AttrDict
ModuleNotFoundError: No module named 'attrdict'
Finished command: build_wx (0.0s)
Finished command: build (0.0s)
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.
"C:\Users\python.exe" -u build.py build
Command '"C:\Users\AppData\Local\Programs\Python\Python37\python.exe" -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: Could not build wheels for wxPython, which is required to install pyproject.toml-based projects
hi am using Python 3.7.8 and try to install pip install -U wxPython
I would recommend upgrading your Python version. Python 3.7 is end of life and we don't have wheels for it anymore.
Operating system: Windows 11 21h2 wxPython version & source: 4.2.0, pip Python version & source: 3.11, stock
Description of the problem: It is possible to download wxPython 4.2.0 with python 3.11, but the installation fails with the following error.
I tried with both package attrdict and attrdict3 Everything works as expected with py310, even w/o the attrdict package.