Solar-Helix-Independent-Transport / allianceauth-discordbot

allianceauth-discordbot
MIT License
6 stars 19 forks source link

[Incompatible] aioredis 2.0.0 #45

Closed ppfeufer closed 1 year ago

ppfeufer commented 3 years ago

After updating to aioredis-2.0.0 the following error occurs

Traceback (most recent call last):
File "/home/tnnt_auth/TerraNanotechAuth/bot_conf.py", line 14, in <module>
main()
File "/home/tnnt_auth/TerraNanotechAuth/bot_conf.py", line 10, in main
launcher.run_bot()
File "/home/tnnt_auth/auth-system/venv/auth/lib/python3.7/site-packages/aadiscordbot/launcher.py", line 15, in run_bot
bot = AuthBot()
File "/home/tnnt_auth/auth-system/venv/auth/lib/python3.7/site-packages/aadiscordbot/bot.py", line 60, in __init__
self.redis = self.loop.run_until_complete(aioredis.create_pool(getattr(settings, "BROKER_URL", "redis://localhost:6379/0"), minsize=5, maxsize=10))
AttributeError: module 'aioredis' has no attribute 'create_pool'

image

ppfeufer commented 3 years ago

https://aioredis.readthedocs.io/en/latest/migration/#connecting-to-redis