Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问epub格式的电子书如何转换为其他格式?代码运行后显示不支持epub格式 #26

Open
Tina405 opened this issue Aug 4, 2024 · 1 comment

Comments

@Tina405
Copy link

Tina405 commented Aug 4, 2024

在将word文档转换txt格式时可以正常运行,但将epub转换成txt时出现了错误,并显示不支持epub格式
这是报错情况:
Traceback (most recent call last):
File "C:\Users\HP\PycharmProjects\pythonProject\文本转换.py", line 4, in
markdown_content, time_cost = converter.convert(r"C:\Users\HP\Desktop\实验\Anvil (Patton Dirk).epub", conv_timeout=300)
File "C:\Users\HP\anaconda3\envs\py310torch\lib\site-packages\magic_doc\docconv.py", line 202, in convert
conv: BaseConv = self.__select_conv(doc_path, byte_content)
File "C:\Users\HP\anaconda3\envs\py310torch\lib\site-packages\magic_doc\docconv.py", line 137, in __select_conv
raise ConvException("Unsupported file format.")
magic_doc.docconv.ConvException: Unsupported file format.

@Tina405 Tina405 changed the title epub格式的电子书如何转换为其他格式?代码运行后显示不支持epub格式 请问epub格式的电子书如何转换为其他格式?代码运行后显示不支持epub格式 Aug 4, 2024
@icecraft
Copy link
Collaborator

icecraft commented Aug 5, 2024

magic-doc does not support epub now. the section about magic-doc in the readme of MinerU is out of date and will update to date recently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants