redis / redis-py

Redis Python client
MIT License
12.7k stars 2.53k forks source link

Fail with Python 3.12 #3299

Open shadchin opened 5 months ago

shadchin commented 5 months ago

Version: last version 5.0.7

Platform: all platforms

Description:

Fail import redis.commands.graph with Python 3.12+

(venv312) shadchin@jakku:~/venv312/bin$ python -c 'import redis.commands.graph'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/shadchin/venv312/lib/python3.12/site-packages/redis/commands/graph/__init__.py", line 4, in <module>
    from .commands import AsyncGraphCommands, GraphCommands
  File "/home/shadchin/venv312/lib/python3.12/site-packages/redis/commands/graph/commands.py", line 6, in <module>
    from .query_result import AsyncQueryResult, QueryResult
  File "/home/shadchin/venv312/lib/python3.12/site-packages/redis/commands/graph/query_result.py", line 3, in <module>
    from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils'
gerzse commented 5 months ago

@shadchin Please note that Python 3.12 is not yet supported in redis-py. Work is in progress on this. Can you try 3.11 in the meanwhile?

shadchin commented 4 months ago

It's not blocking me yet, I just decided to let you know, in case you didn't know

AniaKru95 commented 4 months ago

I would like to know, when are you planning compatibility implementation with Python 3.12?