RediSearch / redisearch-py

RediSearch python client
https://redisearch.io
BSD 2-Clause "Simplified" License
221 stars 63 forks source link

ImportError: cannot import name 'Client' from partially initialized module 'redisearch' (most likely due to a circular import) #140

Closed Noezor closed 3 years ago

Noezor commented 3 years ago

I create a document called redisearch with only

from redisearch import Client

and get ImportError: cannot import name 'Client' from partially initialized module 'redisearch' (most likely due to a circular import)

Noezor commented 3 years ago

Solution : do not call the file redisearch.py. It will solve the circular import.