flatpak-builder-tools
flatpak-builder-tools copied to clipboard
flatpak-pip-generator not working for wxPython
I used flatpak-pip-generator
to generate the necessary JSON for wxPython
, but using the JSON, the build process stopped while trying to install the numpy
dependency of wxPython
:
========================================================================
Building module python3-wxPython in /home/jm/Projekte/org.kicad_pcb.KiCad/.flatpak-builder/build/python3-wxPython-7
========================================================================
Running: pip3 install --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} wxPython
Looking in links: file:///run/build/python3-wxPython
Collecting wxPython
Collecting pillow (from wxPython)
Requirement already satisfied: six in /usr/lib/python3.7/site-packages (from wxPython) (1.12.0)
Collecting numpy (from wxPython)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-y_okrg_o/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links file:///run/build/python3-wxPython -- setuptools wheel 'Cython>=0.29.14'
cwd: None
Complete output (4 lines):
Looking in links: file:///run/build/python3-wxPython
Collecting setuptools
ERROR: Could not find a version that satisfies the requirement setuptools (from versions: none)
ERROR: No matching distribution found for setuptools
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-y_okrg_o/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links file:///run/build/python3-wxPython -- setuptools wheel 'Cython>=0.29.14' Check the logs for full command output.
Error: module python3-wxPython: Der Kindprozess wurde mit Status 1 beendet
This is the JSON that was generated after invoking flatpak-pip-generator wxPython
:
{
"name": "python3-wxPython",
"buildsystem": "simple",
"build-commands": [
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} wxPython"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/40/de/0ea5092b8bfd2e3aa6fdbb2e499a9f9adf810992884d414defc1573dca3f/numpy-1.18.1.zip",
"sha256": "b6ff59cee96b454516e47e7721098e6ceebef435e3e21ac2d6c3b8b02628eb77"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/21/9f/b251f7f8a76dec1d6651be194dfba8fb8d7781d10ab3987190de8391d08e/six-1.14.0.tar.gz",
"sha256": "236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/39/47/f28067b187dd664d205f75b07dcc6e0e95703e134008a14814827eebcaab/Pillow-7.0.0.tar.gz",
"sha256": "4d9ed9a64095e031435af120d3c910148067087541131e82b3e8db302f4c8946"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl",
"sha256": "8f3cd2e254d8f793e7f3d6d9df77b92252b52637291d0f0da013c76ea2724b6c"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/b9/8b/31267dd6d026a082faed35ec8d97522c0236f2e083bf15aff64d982215e1/wxPython-4.0.7.post2.tar.gz",
"sha256": "5a229e695b64f9864d30a5315e0c1e4ff5e02effede0a07f16e8d856737a0c4e"
}
]
}
I searched for clues in the other pip issues that looked similar, and tried a few things I found, like adding --no-build-isolation
, or adding setuptools
to flatpak-pip-generator
, but none of these helped.
This may be unrelated to the reported issue, but I see that six
is appearing twice.
I get the same problem with wxPython. The resulting json does not build. Removing either of the two 'six' entries does not help. My error is:
Building module python3-wxpython in /home/andy/Devel/hello_flatpak_python/.flatpak-builder/build/python3-wxpython-3
========================================================================
Running: pip3 install --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} wxpython
Looking in links: file:///run/build/python3-wxpython
Collecting wxpython
Collecting pillow (from wxpython)
Requirement already satisfied: six in /usr/lib/python3.7/site-packages (from wxpython) (1.12.0)
Collecting numpy (from wxpython)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-iskmzfle/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links file:///run/build/python3-wxpython -- setuptools wheel 'Cython>=0.29.14'
cwd: None
Complete output (4 lines):
Looking in links: file:///run/build/python3-wxpython
Collecting setuptools
ERROR: Could not find a version that satisfies the requirement setuptools (from versions: none)
ERROR: No matching distribution found for setuptools
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-iskmzfle/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links file:///run/build/python3-wxpython -- setuptools wheel 'Cython>=0.29.14' Check the logs for full command output.
Error: module python3-wxpython: Child process exited with code 1
and my project json is:
{
"app-id": "org.andy.hello-python",
"runtime": "org.freedesktop.Platform",
"runtime-version": "19.08",
"sdk": "org.freedesktop.Sdk",
"command": "hello.sh",
"modules": [
{
"name": "hello",
"buildsystem": "simple",
"build-commands": [
"install -D hello.sh /app/bin/hello.sh"
],
"sources": [
{
"type": "file",
"path": "hello.sh"
}
]
},
{
"name": "python3-requests",
"buildsystem": "simple",
"build-commands": [
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} requests"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl",
"sha256": "fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/e8/74/6e4f91745020f967d09332bb2b8b9b10090957334692eb88ea4afe91b77f/urllib3-1.25.8-py2.py3-none-any.whl",
"sha256": "2f3db8b19923a873b3e5256dc9c2dedfa883e33d87c690d9c7913e1f40673cdc"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/89/e3/afebe61c546d18fb1709a61bee788254b40e736cff7271c7de5de2dc4128/idna-2.9-py2.py3-none-any.whl",
"sha256": "a068a21ceac8a4d63dbfd964670474107f541babbd2250d61922f029858365fa"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl",
"sha256": "017c25db2a153ce562900032d5bc68e9f191e44e9a0f762f373977de9df1fbb3"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl",
"sha256": "43999036bfa82904b6af1d99e4882b560e5e2c68e5c4b0aa03b655f3d7d73fee"
}
]
},
{
"name": "python3-wxpython",
"buildsystem": "simple",
"build-commands": [
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} wxpython"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/39/47/f28067b187dd664d205f75b07dcc6e0e95703e134008a14814827eebcaab/Pillow-7.0.0.tar.gz",
"sha256": "4d9ed9a64095e031435af120d3c910148067087541131e82b3e8db302f4c8946"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/b9/8b/31267dd6d026a082faed35ec8d97522c0236f2e083bf15aff64d982215e1/wxPython-4.0.7.post2.tar.gz",
"sha256": "5a229e695b64f9864d30a5315e0c1e4ff5e02effede0a07f16e8d856737a0c4e"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/21/9f/b251f7f8a76dec1d6651be194dfba8fb8d7781d10ab3987190de8391d08e/six-1.14.0.tar.gz",
"sha256": "236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/84/1e/ff467ac56bfeaea51d4a2e72d315c1fe440b20192fea7e460f0f248acac8/numpy-1.18.2.zip",
"sha256": "e7894793e6e8540dbeac77c87b489e331947813511108ae097f1715c018b8f3d"
}
]
}
]
}
There are multiple packages that require setuptools
and/or wheel
source (not just installed module) to install themselves. Generally, it can be workaround'ed by manually adding the source to the failing python module, e.g.
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/54/28/c45d8b54c1339f9644b87663945e54a8503cfef59cf0f65b3ff5dd17cf64/setuptools-42.0.2-py2.py3-none-any.whl",
"sha256": "c8abd0f3574bc23afd2f6fd2c415ba7d9e097c8a99b845473b0d957ba1e2dac6"
},
@gasinvein Setuptools is in the runtime, so its odd that would be required. I'd call it a runtime bug.
Iirc they may require a newer version of setuptools than is available in the runtime.
On Sun, Mar 29, 2020, 10:37 AM Patrick [email protected] wrote:
@gasinvein https://github.com/gasinvein Setuptools is in the runtime, so its odd that would be required.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/flatpak/flatpak-builder-tools/issues/90#issuecomment-605655593, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM4YSICAVL3I2QAVNLMLA3RJ5TLRANCNFSM4KLYRRSA .
I added the setuptools fragment above, and now its also complaining about wheel viz. ERROR: No matching distribution found for wheel
, which you said might happen.
Could you please supply a similar JSON fragment for wheel
- is there a way I can generate these fragments myself?
@refi64 Doubtful. pip doesn't say anything about version in this case.
@abulka
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl",
"sha256": "f4da1763d3becf2e2cd92a14a7c920f0f00eca30fdde9ea992c836685b9faf28"
},
@gasinvein - thanks for that wheels JSON fragment, seems to have worked and taken me to the next error ERROR: No matching distribution found for Cython>=0.29.14
- would you have a fragment for that?
There seems to be some existing discussion re why pip
misses Cython in some cases, which may be related to this.
As I mentioned, I'm happy to generate these JSON fragments myself if I knew how...
@abulka Cython should be installed like a normal dependency and has nothing to do with the setuptools/wheel problem.
Fair enough. So I generate the cython entry with python flatpak-pip-generator.py cython --output pypi-dependencies_pip
and inserted that generated JSON into my main org.andy.hello-python.json
and ran my usual flatpak-builder --force-clean build-dir org.andy.hello-python.json
- got an error early and so moved the Cython entry before the "python3-wxpython"
entry - which helped. Alas after a while it still errored out with
Emptying app dir 'build-dir'
Downloading sources
Starting build of org.andy.hello-python
Cache hit for hello, skipping build
Cache hit for python3-requests, skipping build
Cache miss, checking out last cache hit
========================================================================
Building module python3-cython in /home/andy/Devel/hello_flatpak_python/.flatpak-builder/build/python3-cython-1
========================================================================
Running: pip3 install --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} cython
Looking in links: file:///run/build/python3-cython
Collecting cython
Installing collected packages: cython
Running setup.py install for cython ... done
Successfully installed cython-0.29.16
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Tempita/_tempita.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Tempita/_tempita.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (304 => 132 43.42%)
[28] .debug_info compressed -> .zdebug_info (682664 => 300870 44.07%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1884 => 784 41.61%)
[30] .debug_line compressed -> .zdebug_line (370638 => 134645 36.33%)
[31] .debug_str compressed -> .zdebug_str (57401 => 15370 26.78%)
[32] .debug_loc compressed -> .zdebug_loc (1624115 => 307356 18.92%)
[33] .debug_ranges compressed -> .zdebug_ranges (248416 => 45248 18.21%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Tempita/_tempita.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Tempita/_tempita.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Plex/Actions.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Plex/Actions.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (288 => 123 42.71%)
[28] .debug_info compressed -> .zdebug_info (60202 => 30172 50.12%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1685 => 678 40.24%)
[30] .debug_line compressed -> .zdebug_line (26756 => 9155 34.22%)
[31] .debug_str compressed -> .zdebug_str (20221 => 6808 33.67%)
[32] .debug_loc compressed -> .zdebug_loc (81103 => 14607 18.01%)
[33] .debug_ranges compressed -> .zdebug_ranges (15136 => 2519 16.64%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Plex/Actions.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Plex/Actions.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Plex/Scanners.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Plex/Scanners.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (320 => 138 43.12%)
[28] .debug_info compressed -> .zdebug_info (107209 => 52072 48.57%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1842 => 737 40.01%)
[30] .debug_line compressed -> .zdebug_line (51954 => 19134 36.83%)
[31] .debug_str compressed -> .zdebug_str (30697 => 8802 28.67%)
[32] .debug_loc compressed -> .zdebug_loc (184537 => 32864 17.81%)
[33] .debug_ranges compressed -> .zdebug_ranges (32432 => 5329 16.43%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Plex/Scanners.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Plex/Scanners.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Runtime/refnanny.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Runtime/refnanny.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (240 => 106 44.17%)
[28] .debug_info compressed -> .zdebug_info (92928 => 45297 48.74%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1798 => 721 40.10%)
[30] .debug_line compressed -> .zdebug_line (51869 => 17547 33.83%)
[31] .debug_str compressed -> .zdebug_str (20565 => 7475 36.35%)
[32] .debug_loc compressed -> .zdebug_loc (174365 => 32084 18.40%)
[33] .debug_ranges compressed -> .zdebug_ranges (29920 => 4891 16.35%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Runtime/refnanny.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Runtime/refnanny.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/FusedNode.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/FusedNode.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (288 => 130 45.14%)
[28] .debug_info compressed -> .zdebug_info (447967 => 198315 44.27%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1880 => 754 40.11%)
[30] .debug_line compressed -> .zdebug_line (231354 => 85129 36.80%)
[31] .debug_str compressed -> .zdebug_str (50067 => 13279 26.52%)
[32] .debug_loc compressed -> .zdebug_loc (1095785 => 213974 19.53%)
[33] .debug_ranges compressed -> .zdebug_ranges (156512 => 28261 18.06%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/FusedNode.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Compiler/FusedNode.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/FlowControl.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/FlowControl.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (384 => 167 43.49%)
[28] .debug_info compressed -> .zdebug_info (751780 => 332701 44.26%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1950 => 798 40.92%)
[30] .debug_line compressed -> .zdebug_line (440832 => 132021 29.95%)
[31] .debug_str compressed -> .zdebug_str (107785 => 20970 19.46%)
[32] .debug_loc compressed -> .zdebug_loc (1720856 => 319939 18.59%)
[33] .debug_ranges compressed -> .zdebug_ranges (297760 => 51318 17.23%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/FlowControl.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Compiler/FlowControl.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/Visitor.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/Visitor.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (320 => 141 44.06%)
[28] .debug_info compressed -> .zdebug_info (377767 => 170767 45.20%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1999 => 810 40.52%)
[30] .debug_line compressed -> .zdebug_line (223153 => 74694 33.47%)
[31] .debug_str compressed -> .zdebug_str (61331 => 14614 23.83%)
[32] .debug_loc compressed -> .zdebug_loc (841335 => 158271 18.81%)
[33] .debug_ranges compressed -> .zdebug_ranges (139232 => 24620 17.68%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/Visitor.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Compiler/Visitor.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/Scanning.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/Scanning.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (368 => 162 44.02%)
[28] .debug_info compressed -> .zdebug_info (313799 => 143024 45.58%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1952 => 801 41.03%)
[30] .debug_line compressed -> .zdebug_line (157529 => 51342 32.59%)
[31] .debug_str compressed -> .zdebug_str (61960 => 14789 23.87%)
[32] .debug_loc compressed -> .zdebug_loc (575730 => 104775 18.20%)
[33] .debug_ranges compressed -> .zdebug_ranges (111488 => 18602 16.69%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/Scanning.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Compiler/Scanning.cpython-37m-x86_64-linux-gnu.so.debug
Committing stage build-python3-cython to cache
========================================================================
Building module python3-wxpython in /home/andy/Devel/hello_flatpak_python/.flatpak-builder/build/python3-wxpython-9
========================================================================
Running: pip3 install --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} wxpython
Looking in links: file:///run/build/python3-wxpython
Collecting wxpython
Collecting pillow (from wxpython)
Requirement already satisfied: six in /usr/lib/python3.7/site-packages (from wxpython) (1.12.0)
Collecting numpy (from wxpython)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-wn9y8zhx/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links file:///run/build/python3-wxpython -- setuptools wheel 'Cython>=0.29.14'
cwd: None
Complete output (6 lines):
Looking in links: file:///run/build/python3-wxpython
Collecting setuptools
Collecting wheel
Collecting Cython>=0.29.14
ERROR: Could not find a version that satisfies the requirement Cython>=0.29.14 (from versions: none)
ERROR: No matching distribution found for Cython>=0.29.14
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-wn9y8zhx/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links file:///run/build/python3-wxpython -- setuptools wheel 'Cython>=0.29.14' Check the logs for full command output.
Error: module python3-wxpython: Child process exited with code 1
andy@ubuntu:~/Devel/hello_flatpak_python$ ^C
andy@ubuntu:~/Devel/hello_flatpak_python$ build
Emptying app dir 'build-dir'
Downloading sources
Starting build of org.andy.hello-python
Cache hit for hello, skipping build
Cache miss, checking out last cache hit
========================================================================
Building module python3-cython in /home/andy/Devel/hello_flatpak_python/.flatpak-builder/build/python3-cython-1
========================================================================
Running: pip3 install --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} cython
Looking in links: file:///run/build/python3-cython
Collecting cython
Installing collected packages: cython
Running setup.py install for cython ... done
Successfully installed cython
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Tempita/_tempita.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Tempita/_tempita.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (304 => 132 43.42%)
[28] .debug_info compressed -> .zdebug_info (682664 => 300858 44.07%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1884 => 784 41.61%)
[30] .debug_line compressed -> .zdebug_line (370638 => 134645 36.33%)
[31] .debug_str compressed -> .zdebug_str (57401 => 15390 26.81%)
[32] .debug_loc compressed -> .zdebug_loc (1624115 => 307356 18.92%)
[33] .debug_ranges compressed -> .zdebug_ranges (248416 => 45248 18.21%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Tempita/_tempita.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Tempita/_tempita.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Plex/Actions.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Plex/Actions.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (288 => 123 42.71%)
[28] .debug_info compressed -> .zdebug_info (60202 => 30185 50.14%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1685 => 678 40.24%)
[30] .debug_line compressed -> .zdebug_line (26756 => 9155 34.22%)
[31] .debug_str compressed -> .zdebug_str (20221 => 6809 33.67%)
[32] .debug_loc compressed -> .zdebug_loc (81103 => 14607 18.01%)
[33] .debug_ranges compressed -> .zdebug_ranges (15136 => 2519 16.64%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Plex/Actions.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Plex/Actions.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Plex/Scanners.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Plex/Scanners.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (320 => 138 43.12%)
[28] .debug_info compressed -> .zdebug_info (107209 => 52081 48.58%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1842 => 737 40.01%)
[30] .debug_line compressed -> .zdebug_line (51954 => 19134 36.83%)
[31] .debug_str compressed -> .zdebug_str (30697 => 8800 28.67%)
[32] .debug_loc compressed -> .zdebug_loc (184537 => 32864 17.81%)
[33] .debug_ranges compressed -> .zdebug_ranges (32432 => 5329 16.43%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Plex/Scanners.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Plex/Scanners.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Runtime/refnanny.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Runtime/refnanny.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (240 => 106 44.17%)
[28] .debug_info compressed -> .zdebug_info (92928 => 45311 48.76%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1798 => 721 40.10%)
[30] .debug_line compressed -> .zdebug_line (51869 => 17547 33.83%)
[31] .debug_str compressed -> .zdebug_str (20565 => 7476 36.35%)
[32] .debug_loc compressed -> .zdebug_loc (174365 => 32084 18.40%)
[33] .debug_ranges compressed -> .zdebug_ranges (29920 => 4891 16.35%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Runtime/refnanny.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Runtime/refnanny.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/FusedNode.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/FusedNode.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (288 => 130 45.14%)
[28] .debug_info compressed -> .zdebug_info (447967 => 198292 44.26%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1880 => 754 40.11%)
[30] .debug_line compressed -> .zdebug_line (231354 => 85129 36.80%)
[31] .debug_str compressed -> .zdebug_str (50067 => 13280 26.52%)
[32] .debug_loc compressed -> .zdebug_loc (1095785 => 213974 19.53%)
[33] .debug_ranges compressed -> .zdebug_ranges (156512 => 28261 18.06%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/FusedNode.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Compiler/FusedNode.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/FlowControl.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/FlowControl.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (384 => 167 43.49%)
[28] .debug_info compressed -> .zdebug_info (751780 => 332649 44.25%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1950 => 798 40.92%)
[30] .debug_line compressed -> .zdebug_line (440832 => 132022 29.95%)
[31] .debug_str compressed -> .zdebug_str (107785 => 20947 19.43%)
[32] .debug_loc compressed -> .zdebug_loc (1720856 => 319939 18.59%)
[33] .debug_ranges compressed -> .zdebug_ranges (297760 => 51318 17.23%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/FlowControl.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Compiler/FlowControl.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/Visitor.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/Visitor.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (320 => 141 44.06%)
[28] .debug_info compressed -> .zdebug_info (377767 => 170753 45.20%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1999 => 810 40.52%)
[30] .debug_line compressed -> .zdebug_line (223153 => 74694 33.47%)
[31] .debug_str compressed -> .zdebug_str (61331 => 14591 23.79%)
[32] .debug_loc compressed -> .zdebug_loc (841335 => 158271 18.81%)
[33] .debug_ranges compressed -> .zdebug_ranges (139232 => 24620 17.68%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/Visitor.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Compiler/Visitor.cpython-37m-x86_64-linux-gnu.so.debug
compressing debuginfo in: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/Scanning.cpython-37m-x86_64-linux-gnu.so
processing: /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/Scanning.cpython-37m-x86_64-linux-gnu.so
[27] .debug_aranges compressed -> .zdebug_aranges (368 => 162 44.02%)
[28] .debug_info compressed -> .zdebug_info (313799 => 143047 45.59%)
[29] .debug_abbrev compressed -> .zdebug_abbrev (1952 => 801 41.03%)
[30] .debug_line compressed -> .zdebug_line (157529 => 51341 32.59%)
[31] .debug_str compressed -> .zdebug_str (61960 => 14807 23.90%)
[32] .debug_loc compressed -> .zdebug_loc (575730 => 104775 18.20%)
[33] .debug_ranges compressed -> .zdebug_ranges (111488 => 18602 16.69%)
[36] Updating section string table
stripping /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/python3.7/site-packages/Cython/Compiler/Scanning.cpython-37m-x86_64-linux-gnu.so to /home/andy/Devel/hello_flatpak_python/.flatpak-builder/rofiles/rofiles-zzi3Na/files/lib/debug/lib/python3.7/site-packages/Cython/Compiler/Scanning.cpython-37m-x86_64-linux-gnu.so.debug
Committing stage build-python3-cython to cache
========================================================================
Building module python3-wxpython in /home/andy/Devel/hello_flatpak_python/.flatpak-builder/build/python3-wxpython-10
========================================================================
Running: pip3 install --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} wxpython
Looking in links: file:///run/build/python3-wxpython
Collecting wxpython
Collecting pillow (from wxpython)
Requirement already satisfied: six in /usr/lib/python3.7/site-packages (from wxpython) (1.12.0)
Collecting numpy (from wxpython)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ufugmubh/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links file:///run/build/python3-wxpython -- setuptools wheel 'Cython>=0.29.14'
cwd: None
Complete output (6 lines):
Looking in links: file:///run/build/python3-wxpython
Collecting setuptools
Collecting wheel
Collecting Cython>=0.29.14
ERROR: Could not find a version that satisfies the requirement Cython>=0.29.14 (from versions: none)
ERROR: No matching distribution found for Cython>=0.29.14
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ufugmubh/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links file:///run/build/python3-wxpython -- setuptools wheel 'Cython>=0.29.14' Check the logs for full command output.
my full org.andy.hello-python.json
is:
{
"app-id": "org.andy.hello-python",
"runtime": "org.freedesktop.Platform",
"runtime-version": "19.08",
"sdk": "org.freedesktop.Sdk",
"command": "hello.sh",
"modules": [
{
"name": "hello",
"buildsystem": "simple",
"build-commands": [
"install -D hello.sh /app/bin/hello.sh"
],
"sources": [
{
"type": "file",
"path": "hello.sh"
}
]
},
{
"name": "python3-cython",
"buildsystem": "simple",
"build-commands": [
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} cython"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/49/8a/6a4135469372da2e3d9f88f71c6d00d8a07ef65f121eeca0c7ae21697219/Cython-0.29.16.tar.gz",
"sha256": "232755284f942cbb3b43a06cd85974ef3c970a021aef19b5243c03ee2b08fa05"
}
]
},
{
"name": "python3-wxpython",
"buildsystem": "simple",
"build-commands": [
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} wxpython"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/39/47/f28067b187dd664d205f75b07dcc6e0e95703e134008a14814827eebcaab/Pillow-7.0.0.tar.gz",
"sha256": "4d9ed9a64095e031435af120d3c910148067087541131e82b3e8db302f4c8946"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/b9/8b/31267dd6d026a082faed35ec8d97522c0236f2e083bf15aff64d982215e1/wxPython-4.0.7.post2.tar.gz",
"sha256": "5a229e695b64f9864d30a5315e0c1e4ff5e02effede0a07f16e8d856737a0c4e"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/21/9f/b251f7f8a76dec1d6651be194dfba8fb8d7781d10ab3987190de8391d08e/six-1.14.0.tar.gz",
"sha256": "236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/84/1e/ff467ac56bfeaea51d4a2e72d315c1fe440b20192fea7e460f0f248acac8/numpy-1.18.2.zip",
"sha256": "e7894793e6e8540dbeac77c87b489e331947813511108ae097f1715c018b8f3d"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/54/28/c45d8b54c1339f9644b87663945e54a8503cfef59cf0f65b3ff5dd17cf64/setuptools-42.0.2-py2.py3-none-any.whl",
"sha256": "c8abd0f3574bc23afd2f6fd2c415ba7d9e097c8a99b845473b0d957ba1e2dac6"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl",
"sha256": "f4da1763d3becf2e2cd92a14a7c920f0f00eca30fdde9ea992c836685b9faf28"
}
]
}
]
}
As a workaround, for this very common issue, I add setuptools separately for each modules that throws this error, e.g.
"sources": [
"setuptools.json",
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/8c/30/4134e726dd5ed13728ff814fa91fc01c447ad8700504653fe99d91fdd34b/SQLAlchemy-1.3.15.tar.gz",
"sha256": "c4cca4aed606297afbe90d4306b49ad3a4cd36feb3f87e4bfd655c57fd9ef445"
}
where setuptools.json
contains
[
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/b2/86/095d2f7829badc207c893dd4ac767e871f6cd547145df797ea26baea4e2e/setuptools-41.2.0-py2.py3-none-any.whl",
"sha256": "4380abcf2a4ffd1a5ba22d687c6d690dce83b2b51c70e9c6d09f7e8c7e8040dc"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/8c/23/848298cccf8e40f5bbb59009b32848a4c38f4e7f3364297ab3c3e2e2cd14/wheel-0.34.2-py2.py3-none-any.whl",
"sha256": "df277cb51e61359aba502208d680f90c0493adec6f0e848af94948778aed386e"
}
]
I even had to add pip
for one module. For https://github.com/flathub/org.electrum.electrum I had to do this 3 times for different modules. This is the same issue as for #100.
I did a small analysis about this in a comment on issue 100.
TL;DR, pip ignores installed system packages on purpose, to provide an isolated build environment.
flatpak-pip-generator needs to take this pip behavior into account and generate source URLs for packages that are provided in the Freedesktop SDK.
Any updates on this?
The update is to use the workaround I posted above, I played with different options, one of them was to not ignore setuptools, and they all introduce even weirder issues It is not ideal, but you only have to manually update setuptools and wheel.
Pip is weird.
update
You can ignore this message. The error was diagnosed as something else:
https://github.com/flathub/org.kicad.KiCad/blob/9a4596e6c06b97a7e9c3d87348bfcd597aea90d0/org.kicad.KiCad.yml#L123
(missing wxwidgets)
@A6GibKm
I tried your solution (using YAML) like so:
setuptools.yml
- type: file
url: https://files.pythonhosted.org/packages/55/3a/5121b58b578a598b269537e09a316ad2a94fdd561a2c6eb75cd68578cc6b/setuptools-69.0.3-py3-none-any.whl
sha256: 385eb4edd9c9d5c17540511303e39a147ce2fc04bc55289c322b9e5904fe2c05
- type: file
url: https://files.pythonhosted.org/packages/c7/c3/55076fc728723ef927521abaa1955213d094933dc36d4a2008d5101e1af5/wheel-0.42.0-py3-none-any.whl
sha256: 177f9c9b0d45c47873b619f5b650346d632cdc35fb5e4d25058e09c9e581433d
Added to this wxpython.yml file: https://github.com/flathub/org.kicad.KiCad/blob/9a4596e6c06b97a7e9c3d87348bfcd597aea90d0/python3-wxPython.yml
at the end:
...
- setuptools.yml
- type: file
url: https://files.pythonhosted.org/packages/aa/64/d749e767a8ce7bdc3d533334e03bb4e03bb1106fc4e4803d16f931fada9007ee13/wxPython-4.2.1.tar.gz
sha256: e48de211a6606bf072ec3fa778771d6b746c00b7f4b970eb58728ddf56d13d5c
x-checker-data:
is-important: true
type: pypi
name: wxPython
which causes this error:
Building wheel for pillow (pyproject.toml) ... done Created wheel for pillow: filename=pillow-10.2.0-cp311-cp311-linux_x86_64.whl size=1285875 sha256=dc363713b4b2085d99f0cc4a51c48ca0c756d87934af8d9af588cce3626d8ef4 Stored in directory: /root/.cache/pip/wheels/d7/e3/39/7b4df860c58feed233d760e97b61c4ecd02931bd9473ec6014 Successfully built pillow Failed to build wxPython ERROR: Could not build wheels for wxPython, which is required to install pyproject.toml-based projects Error: module python3-wxPython: Child process exited with code 1
Does your solution still work for you?