编程语言
首页 > 编程语言> > 电子书转换吐出python错误?有人可以理解该错误吗?

电子书转换吐出python错误?有人可以理解该错误吗?

作者:互联网

我想与Gitbook一起运行ebook-convert以从我的静态文件生成我自己的pdf文件.当我只输入ebook-convert时,我会得到这个愚蠢的错误消息……

我安装了

> python的新版本
>使用NPM安装了convert-ebook
>并且Gitbook运行完美

有人知道我能做什么吗?

Python function terminated unexpectedly: dlopen(/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyCodecInfo_GetIncrementalDecoder
  Referenced from: /Applications/calibre.app/Contents/Resources/Python/lib/python2.7/lib-dynload/_io.so
  Expected in: flat namespace
 in /Applications/calibre.app/Contents/Resources/Python/lib/python2.7/lib-dynload/_io.so
Traceback (most recent call last):
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 209, in main
    return run_entry_point()
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 113, in run_entry_point
    pmod = __import__(mod, fromlist=[1], level=0)
  File "site-packages/calibre/__init__.py", line 22, in <module>
  File "site-packages/calibre/startup.py", line 51, in <module>
  File "site-packages/calibre/ptempfile.py", line 8, in <module>
  File "lib/python2.7/tempfile.py", line 32, in <module>
  File "lib/python2.7/io.py", line 51, in <module>
ImportError: dlopen(/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyCodecInfo_GetIncrementalDecoder
  Referenced from: /Applications/calibre.app/Contents/Resources/Python/lib/python2.7/lib-dynload/_io.so
  Expected in: flat namespace
 in /Applications/calibre.app/Contents/Resources/Python/lib/python2.7/lib-dynload/_io.so

解决方法:

我遇到了同样的问题,并通过将Python从2.7.10更新到2.7.11来解决了这个问题.

标签:node-js,converter,calibre,python
来源: https://codeday.me/bug/20191119/2032640.html