最近两天发现calibre不能是用了,命令行运行一下
Traceback (most recent call last):
File "/usr/bin/calibre", line 19, in
from calibre.gui2.main import main
File "/usr/lib/calibre/calibre/gui2/__init__.py", line 21, in
from calibre.utils.date import UNDEFINED_DATE
File "/usr/lib/calibre/calibre/utils/date.py", line 13, in
from dateutil.tz import tzlocal, tzutc, EPOCHORDINAL
File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.6.0-py2.7.egg/dateutil/tz/__init__.py", line 1, in
from .tz import *
File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.6.0-py2.7.egg/dateutil/tz/tz.py", line 23, in
from ._common import tzname_in_python2, _tzinfo, _total_seconds
File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.6.0-py2.7.egg/dateutil/tz/_common.py", line 2, in
from six.moves import _thread
ImportError: cannot import name _thread
查看了一下代码,原因是python-dateutil-2.6.0 引发了,
calibre 2.78.0(stable) 和 2.80.0 使用 python-dateutil 2.4.2-r1,但是calibre 2.83.0 - 2.85.1 使用 python-dateutil 2.6.0
python很难作为一种企业级别的语言去使用
阅读(2248) | 评论(0) | 转发(0) |