Hi.
I am trying to publish my first app in Flathub. Unfortunately, my manifesto contained an argument granting web access permissions to the build tool to download the PySide6 dependency. I was asked to make the build offline and therefore not use this permission. Unfortunately, I don’t know how to get rid of this permission well and still be able to build the application using PySide6.
CMake Error at sources/shiboken6/cmake/ShibokenHelpers.cmake:170 (find_package):
Could not find a package configuration file provided by "Clang" with any of
the following names:
ClangConfig.cmake
clang-config.cmake
Add the installation prefix of "Clang" to CMAKE_PREFIX_PATH or set
"Clang_DIR" to a directory containing one of the above files. If "Clang"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
sources/shiboken6/cmake/ShibokenSetup.cmake:38 (setup_clang)
sources/shiboken6/CMakeLists.txt:14 (include)
-- Configuring incomplete, errors occurred!
See also "/run/build/PySide6/_flatpak_build/CMakeFiles/CMakeOutput.log".
See also "/run/build/PySide6/_flatpak_build/CMakeFiles/CMakeError.log".
Error: module PySide6: Proces potomny został zakończony z kodem 1
I also tried to use Flatpak PIP Generator for generating all this modules using requirments.txt, but i have this error:
Running: "flatpak --filesystem=/home/cichy1173/Projekty/tabela-flatpak/requirements.txt --devel --share=network --filesystem=/tmp --command=pip3 run org.kde.Sdk//6.2 download --exists-action=i --dest /tmp/pip-generator-pypi-dependenciesf05pzzqh -r /home/cichy1173/Projekty/tabela-flatpak/requirements.txt"
Collecting PySide6==6.2.0
Downloading PySide6-6.2.0-6.2.0-cp36.cp37.cp38.cp39.cp310-abi3-manylinux1_x86_64.whl (269.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 269.4/269.4 MB 11.0 MB/s eta 0:00:00
Collecting shiboken6==6.2.0
Downloading shiboken6-6.2.0-6.2.0-cp36.cp37.cp38.cp39.cp310-abi3-manylinux1_x86_64.whl (996 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 996.5/996.5 kB 14.8 MB/s eta 0:00:00
Saved /tmp/pip-generator-pypi-dependenciesf05pzzqh/PySide6-6.2.0-6.2.0-cp36.cp37.cp38.cp39.cp310-abi3-manylinux1_x86_64.whl
Saved /tmp/pip-generator-pypi-dependenciesf05pzzqh/shiboken6-6.2.0-6.2.0-cp36.cp37.cp38.cp39.cp310-abi3-manylinux1_x86_64.whl
Successfully downloaded PySide6 shiboken6
========================================================================
Downloading arch independent packages
========================================================================
Traceback (most recent call last):
File "/home/cichy1173/Projekty/tabela-flatpak/flatpak-pip-generator", line 271, in <module>
url = get_tar_package_url_pypi(name, version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cichy1173/Projekty/tabela-flatpak/flatpak-pip-generator", line 88, in get_tar_package_url_pypi
raise Exception(err)
Exception: Failed to get shiboken6-6.2.0 source from https://pypi.org/pypi/shiboken6/6.2.0/json
J
JakobDev
#4
Sorry, forgot to mention. you need also to add this:
INFO: pip is looking at multiple versions of tabela to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement PySide6==6.5.0 (from tabela) (from versions: none)
ERROR: No matching distribution found for PySide6==6.5.0
Error: module tabela: Proces potomny został zakończony z kodem 1
I must add that, building with command python -m pip install . works. Also I had no issues with Snap package.
J
JakobDev
#6
Try adding --no-deps --no-build-isolation to your pip command
I created that files (.desktop and xml appstream which I have in root directory on codeberg repo - sorry, I tried to link this files, but the forum marked them as spam/ad), but I think, I use this files in a wrong way. How can I fix this? @JakobDev