import error when exporting page as Markdown format

Bug #1003344 reported by Robin Lee on 2012-05-23
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

I tried to export a page to text file via pandoc / Markdown.

__init__.py:118:get_module:ImportError: No module named markdown (pandoc)

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/zim/gui/widgets.py", line 3176, in next_page
    return self.set_page(self._page + 1)
  File "/usr/lib/python2.7/site-packages/zim/gui/widgets.py", line 3154, in set_page
  File "/usr/lib/python2.7/site-packages/zim/gui/exportdialog.py", line 288, in init_uistate
    ext = zim.formats.get_format(self.uistate['format']).info['extension']
  File "/usr/lib/python2.7/site-packages/zim/formats/__init__.py", line 153, in get_format
    return get_format_module(name)
  File "/usr/lib/python2.7/site-packages/zim/formats/__init__.py", line 162, in get_format_module
    return zim.plugins.get_module('zim.formats', name)
  File "/usr/lib/python2.7/site-packages/zim/plugins/__init__.py", line 118, in get_module
    mod = __import__(modname)
ImportError: No module named markdown (pandoc)


And the crash happens between display 2/3 and 3/3 window.

It seems the name 'markdown (pandoc)' should be converted to 'markdown'.

Will look into it. In the mean time as a work around you can export
using the commandline.

-- Jaap

Fix merged in rev551

Changed in zim:
status: New → Confirmed
importance: Undecided → High
status: Confirmed → Fix Committed

Fixed in zim 0.57

Changed in zim:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers