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

Python 3.6 problems?

Open CesMak opened this issue 6 years ago • 3 comments

Hey there, just tried your tool and got the following error:

mkdocs2pandoc > mydocs.pd
Traceback (most recent call last):
  File "/home/markus/anaconda3/bin/mkdocs2pandoc", line 11, in <module>
    sys.exit(main())
  File "/home/markus/anaconda3/lib/python3.6/site-packages/mkdocs_pandoc/cli/mkdocs2pandoc.py", line 80, in main
    for line in pconv.convert():
  File "/home/markus/anaconda3/lib/python3.6/site-packages/mkdocs_pandoc/pandoc_converter.py", line 165, in convert
    lines = mkdocs_pandoc.filters.tables.TableFilter().run(lines)
  File "/home/markus/anaconda3/lib/python3.6/site-packages/mkdocs_pandoc/filters/tables.py", line 177, in run
    ret.extend(self.convert_table(block))
  File "/home/markus/anaconda3/lib/python3.6/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 2 positional arguments but 3 were given

```

anyone else had this error before? 

Best - Markus

CesMak avatar Mar 26 '18 06:03 CesMak

See #22

HedgehogCode avatar Apr 03 '18 08:04 HedgehogCode

TL; DR: breaks because of changes in the markdown library. downgrade:

pip install --upgrade markdown==2.6.7

charlesreid1 avatar Aug 04 '18 00:08 charlesreid1

TL; DR: breaks because of changes in the markdown library. downgrade:

pip install --upgrade markdown==2.6.7

In my case it worked by putting the pip3.

harrypalheta avatar Nov 06 '18 20:11 harrypalheta