Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

NameError: name 'JOIN_LEFT_OUTER' is not defined #109

Closed
Nanguage opened this issue Feb 18, 2018 · 4 comments
Closed

NameError: name 'JOIN_LEFT_OUTER' is not defined #109

Nanguage opened this issue Feb 18, 2018 · 4 comments

Comments

@Nanguage
Copy link

我试着根据 README 上的指示进行安装使用,
但在使用时出现以下错误:

-> ~/s/BGmi bgmi cal
Traceback (most recent call last):
  File "/root/miniconda3/bin/bgmi", line 11, in <module>
    load_entry_point('bgmi==2.0.3', 'console_scripts', 'bgmi')()
  File "/root/miniconda3/lib/python3.6/site-packages/bgmi-2.0.3-py3.6.egg/bgmi/main.py", line 58, in main
    controllers(ret)
  File "/root/miniconda3/lib/python3.6/site-packages/bgmi-2.0.3-py3.6.egg/bgmi/cli.py", line 286, in controllers
    return func(ret)
  File "/root/miniconda3/lib/python3.6/site-packages/bgmi-2.0.3-py3.6.egg/bgmi/cli.py", line 86, in cal_wrapper
    force_update=force_update, save=save, cover=cover)
  File "/root/miniconda3/lib/python3.6/site-packages/bgmi-2.0.3-py3.6.egg/bgmi/website/base.py", line 86, in bangumi_calendar
    weekly_list = Bangumi.get_updating_bangumi()
  File "/root/miniconda3/lib/python3.6/site-packages/bgmi-2.0.3-py3.6.egg/bgmi/models.py", line 75, in get_updating_bangumi
    .join(Followed, JOIN_LEFT_OUTER, on=(cls.name == Followed.bangumi_name)) \
NameError: name 'JOIN_LEFT_OUTER' is not defined

我的平台为 Linux,
尝试了Python2 与 3 ,尝试通过源码安装和 pip 安装, 均出现同样错误。

@RicterZ
Copy link
Owner

RicterZ commented Feb 19, 2018

临时解决方案是用老版本的 peewee。
你试一下 dev branch 的源码安装?

@RicterZ
Copy link
Owner

RicterZ commented Feb 19, 2018

https://github.com/BGmi/BGmi/tree/dev

try this.

@Nanguage
Copy link
Author

dev branch 没有出现该问题

@RicterZ
Copy link
Owner

RicterZ commented Feb 19, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants