django-push-notifications icon indicating copy to clipboard operation
django-push-notifications copied to clipboard

vapid fails due to dependency issue (includes solution)

Open wolframkriesing opened this issue 3 months ago • 1 comments

I tried to generate keys, as documented on docs/WebPush but got stuck because of this issue: https://github.com/web-push-libs/vapid/issues/105

/usr/local/lib/python3.13/site-packages/py_vapid/__init__.py:200: CryptographyDeprecationWarning: Curve argument must be an instance of an EllipticCurve class. Did you pass a class by mistake? This will be an exception in a future version of cryptography

The solution a simpler way to generate vapid keys use this script is here: https://gist.github.com/Tobiaqs/450a4516ae44813792b7d84028c366c0

Maybe this could be solved just with a docs update?

wolframkriesing avatar Aug 29 '25 18:08 wolframkriesing

@jamaalscarlett has this issue been resolved?

miky-rola avatar Sep 25 '25 08:09 miky-rola

Hello @miky-rola, I have stepped away from the community for a few months and just got back. Would be looking into this.

50-Course avatar Dec 14 '25 15:12 50-Course

I can see someone had yet raised an MR to resolve the issue on the vapid lib, so at best we would do a doc update for now, and revert when upstream is resolved.

50-Course avatar Dec 14 '25 15:12 50-Course

alright, just pushed out a doc fix here:

https://github.com/jazzband/django-push-notifications/pull/793

cc @wolframkriesing

50-Course avatar Dec 14 '25 16:12 50-Course