django-sendgrid-v5 icon indicating copy to clipboard operation
django-sendgrid-v5 copied to clipboard

TypeError: __init__() got an unexpected keyword argument 'providing_args'

Open halilkabaca opened this issue 1 year ago • 3 comments

If you are getting this error, it is because Django 4 seems to have removed this argument.

Changing the line on /sendgrid_backend/signals.py

from: sendgrid_email_sent = django.dispatch.Signal(providing_args=["message", "fail_flag"])

to: sendgrid_email_sent = django.dispatch.Signal()

fixes the problem for me.

My Environment: Python3 version: 3.8.10 Django version: 4.1.8

halilkabaca avatar Jul 09 '24 11:07 halilkabaca

Thanks for reporting the issue! Do you mind making a PR to fix this? With a feature flag for the Django version?

sklarsa avatar Jul 09 '24 11:07 sklarsa

I must have been using an old version because I see it's already done in master long time ago. However, I had installed it using pip install django-sendgrid-v5 could that be still old somehow?

halilkabaca avatar Jul 09 '24 12:07 halilkabaca

Looks like version 1.2.3 is released to PyPi and should have all relevant commits from master

sklarsa avatar Jul 15 '24 18:07 sklarsa

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 31 '25 23:01 stale[bot]