You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting an error when I try to import using the latest version:
ImportError while loading conftest '/home/lyst/code/tests/conftest.py'.
tests/conftest.py:8: in <module>
from fakeredis import FakeRedis
../venv/lib/python3.9/site-packages/fakeredis/__init__.py:1: in <module>
from ._server import FakeServer, FakeRedis, FakeStrictRedis, FakeConnection # noqa: F401
../venv/lib/python3.9/site-packages/fakeredis/_server.py:21: in <module>
from ._zset import ZSet
../venv/lib/python3.9/site-packages/fakeredis/_zset.py:1: in <module>
import sortedcontainers
E ModuleNotFoundError: No module named 'sortedcontainers'
To Reproduce
Steps to reproduce the behavior:
Install version 1.7.6 on a clean environment
Open a python shell
import fakeredis
See error:
(.venv) AA> python
Python 3.10.4 (main, Apr 9 2022, 21:27:52) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import fakeredis
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jose/workspace/lyst/braze-api/AA/.venv/lib/python3.10/site-packages/fakeredis/__init__.py", line 1, in <module>
from ._server import FakeServer, FakeRedis, FakeStrictRedis, FakeConnection # noqa: F401
File "/home/jose/workspace/lyst/braze-api/AA/.venv/lib/python3.10/site-packages/fakeredis/_server.py", line 19, in <module>
import six
ModuleNotFoundError: No module named 'six'
Expected behavior
No import errors.
Screenshots
N/A
Desktop (please complete the following information):
OS: Linux
python version: 3.10.4
redis-py version: pip install fakeredis==1.7.6
full requirements.txt?: N/A
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
It looks like
fakeredis
still depends onsix
andsortedcontainers
, but the dependencies were removed in this PR #12 while migrating to poetry.Before #12 :
After #12 :
Current master:
I'm getting an error when I try to import using the latest version:
To Reproduce
Steps to reproduce the behavior:
1.7.6
on a clean environmentimport fakeredis
Expected behavior
No import errors.
Screenshots
N/A
Desktop (please complete the following information):
pip install fakeredis==1.7.6
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: