Re: [gedit-list] How to activate external plugins on Gedit 2.30.1 on Windows?



Hi Jeffery,

Thank you for testing the plugins. I followed your advise and installed Gedit 3.20.1 from this link (https://download.gnome.org/binaries/win64/gedit/). After that I tried installing some plugins, and I can see them in "preferences" but they fail to load. cmd,exe displays this message:

(gedit.exe:2108): libpeas-WARNING **: Failed to run internal Python hook 'load':
TypeError: Couldn't find foreign struct converter for 'cairo.Context'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "peas-python-internal.py", line 71, in call
SystemError: <built-in function getattr> returned a result with an error set

(gedit.exe:2108): libpeas-WARNING **: Error loading plugin 'hide_header_buttons'

cmd.exe displays this message for these plugins: hide-header-buttons (https://github.com/seanh/gedit-hide-header-buttons), and plugin-installer (https://github.com/lwindolf/gedit-plugininstaller) and rest-plugin (https://github.com/bittner/gedit-reST-plugin). It shows the same error for built-in plugins "colorschemer" and "quickopen".

The built-in commander plugin fails to load and cmd.exe shows the following error:

(gedit.exe:12280): libpeas-WARNING **: The 'python' plugin loader has not been enabled

(gedit.exe:12280): libpeas-WARNING **: Error importing plugin 'commander':
Traceback (most recent call last):
  File "G:\gedit\lib\python3.5\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 662, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "G:\gedit\lib\gedit\plugins\commander\__init__.py", line 35, in <module>
    from windowactivatable import CommanderWindowActivatable
  File "G:\gedit\lib\gedit\plugins\commander\windowactivatable.py", line 23, in <module>
    from entry import Entry
  File "G:\gedit\lib\gedit\plugins\commander\entry.py", line 23, in <module>
    import cairo
  File "G:\gedit\lib\python3.5\site-packages\cairo\__init__.py", line 18, in <module>
    from ._cairo import *
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x83 in position 3: invalid start byte

(gedit.exe:12280): libpeas-WARNING **: Error loading plugin 'commander'


However, I was able to successfully activate some plugins: source-code-browser (https://github.com/toobaz/gedit-source-code-browser/) and macro plugin(https://github.com/DjouGoulart/gedit-macro) (though macro plugin doesn't work)


Regards,
Akshay



On Wednesday, October 30, 2019, 11:00:54 PM GMT+5:30, Jeffery To <jeffery to gmail com> wrote:


On Wed, Oct 30, 2019 at 11:46 PM akshay chavan <akshay_chavan2003 yahoo com> wrote:
I have installed Python 2.6 (it is in my PATH). But does gedit need Python installed? I can see a python26.dll in the gedit\bin directory.

I tried installing 2.30.1 (from download.gnome.org, for win32) in Windows 7 (did not separately install Python). I got the same error when activating the Advanced Find plugin, but I was able to activate the Python Console plugin (a Python plugin that ships with gedit) as well as (my own plugin) Control Your Tabs (v0.1.2), so I would guess that any plugin that uses Glade (to add custom UI) would not work.

My guess would be that the install package is missing the DLL for Glade, but I haven't been able to find any more information on this issue. 2.30.1 is a very old version so I don't think there would be much interest in figuring it out now.

I saw your previous email about 3.20.1. It's plugin support should be better. (Not sure about the menu bar, but it should still have the "hamburger" menu button.)

Jeff



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]