redis-om-python
redis-om-python copied to clipboard
[0.1.0] Mirgrator raise an exception
Using python3.8(cpython)
with redis om 0.1.0
.
When trying to run migrations in an async way get the error:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/slixmpp/xmlstream/xmlstream.py", line 886, in handler_callback_routine
await cb(data)
File "worker.py", line 271, in init_worker
await Migrator().run()
File "/usr/local/lib/python3.8/site-packages/aredis_om/model/migrations/migrator.py", line 163, in run
await self.detect_migrations()
File "/usr/local/lib/python3.8/site-packages/aredis_om/model/migrations/migrator.py", line 118, in detect_migrations
await conn.ft(cls.Meta.index_name).info()
File "/usr/local/lib/python3.8/site-packages/redis/commands/search/commands.py", line 384, in info
it = map(to_string, res)
TypeError: 'coroutine' object is not iterable
Downgrade to version 0.0.26
fixes the problem