ec-jrc / lisflood-utilities

LISFLOOD OS - Utilities
https://ec-jrc.github.io/lisflood
European Union Public License 1.2
22 stars 9 forks source link

AttributeError: 'EntryPoints' object has no attribute 'get' #35

Closed EdgarEspitia closed 1 year ago

EdgarEspitia commented 1 year ago

Dear Lisflood community,

Today I have updated the lisflood-utilities and I when I try to use the cutmaps, threshold and waterregions tools I get the error message: AttributeError: 'EntryPoints' object has no attribute 'get'

Error output of running the waterregions scripts error_lisflood_utilities.txt

Please advise on how to fix this problem.

Thanks in advance! Edgar

doc78 commented 1 year ago

Dear Edgar This is probably caused by a new version of the package importlib-metadata. Please check the version of this package by typing pip list. If the version is 5 or more, you can fix this issue by running "pip install importlib-metadata<5.0.0" or "pip install importlib-metadata==4.2.0" that is the version tested in our environments. Hope this will solve the issue. Cheers Carlo

EdgarEspitia commented 1 year ago

Dear Carlo, It works. Thank you vey much! Edgar