RedisJSON / redisjson-py

An extension to redis-py for using Redis' ReJSON module
https://redisjson.io
BSD 2-Clause "Simplified" License
160 stars 34 forks source link

moduleNotFoundError: No module named "redis._compat" #67

Closed NickLucche closed 2 years ago

NickLucche commented 2 years ago

This import error pops up when trying to import rejson using latest build for redis-py (pip install redis before rejson).

A temporary workaround is to install previous redis-py version 3.5.3 before installing rejson, as in:

p -m pip uninstall -y redis
p -m pip install redis==3.5.3
p -m pip install rejson
chayim commented 2 years ago

Hi @NickLucche thank you for reporting! json support is now in redis-py 4.0.0, maybe you'd like to try it! There are some small API changes in order to bring it together, but ultimately the tests in tests/test_json.py will help.

NickLucche commented 2 years ago

Thanks for the response, I'll be sure to check that out!

chayim commented 2 years ago

Awesome! FYI I'm working on pushing upstream a (currently last) version of redijson just to pin to 3.5.3. I feel like that would be fair!