Issue
I have made a deplyoment to Digital ocean, on staging (Heroku server) the app is working well, but Digital ocean it's failing with the error below, what could be the issue :
AttributeError at /admin/
'EntryPoints' object has no attribute 'get'
Request Method: GET
Request URL: https://xxxx/admin/
Django Version: 3.1
Exception Type: AttributeError
Exception Value:
'EntryPoints' object has no attribute 'get'
Exception Location: /usr/local/lib/python3.7/site-packages/markdown/util.py, line 85, in <module>
Python Executable: /usr/local/bin/python
Python Version: 3.7.5
Python Path:
['/opt/app',
'/usr/local/bin',
'/usr/local/lib/python37.zip',
'/usr/local/lib/python3.7',
'/usr/local/lib/python3.7/lib-dynload',
'/usr/local/lib/python3.7/site-packages',
'/usr/local/lib/python3.7/site-packages/odf',
'/usr/local/lib/python3.7/site-packages/odf',
'/usr/local/lib/python3.7/site-packages/odf',
'/usr/local/lib/python3.7/site-packages/odf',
'/usr/local/lib/python3.7/site-packages/odf',
'/usr/local/lib/python3.7/site-packages/odf',
'/usr/local/lib/python3.7/site-packages/odf']
Server time: Sun, 02 Oct 2022 21:41:00 +0000
Solution
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
Answered By - mxhiu
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.