Zim

Zim 0.61: sourceview plugin: AttributeError: 'MainWindowExtension' object has no attribute 'ui'

Bug #1354665 reported by Paddy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
Fix Released
Undecided
Unassigned

Bug Description

Running Linux Mint 13 (Ubuntu LTS 12.02). Getting following error when trying to insert a code block:

This is zim 0.61
Platform: posix
Locale: en_US UTF-8
FS encoding: UTF-8
Python: (2, 7, 3, 'final', 0)
Gtk: (2, 24, 10)
Pygtk: (2, 24, 0)
No bzr version-info found

======= Traceback =======
  File "/usr/lib/pymodules/python2.7/zim/actions.py", line 55, in func
    self.func(instance, *arg, **kwarg)
  File "/usr/lib/pymodules/python2.7/zim/plugins/sourceview.py", line 108, in insert_sourceview
    lang = InsertCodeBlockDialog(self.ui).run() # XXX
AttributeError: 'MainWindowExtension' object has no attribute 'ui'

Getting similar message when running in debug mode:

DEBUG: Action: insert_sourceview
ERROR: Exception during action: insert_sourceview
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/zim/actions.py", line 55, in func
    self.func(instance, *arg, **kwarg)
  File "/usr/lib/pymodules/python2.7/zim/plugins/sourceview.py", line 108, in insert_sourceview
    lang = InsertCodeBlockDialog(self.ui).run() # XXX
AttributeError: 'MainWindowExtension' object has no attribute 'ui'
DEBUG: Running ErrorDialog

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

Fixed in rev695 + added to test suite

Changed in zim:
status: New → Fix Committed
Revision history for this message
Mark Bates (markbates) wrote :

same bug here.

zim0.61,
archlinux,
gtksourceview2-2.10.5-3,
pygtksourceview2-2.10.1-5

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

Fixed <= release 0.62

Changed in zim:
status: Fix Committed → Fix Released
Revision history for this message
Ramandeep (mongia-ramandeep) wrote :

I am getting the same error in zim-0.62. Is this expected:

This is zim 0.62
Platform: posix
Locale: en_IN UTF-8
FS encoding: UTF-8
Python: (2, 7, 3, 'final', 0)
Gtk: (2, 24, 10)
Pygtk: (2, 24, 0)
Zim revision is:
  branch: zim-trunk
  revision: 738 <email address hidden>
  date: 2014-09-30 21:17:15 +0200

======= Traceback =======
  File "/usr/lib/pymodules/python2.7/zim/actions.py", line 107, in func
    self.func(instance, active)
  File "/usr/lib/pymodules/python2.7/zim/plugins/spell.py", line 75, in toggle_spellcheck
    self.setup()
  File "/usr/lib/pymodules/python2.7/zim/plugins/spell.py", line 95, in setup
    ErrorDialog(self.ui, (
AttributeError: 'MainWindowExtension' object has no attribute 'ui'

Revision history for this message
Ramandeep (mongia-ramandeep) wrote :

Sorry about this, the issue I am facing is discussed in another ticket (https://bugs.launchpad.net/zim/+bug/1387188)

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.