Hello to the community,
I’ve tried to compile the wxPython-4.2.0 source code on Tumbleweed and it fails. I am including the o/p bellow:
user@pc-116:~> python -m pip install -U wxpython
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
Collecting wxpython
Using cached wxPython-4.2.0.tar.gz (71.0 MB)
Requirement already satisfied, skipping upgrade: pillow in ./.local/lib/python2.7/site-packages (from wxpython) (6.2.2)
Requirement already satisfied, skipping upgrade: six in ./.local/lib/python2.7/site-packages (from wxpython) (1.16.0)
Requirement already satisfied, skipping upgrade: numpy<1.17 in ./.local/lib/python2.7/site-packages (from wxpython) (1.16.6)
Building wheels for collected packages: wxpython
Building wheel for wxpython (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-Q37Cjo/wxpython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-Q37Cjo/wxpython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-E8Cs57
cwd: /tmp/pip-install-Q37Cjo/wxpython/
Complete output (14 lines):
running bdist_wheel
running build
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.
"/usr/bin/python" -u build.py build
File "build.py", line 805
msg(f"CL.exe: {CL}")
^
SyntaxError: invalid syntax
Command '"/usr/bin/python" -u build.py build' failed with exit code 1.
----------------------------------------
ERROR: Failed building wheel for wxpython
Running setup.py clean for wxpython
Failed to build wxpython
Installing collected packages: wxpython
Running setup.py install for wxpython ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-Q37Cjo/wxpython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-Q37Cjo/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-aCO6Hk/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/user/.local/include/python2.7/wxpython
cwd: /tmp/pip-install-Q37Cjo/wxpython/
Complete output (14 lines):
running install
running build
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.
"/usr/bin/python" -u build.py build
File "build.py", line 805
msg(f"CL.exe: {CL}")
^
SyntaxError: invalid syntax
Command '"/usr/bin/python" -u build.py build' failed with exit code 1.
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-Q37Cjo/wxpython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-Q37Cjo/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-aCO6Hk/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/user/.local/include/python2.7/wxpython Check the logs for full command output.
WARNING: You are using pip version 20.0.2; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
user@pc-116:~> python --version
Python 2.7.18
user@pc-116:~> python -m pip --version
pip 20.0.2 from /home/user/.local/lib/python2.7/site-packages/pip (python 2.7)
user@pc-116:~>
The directory ~/.local/include/python2.7/wxpython does not exists after the above process so I cannot access any log files probably from some kind of clean up.
Am I missing something or is a known problem for Tumbleweed?