gpt4 book ai didi

python - ebook-convert 吐出 python 错误?有人能理解错误吗?

转载 作者:搜寻专家 更新时间:2023-10-31 23:47:10 25 4
gpt4 key购买 nike

我想将 ebook-convert 与 Gitbook 一起运行,以从我的静态文件生成我自己的 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 来修复它。

关于python - ebook-convert 吐出 python 错误?有人能理解错误吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35625834/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com