gpt4 book ai didi

python - mkdocs-pandoc 类型错误 : _split_row() takes exactly 2 arguments (3 given)

转载 作者:行者123 更新时间:2023-12-01 03:12:58 29 4
gpt4 key购买 nike

当我尝试使用 mkdocs2pandoc 生成 .pd 时,出现以下错误

Traceback (most recent call last):
File "/usr/bin/mkdocs2pandoc", line 11, in <module>
load_entry_point('mkdocs-pandoc==0.2.6', 'console_scripts', 'mkdocs2pandoc')()
File "/usr/lib/python2.7/site-packages/mkdocs_pandoc/cli/mkdocs2pandoc.py", line 80, in main
for line in pconv.convert():
File "/usr/lib/python2.7/site-packages/mkdocs_pandoc/pandoc_converter.py", line 165, in convert
lines = mkdocs_pandoc.filters.tables.TableFilter().run(lines)
File "/usr/lib/python2.7/site-packages/mkdocs_pandoc/filters/tables.py", line 177, in run
ret.extend(self.convert_table(block))
File "/usr/lib/python2.7/site-packages/mkdocs_pandoc/filters/tables.py", line 91, in convert_table
for i in range(0, len(self._split_row(lines_orig[0], has_border))):
TypeError: _split_row() takes exactly 2 arguments (3 given)

我刚刚启动了新的虚拟环境并仅安装了 mkdocs-pandoc

pip install mkdocs-pandoc

最佳答案

问题是由于 Markdown 2.6.8(当前最新)与 mkdocs-pandoc 包一起安装,我查看了其中的 _split_row() 方法,看起来它更改了签名,所以暂时修复是安装 Markdown 2.6.7,并等待 mkdocs-pandoc 更新。

关于python - mkdocs-pandoc 类型错误 : _split_row() takes exactly 2 arguments (3 given),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42717142/

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