Comments (7)
Fixed, please try with newest version 0.0.26
. Now I explicite "deploy" package on PyPI with Python 3.7 version.
from dacite.
@mvalkon thank you for reporting this issue. I have no idea what is going on, but I will check it :)
from dacite.
I'm having this same issue. It relates to conditional dependencies in the setup file.
PR here-
from dacite.
Thanks for the fast response. That worked!
from dacite.
Thanks for the fix @konradhalas
from dacite.
No problem guys, it was my fault. Thank you for reporting!
from dacite.
Still having the same issue with version 1.2.0
Here's log from lambda:
Function Logs:
START RequestId: d4d174f0-60ea-474c-bcad-d865736d2fc0 Version: $LATEST
[ERROR] AttributeError: module 'typing' has no attribute '_ClassVar'
Traceback (most recent call last):
File "/var/lang/lib/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/var/lang/lib/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/var/task/src/new_order/order_load_from_shopify.py", line 2, in <module>
from lib.Order import Order
File "/var/task/lib/Order.py", line 3, in <module>
from dacite import from_dict
File "/var/task/aws_packages/dacite/__init__.py", line 1, in <module>
from dacite.config import Config
File "/var/task/aws_packages/dacite/config.py", line 6, in <module>
class Config:
File "/var/task/aws_packages/dataclasses.py", line 958, in dataclass
return wrap(_cls)
File "/var/task/aws_packages/dataclasses.py", line 950, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen)
File "/var/task/aws_packages/dataclasses.py", line 800, in _process_class
cls_fields = [_get_field(cls, name, type)
File "/var/task/aws_packages/dataclasses.py", line 800, in <listcomp>
cls_fields = [_get_field(cls, name, type)
File "/var/task/aws_packages/dataclasses.py", line 659, in _get_field
if (_is_classvar(a_type, typing)
File "/var/task/aws_packages/dataclasses.py", line 550, in _is_classvar
return type(a_type) is typing._ClassVarEND RequestId: d4d174f0-60ea-474c-bcad-d865736d2fc0
REPORT RequestId: d4d174f0-60ea-474c-bcad-d865736d2fc0 Duration: 4879.35 ms Billed Duration: 4900 ms Memory Size: 128 MB Max Memory Used: 30 MB
Unknown application error occurred
from dacite.
Related Issues (20)
- Type hooks applied to deserialized values when hook for union type is defined
- Return value of custom type hook is discarded when decoding generic type in union
- Regression in recognizing the type of the dataclass in case of inheritance HOT 1
- Mapping key names to class attributes HOT 2
- With strict_unions_match, KeyError is raised instead of UnionMatchError HOT 3
- missing pypi source tarball for 1.8.1 release HOT 3
- Subsequent calls of from_dict on dataclasses that contain Optional[type] and type | None breaks behaviour because of caching HOT 1
- Add missing value factory for from_dict()
- dict cannot be matched if keys are specified as enums in dataclass HOT 3
- Using dacite fails at runtime with pkg_resources.DistributionNotFound HOT 2
- DefaultValueNotFoundError for Optional fields
- `strict_union_match` shadows the Error raised in `__post_init__`
- ValueError: dictionary update sequence element #0 has length 1; 2 is required HOT 1
- from_dict resets `dataclasses.field` with argument `init=False` and `default_factory` HOT 1
- Dacite will put an `int` into an `Optional[float]` field but not a `float | None` field.
- Should it work with Dict[sometype, sometype]?
- Add support for Python 3.12 HOT 2
- dataclass does not accept union of dataclasses?
- Dictionary matching errors with object type key
- dacite.from_dict: `NamedTuple` type hook does not work with `cast=[tuple]` (regression from v1.7.0)
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 dacite.