Skip to content

Commit 391af5e

Browse files
authored
Update pydantic recipe
There is [incompatibility](huggingface/transformers#8638) between python > 3.6 and package `dataclasses`. This error was happening after my compilations: `AttributeError: module 'typing' has no attribute '_ClassVar'` The fix is removing `dataclasses` from `python_depends`. I also updated the pydantic version to the newest release `1.10.4`, it can be checked [here](https://github.com/pydantic/pydantic/releases) and its url. I already compiled my app after applying these changes, and the compilation is working successfully again.
1 parent e393a9e commit 391af5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pythonforandroid/recipes/pydantic/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33

44
class PydanticRecipe(PythonRecipe):
5-
version = '1.8.2'
6-
url = 'https://github.com/samuelcolvin/pydantic/archive/refs/tags/v{version}.zip'
5+
version = '1.10.4'
6+
url = 'https://github.com/pydantic/pydantic/archive/refs/tags/v{version}.zip'
77
depends = ['setuptools']
8-
python_depends = ['Cython', 'devtools', 'email-validator', 'dataclasses', 'typing-extensions', 'python-dotenv']
8+
python_depends = ['Cython', 'devtools', 'email-validator', 'typing-extensions', 'python-dotenv']
99
call_hostpython_via_targetpython = False
1010

1111

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy