You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overview
There is a known issue, that occurs with many of the packages using Dataclasses where installing Dataclasses actually disrupts the native dataclasses shipped with >Python 3.7.
Example:
When using Pandas v. 1.2.3 together with darwin-py v. 0.5.15 you will encounter the error AttributeError: module 'typing' has no attribute '_ClassVar' due to the usage of @dataclasses.dataclass in pandas/io/common.
Suggested solution
Deploy a breaking change and lose official support for Python 3.6.
Add instructions of installing dataclassess 0.6 manually if running on Python 3.6 or below
Workaround
Install package without deps (pip3 install --no-deps) and then manually install all missing dependencies for darwin-py
Downside: A lot of work
How to replicate
I've done this in Docker, as this allows me to run in a clean environment.
Spin up a Buster docker image with Python 3.8
Install darwin-py==0.5.15
Install pandas==1.2.3
Import pandas (as pd)
Run the docker container
The text was updated successfully, but these errors were encountered:
We've had an internal discussion recently, and we have decided we are going to drop support for Python 3.6 at the end of the year. That coincides with the final release of Python 3.6. https://www.python.org/dev/peps/pep-0494/#id15
Overview
There is a known issue, that occurs with many of the packages using Dataclasses where installing Dataclasses actually disrupts the native dataclasses shipped with >Python 3.7.
Example:
When using Pandas v. 1.2.3 together with darwin-py v. 0.5.15 you will encounter the error
AttributeError: module 'typing' has no attribute '_ClassVar'
due to the usage of@dataclasses.dataclass
inpandas/io/common
.Suggested solution
Workaround
Install package without deps (
pip3 install --no-deps
) and then manually install all missing dependencies for darwin-pyDownside: A lot of work
How to replicate
I've done this in Docker, as this allows me to run in a clean environment.
darwin-py==0.5.15
pandas==1.2.3
The text was updated successfully, but these errors were encountered: