Hi all,
I try to install wxPython4.1 (I use virtualenv) with both methods “from sources” or “pip 3 install wxpython”, but each method failed :
First case : (from sources)
(env4.1) [regis@localhost wxPython-4.1.1a1.dev4723+20a2e9a4]$ python3 build.py build
Traceback (most recent call last):
File "build.py", line 42, in <module>
from buildtools.config import Config, msg, opj, posixjoin, loadETG, etg2sip, findCmd, \
ModuleNotFoundError: No module named 'buildtools'
(env4.1) [regis@localhost wxPython-4.1.1a1.dev4723+20a2e9a4]$
But I previously have installed " pip3 install buildtools "…
Second case : (with pip3 install)
Waf: Leaving directory `/tmp/pip-install-duz2b3fv/wxpython/build/waf/3.7/gtk3'
Build failed
-> task in '_glcanvas' failed with exit status 1 (run with -v to display more information)
-> task in '_glcanvas' failed with exit status 1 (run with -v to display more information)
-> task in '_glcanvas' failed with exit status 1 (run with -v to display more information)
-> task in '_glcanvas' failed with exit status 1 (run with -v to display more information)
Command '"/home/regis/Developpement/Python/GestionConsommation/GestConsoPhoenix4.1.x---1.3.1/env4.1/bin/python3" /tmp/pip-install-duz2b3fv/wxpython/bin/waf-2.0.19 --wx_config=/tmp/pip-install-duz2b3fv/wxpython/build/wxbld/gtk3/wx-config --gtk3 --python="/home/regis/Developpement/Python/GestionConsommation/GestConsoPhoenix4.1.x---1.3.1/env4.1/bin/python3" --out=build/waf/3.7/gtk3 configure build ' failed with exit code 1.
Finished command: build_py (0m5.706s)
Finished command: build (0m7.137s)
Command '"/home/regis/Developpement/Python/GestionConsommation/GestConsoPhoenix4.1.x---1.3.1/env4.1/bin/python3" -u build.py build' failed with exit code 1.
Running setup.py install for wxpython ... error
ERROR: Command errored out with exit status 1: /home/regis/Developpement/Python/GestionConsommation/GestConsoPhoenix4.1.x---1.3.1/env4.1/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-duz2b3fv/wxpython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-duz2b3fv/wxpython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-4up5m198/install-record.txt --single-version-externally-managed --compile --install-headers /home/regis/Developpement/Python/GestionConsommation/GestConsoPhoenix4.1.x---1.3.1/env4.1/include/site/python3.7/wxpython Check the logs for full command output.
I thank you for any clue
Note :
[regis@localhost env4.1]$ source ./bin/activate
(env4.1) [regis@localhost env4.1]$ pip3 list
Package Version
---------------- ----------
attrs 19.3.0
Automat 20.2.0
buildtools 1.0.6
certifi 2020.4.5.1
chardet 3.0.4
constantly 15.1.0
docopt 0.6.2
furl 2.1.0
hyperlink 19.0.0
idna 2.9
incremental 17.5.0
Jinja2 2.11.2
MarkupSafe 1.1.1
numpy 1.18.4
orderedmultidict 1.0.1
Pillow 7.1.2
pip 20.1
PyHamcrest 2.0.2
python-dateutil 2.8.1
redo 2.0.3
requests 2.23.0
setuptools 46.3.0
simplejson 3.17.0
six 1.14.0
SQLAlchemy 1.3.17
Twisted 20.3.0
urllib3 1.25.9
wheel 0.34.2
zope.interface 5.1.0
(env4.1) [regis@localhost env4.1]$ which python3
/home/regis/Developpement/Python/GestionConsommation/GestConsoPhoenix4.1.x---1.3.1/env4.1/bin/python3
(env4.1) [regis@localhost env4.1]$ which pip3
/home/regis/Developpement/Python/GestionConsommation/GestConsoPhoenix4.1.x---1.3.1/env4.1/bin/pip3
(env4.1) [regis@localhost env4.1]$