推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
Livid
398.39D
556.85D
V2EX  ›  Python

rq 目前的最新版本 0.12.0 和 redis-py 3.0.0+ 不兼容

  •  
  •   Livid ·
    PRO
    · Nov 20, 2018 · 2382 views
    This topic created in 2879 days ago, the information mentioned may be changed or developed.

    会遇到这个错误:

    AttributeError: 'int' object has no attribute 'items'
    

    今天在一台新机器上给 V2EX 构建开发环境的 Docker 镜像时发现的。解决方法是指定 redis-py 的版本:

    redis==2.10.6
    
    1 replies  •  2018-11-21 08:20:42 +08:00
    Outliver0
        1
    Outliver0  
       Nov 21, 2018
    celery4.0 和 redis-py3.0 也不兼容,推荐版本 redis==2.10.6
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3255 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 12:48 · PVG 20:48 · LAX 05:48 · JFK 08:48
    ♥ Do have faith in what you're doing.