D0n9X1n / markdown-preview.vim

Yet, just another markdown preview plugin for vim.
https://github.com/D0n9X1n/markdown-preview.vim
MIT License
73 stars 12 forks source link

ImportError: no module named builtins #11

Closed tomory closed 6 years ago

tomory commented 6 years ago

Expected Behavior

Command: :MarkdownPreview GitHub

should open the current .md file in the default browser.

Actual Behavior

Red error messages:

Error detected while processing function PreviewWithDefaultCodeStyle[1]..MarkdownPreviewWithDefaultCodeStyle:
Line 10:
Traceback (most recent call last):
File "<string>", in line 1, in <module>
File "/Users/markt/.vim/pack/default/start/markdown-preview.vim/pythonx/markdown-preview.py", line 5, in <module> import markdown_parser

with similar messages for some more files (abbreviated because I'm typing this by hand):

...markdown-parser.py, line 5, in <module> import CommonMark
...CommonMark/__init__.py, line 4, in <module> from CommonMark.main import commonmark
...CommonMark/main.py, line 15, in <module> from CommonMark.dump import dumpAST, dumpJSON
...CommonMark/dump.py, line 3, in <module> from builtins import str
ImportError: No module named builtins

Steps to Reproduce the Problem

  1. Install MacVim 8.0.1272 (142)
  2. Install pack (https://github.com/maralla/pack, 927c7aa)
  3. 'pack install MikeCoder/markdown-preview.vim' (d8a64f7)
  4. run MacVim
  5. open a Markdown file
  6. in command mode, run ':MarkdownPreview GitHub'

Specifications

(The version of the project, operating system, hardware etc.)

Thanks.

D0n9X1n commented 6 years ago

Try pip install future and pip install commonmark in your terminal(maybe need sudo)?

y4roslav commented 6 years ago

@MikeCoder IMHO It make sense to add it as dependency to readme. Great plugin

D0n9X1n commented 6 years ago

LGTM, Thanks.