Problems with newer versions of exponent_server_sdk (>=1.0.0)
Opened this issue · 1 comments
I recently noticed an error on a fresh installation of my django application:
cannot import name 'PushResponseError' from 'exponent_server_sdk' (/app/.heroku/python/lib/python3.8/site-packages/exponent_server_sdk/__init__.py)
After a little research I found out that the exponent_server_sdk package has undergone some changes regarding the PushResponse class. I am not really familiar with this SDK and Expo but as far as I can see, the class got renamed to PushTicket
in 1.0.2 and returns a message ID since 1.0.0. In my case I got exponent_server_sdk 2.0.0 installed and am now facing an ImportError because django-notification-system still uses the old class name.
Due to the changes in setup.py
, this leads to an error when version 1.0.0 or newer of exponent_server_sdk gets installed.