3

我想与 Gitbook 一起运行 ebook-convert 以从我的静态文件中生成我自己的 pdf 文件。当我只是键入时,ebook-convert我收到了这个愚蠢的错误消息......</p>

我安装了

  • 一个新版本的python
  • 使用 NPM 安装转换电子书
  • 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
4

2 回答 2

3

我遇到了同样的问题,并通过将 Python 从版本 2.7.10 更新到 2.7.11 来修复它。

于 2016-04-02T18:11:28.713 回答
0

我使用我的系统 pythonlib-dynload/_io.so替换为

/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/lib-dynload/_io.so

然后它工作,希望它可以帮助你。

tks

于 2016-08-17T12:40:23.410 回答