Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when mdv README.md #101

Open
michael135 opened this issue Feb 6, 2022 · 0 comments
Open

Error when mdv README.md #101

michael135 opened this issue Feb 6, 2022 · 0 comments

Comments

@michael135
Copy link

michael135 commented Feb 6, 2022

I've tried to mdv README.md and got the following error:

/home/michaeld/.local/lib/python3.6/site-packages/mdv/markdownviewer.py:1276: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  cfg = yaml.load('{}')
Traceback (most recent call last):
  File "/home/michaeld/.local/bin/mdv", line 11, in <module>
    load_entry_point('mdv==1.6.3', 'console_scripts', 'mdv')()
  File "/home/michaeld/.local/lib/python3.6/site-packages/mdv/markdownviewer.py", line 1353, in run
    print(run_args(args))
  File "/home/michaeld/.local/lib/python3.6/site-packages/mdv/markdownviewer.py", line 1309, in run_args
    tab_length    = args.get('-b', 4))
  File "/home/michaeld/.local/lib/python3.6/site-packages/mdv/markdownviewer.py", line 1063, in main
    the_html = MD.convert(md)
  File "/home/michaeld/.local/lib/python3.6/site-packages/markdown/core.py", line 268, in convert
    newRoot = treeprocessor.run(root)
  File "/home/michaeld/.local/lib/python3.6/site-packages/mdv/markdownviewer.py", line 873, in run
    formatter(doc, out)
  File "/home/michaeld/.local/lib/python3.6/site-packages/mdv/markdownviewer.py", line 868, in formatter
    formatter(c, out, hir + 1, parent=el)
  File "/home/michaeld/.local/lib/python3.6/site-packages/mdv/markdownviewer.py", line 868, in formatter
    formatter(c, out, hir + 1, parent=el)
  File "/home/michaeld/.local/lib/python3.6/site-packages/mdv/markdownviewer.py", line 690, in formatter
    links_list, t = replace_links(el, t)
  File "/home/michaeld/.local/lib/python3.6/site-packages/mdv/markdownviewer.py", line 624, in replace_links
    cur += '%s ' % unichr(link_start_ord + cur_link)
NameError: name 'unichr' is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant