New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build wxpython on Debian, MX-21, Ubuntu 22.04 failed #2529
Comments
Please read the documentation, specifically the instructions about building from a totally clean git workspace: https://github.com/wxWidgets/Phoenix/blob/master/README.rst#example-build-command-lines |
Same result as before on a fresh git clone --recurse-submodules with 'python build.py dox etg --nodoc sip build'!
Commenting out line 1062 in buildtools/config.py and made a 'touch license/sip-license.txt' resolves the problem. A LICENSE file in sip/siplib don't resolves it, because it is deleted with every new build. After that, the build with 'python3 build.py --gtk3 --use_syswx build_py' is ok. |
What version of sip did you use? Currently we build with 6.8.3. |
It's sip 6.8.3. The header of all files in sip/cpp shows 'Generated by SIP 6.8.3 and all tools like sip-distinfo, sip-build shows also 6.8.3 Where comes the file LICENSE from? I can't find a file with this name in any Python relevant folder or the Phoenix folder (only for src/png and src/zlib in ext/wxWidgets) Do you have a suggestion for the original path? |
It's generated during the build during this step: |
Okay, I pull again from github and log the build process. The log is attached. After build the tar archive in /tmp is deleted, so I try
It seems, there is no LICENSE file. I'm not a Python programmer, I need a actually wxWidgets and wxPython to build KiCad-8.0.0-RC2. I am a developer for Hardware and Microcontrollers ;-) |
That is really strange.
|
I am not sure what the difference could be. setuptools version perhaps? What version of setuptools are you using? |
I think it was setuptools. I read something about Python and build it in a virtual environment. This was okay and the LICENSE file exists. My installed setuptools are 52 (Debian 11 Repository), in the virtual env 69. Thanks for your help! |
I try to compile the latest version for Python 3.11.5 on Linux Mint 5.15.0-94-generic. Because of your hint I tried upgrade setuptools:
It was already Version 69, but i still missing the License File:
May be there is still a problem. |
I still have this issue as well with setupotools 69.0.3. Using the Freedesktop SDK version 23.08. |
I got this error message too: I think my mistake was to start biuld without sip command: |
Operating system:
Debian 12, MX-21, Ubuntu 22.04
wxPython version & source:
git clone --recurse-submodules https://github.com/wxWidgets/Phoenix.git
Python version & source:
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Repository of Ubuntu 22.04
Description of the problem:
On every system the build process exits with same errors.
tom@devix:~/projects/Phoenix$ python3 build.py --gtk3 --use_syswx build_py
/home/tom/projects/Phoenix/build.py:44: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.dep_util import newer, newer_group
Will build using: "/usr/bin/python3"
3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
Python's architecture is 64bit
cfg.VERSION: 4.2.2a1
Running command: build_py
Checking for /home/tom/projects/Phoenix/bin/waf-2.0.24...
"/usr/bin/python3" /home/tom/projects/Phoenix/bin/waf-2.0.24 --wx_config=wx-config --gtk3 --python="/usr/bin/python3" --out=build/waf/3.10/gtk3 configure build
Setting top to : /home/tom/projects/Phoenix
Setting out to : /home/tom/projects/Phoenix/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' : /usr/bin/python3
Checking for python version >= 3.7.0 : 3.10.12
python-config : /usr/bin/python3-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 (0.686s)
Waf: Entering directory `/home/tom/projects/Phoenix/build/waf/3.10/gtk3'
**** Compiler: 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.
Traceback (most recent call last):
File "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Scripting.py", line 119, in waf_entry_point
run_commands()
File "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Scripting.py", line 182, in run_commands
ctx=run_command(cmd_name)
File "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Scripting.py", line 173, in run_command
ctx.execute()
File "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Scripting.py", line 375, in execute
return execute_method(self)
File "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Build.py", line 93, in execute
self.execute_build()
File "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Build.py", line 96, in execute_build
self.recurse([self.run_dir])
File "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Context.py", line 133, in recurse
user_function(self)
File "/home/tom/projects/Phoenix/wscript", line 538, in build
updateLicenseFiles(cfg)
File "/home/tom/projects/Phoenix/buildtools/config.py", line 1062, in updateLicenseFiles
copy_file(opj('sip', 'siplib', 'LICENSE'), opj('license', 'sip-license.txt'),
File "/usr/lib/python3.10/distutils/file_util.py", line 104, in copy_file
raise DistutilsFileError(
distutils.errors.DistutilsFileError: can't copy 'sip/siplib/LICENSE': doesn't exist or not a regular file
Command '"/usr/bin/python3" /home/tom/projects/Phoenix/bin/waf-2.0.24 --wx_config=wx-config --gtk3 --python="/usr/bin/python3" --out=build/waf/3.10/gtk3 configure build ' failed with exit code 2.
Finished command: build_py (0.910s)
The text was updated successfully, but these errors were encountered: