Re: [Zim-wiki] Bug: error when exporting notebook with attachements. Can I debug a specific page?

2011-08-01 Thread Jaap Karssenberg
Looks like you have a page in there which causes export to fail when parsing
it to find the heading. For debugging please first close all zim instances
(and quit the tray icon). Then try to export with zim -D it should spit
out the exact page to the terminal.

Please open a bug report for this.

Thanks,

Jaap
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Bug: error when exporting notebook with attachements. Can I debug a specific page?

2011-07-30 Thread nomnex
btw is it enought to pass the error along or do I open a bug report?

This is zim 0.52
Python version is sys.version_info(major=2, minor=7, micro=1,
releaselevel='final', serial=0) Gtk version is (2, 24, 4)
Pygtk version is (2, 24, 0)
Platform is posix
Zim revision is:
  branch: pyzim-trunk
  revision: 391 par...@cpan.org-20110428180907-hls8utfz1nege9ji
  date: 2011-04-28 20:09:07 +0200

=== Traceback ===
  File /usr/lib/python2.7/site-packages/zim/gui/widgets.py, line
1912, in do_response destroy = self.do_response_ok()
  File /usr/lib/python2.7/site-packages/zim/gui/exportdialog.py, line
64, in do_response_ok exporter.export_all(dir, callback=lambda p:
dialog.pulse(p.name)) File
/usr/lib/python2.7/site-packages/zim/exporter.py, line 88, in
export_all self.export_page(dir, current, pages, use_namespace=True)
File /usr/lib/python2.7/site-packages/zim/exporter.py, line 152, in
export_page self.export_page_to_fh(fh, page, pages) File
/usr/lib/python2.7/site-packages/zim/exporter.py, line 173, in
export_page_to_fh lines = self.template.process(self.notebook, page,
pages) File /usr/lib/python2.7/site-packages/zim/templates.py, line
347, in process output = GenericTemplate.process(self, dict) File
/usr/lib/python2.7/site-packages/zim/templates.py, line 203, in
process output = TextBuffer(self.tokens.process(dict)) File
/usr/lib/python2.7/site-packages/zim/templates.py, line 386, in
process output.extend(token.process(dict)) File
/usr/lib/python2.7/site-packages/zim/templates.py, line 489, in
process return block.process(dict) File
/usr/lib/python2.7/site-packages/zim/templates.py, line 386, in
process output.extend(token.process(dict)) File
/usr/lib/python2.7/site-packages/zim/templates.py, line 439, in
process value = self.expr.evaluate(dict) File
/usr/lib/python2.7/site-packages/zim/templates.py, line 568, in
evaluate return dict[self] File
/usr/lib/python2.7/site-packages/zim/templates.py, line 688, in
__getitem__ item = self._lookup_key(self._default, param) File
/usr/lib/python2.7/site-packages/zim/templates.py, line 679, in
_lookup_key return getattr(branch, param.key) File
/usr/lib/python2.7/site-packages/zim/templates.py, line 732, in
heading def heading(self): return self._treeproxy().heading File
/usr/lib/python2.7/site-packages/zim/templates.py, line 768, in
heading head, body = self._split_head(self._tree) File
/usr/lib/python2.7/site-packages/zim/templates.py, line 791, in
_split_head if elements[0].tag == 'h': IndexError: list index out of
range

-- 
nomnex.
Registered Linux user #505281. Be counted at: http://counter.li.org/

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp