lvaz/gedit-custom-indent — Issue #2: sqlite3.OperationalError: unable to open database file
Author: pwaller
Created: 2012-03-09 17:51:13+00:00
State: open

I installed gci by symlinking it and the gedit-plugin file to the plugins directory. I get the following failure.

Traceback (most recent call last):
File "/home/pwaller/.gnome2/gedit/plugins/gci/__init__.py", line 53, in activate
self._instances[window] = GciPluginHelper(window)
File "/home/pwaller/.gnome2/gedit/plugins/gci/__init__.py", line 31, in __init__
utils.apply_settings_to_documents(window)
File "/home/pwaller/.gnome2/gedit/plugins/gci/utils.py", line 44, in apply_settings_to_documents
for doc in window.get_documents():
File "/home/pwaller/.gnome2/gedit/plugins/gci/__init__.py", line 49, in __init__
settings.init_settings(self._data_dir)
File "/home/pwaller/.gnome2/gedit/plugins/gci/settings.py", line 44, in init_settings
_db_conn = sqlite3.connect(_db_path)
sqlite3.OperationalError: unable to open database file
Traceback (most recent call last):
File "/home/pwaller/.gnome2/gedit/plugins/gci/__init__.py", line 38, in on_document_loaded
utils.apply_settings_to_document(doc)
File "/home/pwaller/.gnome2/gedit/plugins/gci/utils.py", line 38, in apply_settings_to_document
lang_data = settings.get_lang_data(lang.get_id())
File "/home/pwaller/.gnome2/gedit/plugins/gci/settings.py", line 78, in get_lang_data
cur = _db_conn.cursor()
AttributeError: 'NoneType' object has no attribute 'cursor'