mkdocs-pandoc icon indicating copy to clipboard operation
mkdocs-pandoc copied to clipboard

TypeError: _split_row() takes exactly 2 arguments (3 given)

Open pree opened this issue 8 years ago • 5 comments

When I try to generate a .pd with mkdocs2pandoc -f mkdocs.yml -o output.pd in my docker image (schizopriest/mkdocs) on gitlab-ci, I get the following error:

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)

pree avatar Feb 15 '17 09:02 pree

I have the same error related to parsing of tables.

nkaul avatar Feb 21 '17 23:02 nkaul

I have the same error it looks like Python-Markdown changed significantly underneath the mkdocs-pandoc

immunochomik avatar Mar 09 '17 06:03 immunochomik

the problem is in the Marcdown 2.6.8 so if you install 2.6.7 it will work

immunochomik avatar Mar 10 '17 11:03 immunochomik

executing ' sudo pip install Markdown==2.6.7' fails with

Collecting Markdown==2.6.7
  Could not find a version that satisfies the requirement Markdown==2.6.7 (from versions: )
No matching distribution found for Markdown==2.6.7

I'm on ubuntu 16.04.

any ideas how to fix this ?

mrspaceman avatar Mar 28 '17 12:03 mrspaceman

You should use : pip install --upgrade markdown==2.6.7

JGuillaumin avatar Oct 02 '17 08:10 JGuillaumin