V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
V2EX  ›  Python

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

  •  
  •   Livid · 2018-11-20 18:16:26 +08:00 · 1702 次点击
    这是一个创建于 1983 天前的主题,其中的信息可能已经有所发展或是发生改变。

    会遇到这个错误:

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

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

    redis==2.10.6
    
    1 条回复    2018-11-21 08:20:42 +08:00
    Outliver0
        1
    Outliver0  
       2018-11-21 08:20:42 +08:00
    celery4.0 和 redis-py3.0 也不兼容,推荐版本 redis==2.10.6
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3272 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 14:14 · PVG 22:14 · LAX 07:14 · JFK 10:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.