Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pydantic compatibility issue #80

Open
PGSAVE opened this issue Jan 21, 2024 · 2 comments
Open

Pydantic compatibility issue #80

PGSAVE opened this issue Jan 21, 2024 · 2 comments

Comments

@PGSAVE
Copy link

PGSAVE commented Jan 21, 2024

There is a compatibility issue when other projects use Pydantic in addition to the Shazamio library.

Please update compatibility with new libraries, because shazamio uses very outdated versions of libraries.

shazamio 0.4.0.1 requires pydantic<2.0.0,>=1.10.2, but you have pydantic 2.5.3 which is incompatible.

@dotX12
Copy link
Collaborator

dotX12 commented Jan 31, 2024

@D2PF3 Hello!
If you can help with this - I will be grateful! I'm currently developing core in rust.

@magowiz
Copy link

magowiz commented Jun 4, 2024

Hi, any news on this?
I'm trying to include shazamio in a buildozer/kivy project, since the pydantic recipe points to 2.16.1, shazamio cannot work.

On android phone logcat I have:

 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 already reported this to python4android project here: kivy/python-for-android#3024 thinking was pydantic_core issue.

Let me know if you need further information or if there is something I should try.

Best regards,
magowiz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants