apscheduler - Advance python scheduler 'tuple' 对象在启动调度程序时没有属性 'public'

标签 apscheduler

启动调度程序会出现此错误。正如我在提交中看到的,这段代码是在 3 天前添加的。所以我在这里遗漏了什么还是它的错误?

In /local/lib/python2.7/site-packages/apscheduler/__init__.py in <module>()

1) # These will be removed in APScheduler 4.0.

2) **parsed_version =__import__('pkg_resources').get_distribution('APScheduler').parsed_version

3) version_info = 
tuple(int(x) if x.isdigit() else x for x in  

parsed_version.public.split('.'))**

4) version = parsed_version.base_version

5) release = __version__ = parsed_version.public

**AttributeError: 'tuple' object has no attribute 'public'**

最佳答案

我刚刚遇到了这个问题并解决了它。

只需升级设置工具:

pip install setuptools --upgrade

然后它应该可以正常工作。

关于apscheduler - Advance python scheduler 'tuple' 对象在启动调度程序时没有属性 'public',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36437702/

相关文章:

python-3.x - python apschedular RedisJobStore 不在 redis 缓存中存储作业

python - apscheduler 在查询期间丢失与 MySQL 服务器的连接

python apscheduler,运行作业的更简单方法?

python - "RuntimeError: Working outside of application context "与 Python Flask 应用程序(使用调度程序发送 gmail)

python - 从 Flask 请求中读取全局 collections.deque 安全吗?

python apscheduler - 跳过 : maximum number of running instances reached

python - python - apscheduler 中导入错误

python - 如何从另一个Python脚本重复运行一个Python脚本?

python - 每 X 秒作为用户输入运行 python 脚本

Python Apscheduler - 动态调度作业(嵌套)