revolunet / sublimetext-markdown-preview

markdown preview and build plugin for sublime text 2/3
MIT License
2.31k stars 362 forks source link

ImportError: No module named unicodedata #28

Closed dhulihan closed 12 years ago

dhulihan commented 12 years ago

After updating to the latest Sublime Text 2, I've been getting this error sporadically when running markdown_preview:

Traceback (most recent call last):
  File ".\sublime_plugin.py", line 362, in run_
  File ".\MarkdownPreview.py", line 66, in run
  File ".\markdown2.py", line 174, in markdown
  File ".\markdown2.py", line 319, in convert
  File ".\markdown2.py", line 781, in _run_block_gamut
  File ".\markdown2.py", line 1295, in _do_headers
  File ".\markdown2.py", line 1272, in _atx_h_sub
  File ".\markdown2.py", line 1222, in header_id_from_text
  File ".\markdown2.py", line 1937, in _slugify
ImportError: No module named unicodedata

This is using Markdown Preview version 2012.08.12.18.21.50. Here's my Sublime Text build version:

Version: 2.0.1 Build: 2217

revolunet commented 12 years ago

Hi @dhulihan thanks for reporting; Are you on windows ? Looks like theres a related bug http://www.sublimetext.com/forum/viewtopic.php?f=3&t=3462

dhulihan commented 12 years ago

Yep, this is occurring in Windows 7 x64, as well as Ubuntu 12.04 x86_64.

I also get the same results when entering import unicode in console, as mentioned in the post you linked to. Btw, thanks for the great st2 package, I use it quite often.

revolunet commented 12 years ago

Ok this is an unknown issue and a specific edge case IMHO. Ive bypassed the ImportError when it happened and it shouldn't hurt much. Tell me if its better :) Cheers

dhulihan commented 12 years ago

It's working well so far. Thanks for the patch.

dbowring commented 11 years ago

1ecf5eff8db1a62b586cf66466895fa48b431006 re-introduces this issue.

revolunet commented 11 years ago

patch submitted to markdown2 maintainer