PyPSA / atlite

atlite: A Lightweight Python Package for Calculating Renewable Power Potentials and Time Series
https://atlite.readthedocs.io
MIT License
283 stars 101 forks source link

Cutout AttributeError: "EntryPoints" object has no attribute get in Colab #259

Closed dismaps closed 2 years ago

dismaps commented 2 years ago

When preparing the cutout in Google Colab, the following error appears: AttributeError: 'EntryPoints' object has no attribute 'get'

Description

When running on colab with Python3.7 as a default, the entry points are not longer recognized since the release of importlib-metadata v5.0.0 few days ago. This issue reports the same: https://stackoverflow.com/questions/73929564/entrypoints-object-has-no-attribute-get-digital-ocean. I tried installing new versions of python with conda but doesn't work. I also tried to force !pip install xarray==0.19 but then the whole environment is ruined.

Expected Behavior

The cutout should be prepared

Actual Behavior

The entrypoints for the cutout are deprecated

Error Message

image

Your Environment

euronion commented 2 years ago

Hi,

This does not seem to be directly related to atlite but rather upstream issues. Let me know if you think otherwise, I'll close it here in the meantime as such.

2 notes:

dismaps commented 2 years ago

Hi @euronion, Forcing !pip install importlib-metadata==4.13.0 worked!` Thanks!