1

我正在尝试将甲板的 excel 转换为 apkg:

anki_convert(in_file='deck.xlsx', out_format='.apkg') 

但是会出现以下错误:

TypeError: object of type 'int' has no len()

我尝试了许多具有不同值的不同文件,但仍然出现相同的错误。关于如何解决它的任何想法?

编辑:完整的错误跟踪-

Traceback (most recent call last):
File "C:/Users/###/anki/edit_deck.py", line 57, in <module>
anki_convert(in_file='deck.xlsx', out_format='.apkg')
File "C:\Users\###\AppData\Local\Programs\Python\Python37\lib\site- 
packages\AnkiTools\editor.py", line 83, in anki_convert
AnkiFormatEditor().convert(in_file, out_file, out_format)
File "C:\Users\###\AppData\Local\Programs\Python\Python37\lib\site- 
packages\AnkiTools\editor.py", line 49, in convert
self.zip(self.import_anki_sqlite(in_file), out_file)
File "C:\Users\###\AppData\Local\Programs\Python\Python37\lib\site- 
packages\AnkiTools\editor.py", line 77, in import_anki_sqlite
sync_portal.to_sqlite()
File "C:\Users\###\AppData\Local\Programs\Python\Python37\lib\site- 
packages\AnkiTools\excel\app.py", line 190, in to_sqlite
self.anki_direct.add(self.to_payload())
File "C:\Users\###\AppData\Local\Programs\Python\Python37\lib\site- 
packages\AnkiTools\api\ankidirect.py", line 135, in add
modified=modified)
File "C:\Users\###\AppData\Local\Programs\Python\Python37\lib\site- 
packages\AnkiTools\tools\create.py", line 144, in new_note
sfld = BeautifulSoup(flds_list[0], 'html.parser').text
File "C:\Users\###\AppData\Local\Programs\Python\Python37\lib\site- 
packages\bs4\__init__.py", line 287, in __init__
elif len(markup) <= 256 and (
TypeError: object of type 'int' has no len()
4

0 回答 0