buildozer.spec python-for-android pinned python package version ignored?

209 views
Skip to first unread message

Aaron Curtis

unread,
Aug 7, 2022, 2:48:17 PM8/7/22
to Kivy users support
I suspect I'm failing to understand something here. I put pyproj==3.3.1 in the requirements list in my buildozer.spec . However, python-for-android appears to be including 1.9.6 in the app because 1.9.6 is hardcoded in this recipe. Shouldn't I get some kind of error message about it being unable to install the version I requested? Is it expected that it would just ignore the version pin? What's the easiest way for me to get the right version -- do I just edit the recipe in my installation copy of python-for-android?

Thanks in advance!

Aaron Curtis

unread,
Aug 7, 2022, 2:51:27 PM8/7/22
to Kivy users support
Ah, I see I can override the recipe, so I'll try that. My main questions still remain.

Aaron Curtis

unread,
Aug 7, 2022, 3:54:52 PM8/7/22
to Kivy users support
Looks like I actually just needed to run "buildozer clean." I had assumed changes to buildozer.spec would be automatically detected but seems that's not the case for the "requirements=" line. So now it's installing pyproj from pip, and I'm getting:

ImportError: dlopen failed: "/data/data/org.test.surfptztagapp/files/app/_python_bundle/site-packages/pyproj/_network.so" has unexpected e_machine: 62 (EM_X86_64)

I guess this is a cython thing since it should be built for arm but it's built for x86?

Robert

unread,
Aug 7, 2022, 5:39:01 PM8/7/22
to Kivy users support
Modifying a recipe https://github.com/Android-for-Python/Android-for-Python-Users#appendix-c--locally-modifying-a-recipe

I don't know what will happen if you reach in and change p4a state underneath Buildozer.


The pyproj page https://pypi.org/project/pyproj/ says it is platform independent, this is clearly not true as shown by the error message.

So yes on the Cython, it needs a recipe to build for ARM
Which is https://proj.org/, this also needs to be built for ARM.
Reply all
Reply to author
Forward
0 new messages