You are not logged in.

#1 2013-07-12 06:40:45

drahnr
Member
Registered: 2011-03-14
Posts: 73

[solved] gedit plugins fail to load

Not all plugins fail to load, just snippets, external tools, ....

# gedit --version
gedit - Version 3.8.3
Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/externaltools/__init__.py", line 33, in do_activate
    ToolLibrary().set_locations(os.path.join(self.plugin_info.get_data_dir(), 'tools'))
  File "/usr/lib/gedit/plugins/externaltools/library.py", line 66, in set_locations
    self.tree = ToolDirectory(self, '')
  File "/usr/lib/gedit/plugins/externaltools/library.py", line 152, in __init__
    self._load()
  File "/usr/lib/gedit/plugins/externaltools/library.py", line 172, in _load
    self.tools.append(Tool(self, p))
  File "/usr/lib/gedit/plugins/externaltools/library.py", line 222, in __init__
    self._load()
  File "/usr/lib/gedit/plugins/externaltools/library.py", line 251, in _load
    for line in fp:
  File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 86: ordinal not in range(128)


(gedit:1603): Gtk-WARNING **: Inserting action group 'ExternalToolsPluginActions' into UI manager which already has a group with this name

Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/externaltools/windowactivatable.py", line 205, in do_activate
    "/MenuBar/ToolsMenu/ToolsOps_4/ExternalToolsMenu/ExternalToolPlaceholder")
  File "/usr/lib/gedit/plugins/externaltools/windowactivatable.py", line 40, in __init__
    self.update()
  File "/usr/lib/gedit/plugins/externaltools/windowactivatable.py", line 113, in update
    self._insert_directory(self._library.tree, self._menupath)
AttributeError: 'ToolLibrary' object has no attribute 'tree'
do_deactivate view None
Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/externaltools/windowactivatable.py", line 223, in do_deactivate
    self.menu.deactivate()
AttributeError: 'NoneType' object has no attribute 'deactivate'
Traceback (most recent call last):
  File "/home/bernhard/.local/share/gedit/plugins/codecompletion/__init__.py", line 42, in do_deactivate
    self.window.disconnect(self.tab_added_id)
AttributeError: 'CodeCompletionWindowActivateable' object has no attribute 'tab_added_id'
Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/snippets/windowactivatable.py", line 71, in do_deactivate
    if self.accel_group:
AttributeError: 'WindowActivatable' object has no attribute 'accel_group'

Is that a known bug or the plugins just outdated?

Last edited by drahnr (2013-11-22 11:29:46)

Offline

#2 2013-07-19 00:35:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] gedit plugins fail to load

I installed gedit & gedit-plugins, checked the boxes for the plugins you mentioned and ... nothing bad happened.

$ gedit

** (gedit:25335): WARNING **: Could not load theme icon user-bookmarks-symbolic: Icon 'user-bookmarks-symbolic' not present in theme

** (gedit:25335): WARNING **: Could not load theme icon user-home-symbolic: Icon 'user-home-symbolic' not present in theme

** (gedit:25335): WARNING **: Could not load theme icon drive-harddisk-symbolic: Icon 'drive-harddisk-symbolic' not present in theme

** (gedit:25335): WARNING **: Could not load theme icon system-file-manager: Icon 'system-file-manager' not present in theme

Next time I load gedit, the boxes remain checked and I still have no issues.

I don't know a thing about gedit, so if loading the plugins means something else than just ticking them in the preferences, you will have to spell it out for me :-)

Offline

#3 2013-07-19 06:02:36

drahnr
Member
Registered: 2011-03-14
Posts: 73

Re: [solved] gedit plugins fail to load

No nothing special just fireing up gedit from terminal, nor did I hack around in any folder. I am bit puzzled on how to fix this. I already tried reinstalling via `pacman -S gedit-plugins python` - with and without `--force`

Offline

#4 2013-11-22 11:29:27

drahnr
Member
Registered: 2011-03-14
Posts: 73

Re: [solved] gedit plugins fail to load

Solution:

change

LANG=C

to

LANG=de_DE.UTF-8

See https://wiki.archlinux.org/index.php/locale for details

Last edited by drahnr (2013-11-22 11:32:12)

Offline

Board footer

Powered by FluxBB