Comments (21)
Probably I will try also to set a constraint to pydantic package, I don't know if that version needs also a pydantic_core, maybe is just a pure python package, worth trying.
By the way thank you very much for your help, I close this.
from python-for-android.
Can you clear that what you mean by "all builds"? all requirements?
As I see only see ffpyplayer build is failing.
So issue is about ffpyplayer build failure?
from python-for-android.
Can you clear that what you mean by "all builds"? all requirements? As I see only see ffpyplayer build is failing.
I mean for each of the build I launch, one for each architecture
So issue is about ffpyplayer build failure?
I don't know, before I add pydantic_core to requirements the builds were all fine, so I thought it was pydantic_core
offending package, but if you see that ffpyplayer is failing, maybe there could be a sort of conflict between those packages?
I will try again, after cleaning all directories to build with all requirements except pydantic_core
so I would be able to confirm you this.
from python-for-android.
@T-Dynamos :
sorry, probably due to the cache I had some false positive: successful builds that should have failed with a clean build (empty buildozer home and build folders), in order to get a working build I had to remove:
- shazamio_core
- pydantic_core
- rustup from dockerfile
- p4a from develop to master
I added those because master branch doesn't have the possibility to run rust recipes, shazamio_core and pydantic_core.
once I reverted all those changes, the build start to succeed, so I think it could be the switch of p4a branch from develop to master.
How do you suggest to proceed? Should I try to switch to develop branch and attach updated information in this issues?
from python-for-android.
Thanks for insights, I will look into it.
from python-for-android.
from python-for-android.
I've seen you did, in #3025, the merge into develop, so, I'm asking for confirmation: are you telling me I should test develop right now after your 5h ago change?
from python-for-android.
@magowiz Yes.
from python-for-android.
@magowiz Yes.
I tried but builds still failing, but probably on another package, it seems to me sqlalchemy
I'm going to attach you the full log in order to provide you most information possible. If is it another package/recipe, do I need to open a new issue?
I compressed the log because was huge (~56MB)
build.zip
Let me know what should I do to address this issue, if it is another one.
Thanks in advance,
magowiz
from python-for-android.
Seeing your build order sqlalchemy
seems like last package needs to be fixed.
Will look into it. :)
from python-for-android.
Seeing your build order
sqlalchemy
seems like last package needs to be fixed. Will look into it. :)
Thank you very much, let's hope that after this also shazamio_core and pydantic_core, which are rust builds, will work.
from python-for-android.
@magowiz You can try develop branch now. #3027 is merged.
from python-for-android.
Yeah, it worked, I'm going to try pydantic_core
and shazamio_core
from python-for-android.
The build went fine but if I open the armv8 apk on my phone, I find out that probably a library for another architecture were installed:
ImportError: dlopen failed: "/data/data/net.magowiz.musenote/files/app/_python_bundle/site-packages/pydantic_core/_pydantic_core.so" is for EM_X86_64 (62) instead of EM_AARCH64 (183)
from python-for-android.
@magowiz This meant that your build didn't picked pydantic_core
recipe.
from python-for-android.
I saw that recipe folder is pydantic-core
and I put pydantic_core
in requirements, could it be for dash/underscore difference in the name? Do I need to write in requirements exactly pydantic-core
? Otherwise how could it possible that mine build didn't pick up the according recipe?
from python-for-android.
I was able to build it correctly, I needed to put the same exact name as recipe. I was missing also annotated_types
and I was able to add it, by the way it seems that is having some issues I don't have when I run the same code from desktop:
File "/home/jenkins/workspace/nization_folder_musenote_develop/.buildozer/arm64-v8a/android/platform/build-arm64-v8a/build/python-installs/musenote/arm64-v8a/shazamio/__init__.py", line 1, in <module>
File "/home/jenkins/workspace/nization_folder_musenote_develop/.buildozer/arm64-v8a/android/platform/build-arm64-v8a/build/python-installs/musenote/arm64-v8a/shazamio/serializers.py", line 3, in <module>
File "/home/jenkins/workspace/nization_folder_musenote_develop/.buildozer/arm64-v8a/android/platform/build-arm64-v8a/build/python-installs/musenote/arm64-v8a/shazamio/schemas/base.py", line 20, in <module>
File "/home/jenkins/workspace/nization_folder_musenote_develop/.buildozer/arm64-v8a/android/platform/build-arm64-v8a/build/python-installs/musenote/arm64-v8a/pydantic/_internal/_model_construction.py", line 115, in __new__
File "<frozen abc>", line 106, in __new__
TypeError: Cannot create a consistent method resolution
order (MRO) for bases BaseModel, BaseIdTypeHref, Generic
I don't know if this could be related to pydantic
from python-for-android.
You should report this to shazamio.
from python-for-android.
I found the reason:
on my poetry.lock I have version 1.10.15 of pydantic, and a constraint that tells
pydantic = ">=1.10.2,<2.0.0"
on pydantic-core recipe we have version 2.16.1
, also the fact that there isn't a way to resolve automatically dependencies and to use packages constraints on p4a doesn't help, so probably with a pydantic 1.x won't fail, by the way I'll report it to shazamio project.
Should I close this one?
from python-for-android.
I commented original issue on shazamio, if they introduce compatibility with pydantic 2.x it should work.
from python-for-android.
Should I close this one?
Yes.
so probably with a pydantic 1.x won't fail
Let's hope.
from python-for-android.
Related Issues (20)
- Add the recipe for yt-dlp module
- Add recipe `pyreqwest_impersonate` HOT 28
- :rocket: Action plan for hosting prebuilt wheels
- Upgrade Pillow recipe to a version newer than 8.4.0 HOT 1
- `ValueError: unsupported hash type blake2s` / `code for hash blake2b was not found.`
- Numpy failing on development branch HOT 3
- rust recipe shazamio-core, builds fine, but cannot locate symbol __gxx_personality_v0 HOT 7
- freetype recipe cannot download HOT 6
- М
- Build FastAPI app as an Android Service
- protobuf_cpp faild to build for google-generativeai HOT 1
- openssl-1.1.1w is not available on HOT 2
- Tiktoken is for EM_X86_64 | ImportError: dlopen failed () HOT 14
- cymunk recipe uses distutils
- kiwisolver build fails, and depreciation warning HOT 9
- apsw build fails HOT 1
- atom build fail
- cryptography and sqlalchemy need these library
- RuntimeError: failed to get api PyCell_Get HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-for-android.