Zim

Error loading spell plugin

Bug #1545451 reported by Jens Sauer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Invalid
Undecided
Unassigned

Bug Description

Debian stretch
Zim: 0.65
python-gtkspellcheck: 3.0-1.1
Gtk version is (2, 24, 29)
Pygtk version is (2, 24, 0)

I wanted to activate the spellcheck plugin, but can't find it in the list of plugins.

Running "zim -D", I got the following error after opening the preferences dialog:

ERROR: Could not load plugin spell
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/zim/gui/preferencesdialog.py", line 307, in __init__
    klass = self.plugins.get_plugin_class(key)
  File "/usr/lib/python2.7/dist-packages/zim/plugins/__init__.py", line 208, in get_plugin_class
    mod = get_module(modname)
  File "/usr/lib/python2.7/dist-packages/zim/utils.py", line 33, in get_module
    mod = __import__(name)
  File "/usr/lib/python2.7/dist-packages/zim/plugins/spell.py", line 22, in <module>
    import gtkspellcheck
  File "/usr/lib/python2.7/dist-packages/gtkspellcheck/__init__.py", line 57, in <module>
    from gtkspellcheck.spellcheck import SpellChecker
  File "/usr/lib/python2.7/dist-packages/gtkspellcheck/spellcheck.py", line 32, in <module>
    from pylocales import code_to_name
  File "/usr/lib/python2.7/dist-packages/pylocales/__init__.py", line 55, in <module>
    from pylocales.locales import *
  File "/usr/lib/python2.7/dist-packages/pylocales/locales.py", line 54, in <module>
    _database = sqlite3.connect(os.path.join(__path__, 'locales.db'))
OperationalError: unable to open database file

The file 'locales.db' in /usr/lib/python2.7/dist-packages/pylocales/ is a symbolic link to
/usr/share/pyshared/pylocales/locales.db which is part of the same package.

Because the python-gtkspellcheck package is unchanged since 2013, I thought it could be a bug in zim.

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

I think it is a problem with gtkspellcheck, not with zim. Looking at the error log you see the error happens as soon as zim tries to import the package.

To verify you could just run python from a terminal and try "import gtkspellcheck" - expect it will give the same error.

Regards,

Jaap

Changed in zim:
status: New → Incomplete
Revision history for this message
Jens Sauer (jsauer-deactivatedaccount) wrote :

Hi Jaap,
you are right. The same error occurs when running python from terminal.
I just didn't know how to verify that.

Regards,

Jens

Changed in zim:
status: Incomplete → Invalid
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.