Zim

import error when exporting page as Markdown format

Bug #1003344 reported by Robin Lee
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
Fix Released
High
Unassigned

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
    page.init_uistate()
  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)

Zim-0.56-1.fc16.noarch

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

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

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 1003344] [NEW] import error when exporting page as Markdown format

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

-- Jaap

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fix merged in rev551

Changed in zim:
status: New → Confirmed
importance: Undecided → High
status: Confirmed → Fix Committed
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.