Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

ST3: ImportError: No module named 'mdx_extra' on preview #154

Closed
fhemberger opened this issue Dec 31, 2013 · 5 comments · Fixed by #164
Closed

ST3: ImportError: No module named 'mdx_extra' on preview #154

fhemberger opened this issue Dec 31, 2013 · 5 comments · Fixed by #164

Comments

@fhemberger
Copy link

Each time I try to render a preview, I get the following error message:

  File "markdown in /Users/frederic/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 203, in build_extension
ImportError: No module named 'Markdown Preview.markdown.extensions.extra.Markdown Preview'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 543, in run_
    return self.run(edit, **args)
  File "MarkdownPreview in /Users/frederic/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 427, in run
  File "MarkdownPreview in /Users/frederic/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 399, in run
  File "MarkdownPreview in /Users/frederic/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 380, in convert_markdown
  File "markdown in /Users/frederic/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 416, in markdown
  File "markdown in /Users/frederic/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 139, in __init__
  File "markdown in /Users/frederic/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 164, in registerExtensions
  File "markdown in /Users/frederic/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 207, in build_extension
ImportError: No module named 'mdx_extra'

Sublime Text 3, build 3061
Package Control 2.0.0
Markdown Preview 1.0.5 (default configuration)
Mac OS X 10.8.5

@outbounder
Copy link

+1

Sublime Text 3, build 3061
Package Control 2.0.0-alpha6
Markdown Preview 1.0.5 (default configuration)
Ubuntu 12.10 64bit

@vassilmladenov
Copy link

Can confirm this on vanilla OS X 10.9 install

@JARUFI
Copy link

JARUFI commented Jan 7, 2014

+1

same exception as above. githubflavored preview works.

Sublime Text 3, build 3061

@int3h
Copy link
Contributor

int3h commented Jan 14, 2014

This doesn't seem to happen if the extension is unzipped. So, when installing via Package Control, the extension will be saved as a .sublime-package file (i.e., a zip file,) and you will see the above error. If you unzip the package and move it to the "Packages" directory (vs. the "Installed Packages" directory,) then you will not see the above error.

The error also occurs when using the Markdown build system, since it always uses the default "markdown" compiler (see #161).

@xpol
Copy link
Contributor

xpol commented Jan 16, 2014

The 3061 build must have break some of the __import__() function. but i don't know how to fixes it.

So it is suggested to revert back to 3059 build.

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

Successfully merging a pull request may close this issue.

6 participants