Coder Social home page Coder Social logo

tair-py's Issues

当连接 redis 时指定参数 decode_responses=True 时,读取时 100%报错

必现的关键参数就是这个 decode_responses = True 时

    def connect(self, db):
        r = Tair.from_url(host=host, db=db, password=passwd, decode_responses=True)

必现bug,当连接 redis 时指定参数 decode_responses=True 时,如果使用 exhash 或 exzset 类型,读取时 100%报错
image

exhash 类型也有一样的 bug,只要指定了 decode_responses=True,必现
image

经过提工单(000B99A97C)核实,确实需要优化,让我来这边反馈下
image
image

希望 tair-py 也可以做下兼容,谢谢

当redis==5.x 时,出现兼容问题

tair==1.3.7
redis==5.0.1

堆栈日志

  File "/Users/monster/local_documents/PycharmProjects/party-danmaku/venv/lib/python3.11/site-packages/tair/__init__.py", line 1, in <module>
    from tair.client import Tair
  File "/Users/monster/local_documents/PycharmProjects/party-danmaku/venv/lib/python3.11/site-packages/tair/client.py", line 3, in <module>
    from tair.commands import TairCommands, set_tair_response_callback
  File "/Users/monster/local_documents/PycharmProjects/party-danmaku/venv/lib/python3.11/site-packages/tair/commands.py", line 5, in <module>
    from redis.client import bool_ok, int_or_none
ImportError: cannot import name 'int_or_none' from 'redis.client' (/Users/monster/local_documents/PycharmProjects/party-danmaku/venv/lib/python3.11/site-packages/redis/client.py)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.