Open RobertFlatt opened 2 months ago
I am currently experiencing exactly the same issue. I have a feeling that this is something to do with the latest python updates being distributed via the system updater in Ubuntu (22.04 and 24.04), as this problem has only been occurring for the last two weeks and has never happened before.
@T-Dynamos Any suggestions?
@vabt-igd This now builds for me (Ubuntu 22.04), what is your experience?
Unfortunately, I'm still running into the same issue. Did you change anything about your setup? I'm using p4a develop with python 3.11.
As far as I can see, there has not been any commit activity on the develop branch of p4a and cppy as well as kiwisolver versions are pinned within the corresponding recipes.
I did an apt update/upgrade. I'd be interested to know if that helps you.
I took looked for p4a develop changes but didn't see anything significant.
Unfortunately, it does not. I even tested it on a fresh Ubuntu 22.04 vm with no luck… Strange issue!
Yes it is. Things magically fixing themselves on one system but not on another is always a bit concerning.
FYI my system Python is 3.10.12 and p4a is using 3.11 internally.
I tried py 3.10 to 3.12 without any differences regarding the kiwisolver issue. Did you install any additional packages/modules that may symlink to the python header file Python.h?
So, I managed to fix the build on my Ubuntu 22.04.4 LTS using Python 3.11.10 (probably Python 3.10 as well, but haven't tested it), p4a develop and custom recipes for cppy and kiwisolver. On Python 3.12 the build still fails.
The custom recipes look as follows:
cppy:
from pythonforandroid.recipe import PythonRecipe
class CppyRecipe(PythonRecipe):
site_packages_name = "cppy"
version = "1.2.1"
url = "https://github.com/nucleic/cppy/archive/{version}.zip"
call_hostpython_via_targetpython = False
install_in_hostpython = True
depends = ["setuptools"]
recipe = CppyRecipe()
Although preferable, I could not get this recipe to properly compile using the PyProjectRecipe...
kiwisolver:
from pythonforandroid.recipe import PyProjectRecipe
class KiwiSolverRecipe(PyProjectRecipe):
site_packages_name = "kiwisolver"
version = "1.4.7"
url = "git+https://github.com/nucleic/kiwi.git"
depends = ["cppy"]
hostpython_prerequisites = ["cppy>=1.2.0"]
need_stl_shared = True
recipe = KiwiSolverRecipe()
I don't think this is worth a PR as there is probably something broken deeper in the build chain either locally on my VMs or in the dev-branch...
Checklist
p4a.branch = develop
)Description
Kiwisolver build fails with include error.
Also a depreciation warning for next month!
Logs
Error:
Depreciation warning