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

xcube is not compatible with Python 3.10 #583

Closed
TonioF opened this issue Jan 18, 2022 · 2 comments · Fixed by #771
Closed

xcube is not compatible with Python 3.10 #583

TonioF opened this issue Jan 18, 2022 · 2 comments · Fixed by #771
Assignees
Labels
bug Something isn't working ci Issue is related to continuous integration

Comments

@TonioF
Copy link
Contributor

TonioF commented Jan 18, 2022

Since the release of Python 3.10.2 on January 14th, 2022, xcube builds fail with errors like:

ImportError: cannot import name 'MutableMapping' from 'collections'

This is because abstract base classes have been moved from Python's 'collections' package to 'collections.abc'. While there are a few instances in the xcube code where the import needs to be adjusted, this issue also affects the pydap package, which is a transitive dependency of xarray and is beyond our fixing scope.

Also, the relevant change has already been included in Python 3.10, for some reason, Python 3.9 was used for xcube builds until the release of Python 3.10.2.

@TonioF TonioF added bug Something isn't working ci Issue is related to continuous integration labels Jan 18, 2022
@TonioF TonioF self-assigned this Jan 18, 2022
@TonioF
Copy link
Contributor Author

TonioF commented Jan 18, 2022

As an immediate solution, we'll pin xcube to use python versions < 3.9 and remove faulty imports in our code.

@TonioF TonioF changed the title xcube is not compatible with Python 3.10.2 xcube is not compatible with Python 3.10 Jan 18, 2022
@TonioF
Copy link
Contributor Author

TonioF commented Jan 18, 2022

The immediate fix above was applied. We'll leave this issue open until xcube is compatible with Python 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci Issue is related to continuous integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant