Hi all !
TypeError is raised when asgi_redis tries to open a connection to redis:
```
Traceback (most recent call last):
....
File "/code/src/event/log.py", line 39, in emit
message(level, source, msg, relations, json, datetime, trace)
File "/usr/local/lib/python2.7/dist-packages/channels/channel.py", line 44, in send
self.channel_layer.send(self.name, content)
File "/usr/local/lib/python2.7/dist-packages/asgi_redis/core.py", line 168, in send
client=connection,
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 2694, in __call__
return client.evalsha(self.sha, len(keys), *args)
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 1944, in evalsha
return self.execute_command('EVALSHA', sha, numkeys, *keys_and_args)
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 570, in execute_command
connection = pool.get_connection(command_name, **options)
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 897, in get_connection
connection = self.make_connection()
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 906, in make_connection
return self.connection_class(**self.connection_kwargs)
TypeError: __init__() got an unexpected keyword argument 'socket_connect_timeout'
```
It looks like there's some package version incompatibility, any clue is welcome :)
OS: Ubuntu Xenial
Channels: 1.1.2
Daphne: 1.2.0
Django: 1.10.6
Twisted: 17.1.0
asgi_redis: 1.2.1
redis pip package: 2.10.5
This issue seems pretty similar too: https://github.com/celery/celery/issues/2903#issuecomment-210632688
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/837d5a23-51fa-4f2b-a266-c826baa82728%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment