111π
Because importlib-metadata
releases v5.0.0 yesterday which it remove deprecated endpoint.
You can set importlib-metadata<5.0
in ur setup.py so it does not install latest version.
Or if you use requirements.txt, you can as well set importlib-metadata
below version 5.0
e.g importlib-metadata==4.13.0
For more info: https://importlib-metadata.readthedocs.io/en/latest/history.html
13π
If you are using certain forks of Redash or even the official Redash, you need to pin its importlib-metadata
to 4.12.0
in the requirements_bundles.txt
- [Django]-Django migration error :you cannot alter to or from M2M fields, or add or remove through= on M2M fields
- [Django]-Is there a way to undo a migration on Django and uncheck it from the list of showmigrations?
- [Django]-Referencing multiple submit buttons in django
13π
As importlib-metadata released v5.0.0, it removed the deprecated endpoint. So Use the older version and do not install the latest version.
!pip install importlib-metadata==4.13.0
Use this in the terminal/Collab to get an older version(v4.13.0).
- [Django]-Django β makemigrations β No changes detected
- [Django]-How do I make an auto increment integer field in Django?
- [Django]-Django: Calculate the Sum of the column values through query
8π
I was running Django on Google App Engine and encountered the same error.
I checked the source and found that the error occurred in a built-in python function.
I updated to Python 3.9 and the error was resolved.
I was originally using python 3.7.
I donβt know if this helps, but FYI.
- [Django]-Unittest Django: Mock external API, what is proper way?
- [Django]-Django storages aws s3 delete file from model record
- [Django]-STATIC_ROOT vs STATIC_URL in Django
1π
Adding to @Zach answer:
If you are using certain forks of Redash or even the official Redash, you need to pin its importlib-metadata to 4.13.0 in the requirements_bundles.txt.
If you are running on docker, donβt forget to rebuild your docker containers.
docker-compose build
docker-compose up -d
- [Django]-Django return file over HttpResponse β file is not served correctly
- [Django]-Django project models.py versus app models.py
- [Django]-How to group by AND aggregate with Django