在使用epub python包時得到這個錯誤,或者你可以說python的epub庫,想知道該怎麼做。請幫助..用於python的epub庫
Traceback (most recent call last):
File "F:/4th semester/3", line 4, in <module>
book=epub.open_epub('d:\welcome.epub')
File "C:\Python27\lib\site-packages\epub\__init__.py", line 43, in open_epub
return EpubFile(filename, mode)
File "C:\Python27\lib\site-packages\epub\__init__.py", line 82, in __init__
self._init_read()
File "C:\Python27\lib\site-packages\epub\__init__.py", line 143, in _init_read
self.toc = ncx.parse_toc(self.read_item(item_toc))
File "C:\Python27\lib\site-packages\epub\__init__.py", line 276, in read_item
return self.read(os.path.join(self.content_path, path))
File "C:\Python27\lib\zipfile.py", line 931, in read
return self.open(name, "r", pwd).read()
File "C:\Python27\lib\zipfile.py", line 957, in open
zinfo = self.getinfo(name)
File "C:\Python27\lib\zipfile.py", line 905, in getinfo
'有存檔中沒有名爲項%R' %名稱) KeyError異常: 「沒有名爲項u'OEBPS \\ toc.ncx」的檔案」 enter code here
我彙報到位桶的錯誤爲:https://到位桶.ORG/exirel/EPUB /問題/ 5 /無效拉鍊路 –