giobauermeister / gedit-pair-char-autocomplete

Automatically exported from code.google.com/p/gedit-pair-char-autocomplete
1 stars 0 forks source link

"Could not find loader `python' for plugin `Pair Character Completion'" on FreeBSD with XFCE #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. After having ran install.sh, run Gedit in cmdline
2. Go to Edit > Preferences > Plugins and try to tick Pair Character Completion
3. It greys out and become untickable 

What is the expected output? What do you see instead?
The expected output should be the plugin to be ticked and works. Instead, the 
error message I see in the console is the following:
---------[BEGINS]--------
(gedit:29650): GLib-GObject-WARNING **: Two different plugins tried to register 
'GeditPluginLoaderC'.

(gedit:29650): GLib-GObject-CRITICAL **: void 
g_type_add_interface_dynamic(GType, GType, GTypePlugin *): assertion 
`G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

** (gedit:29650): WARNING **: Invalid object contained by module libcloader.so

(gedit:29650): GLib-GObject-WARNING **: gtypemodule.c:111: unsolicitated 
invocation of g_object_run_dispose() on GTypeModule

** (gedit:29650): WARNING **: Plugin loader module 
`/usr/local/lib/gedit-2/plugin-loaders/libcloader.so' could not be loaded

** (gedit:29650): WARNING **: Could not find loader `python' for plugin `Pair 
Character Completion'
---------[FINISHES]--------

What version of the product are you using? On what operating system?
I'm using Gedit v2.30.4 on FreeBSD 10.0 running with XFCE.

Please provide any additional information below.

Original issue reported on code.google.com by destroy....@gmail.com on 7 Jul 2014 at 10:06

GoogleCodeExporter commented 8 years ago
Can you try the gedit 3 version of the plugin 
(https://gedit-pair-char-autocomplete.googlecode.com/files/gedit-pair-char-compl
etion-1.0.6-gnome3.tar.gz). It uses the python3 loader instead of the python 2 
one.

Original comment by kevin.mcguinness@gmail.com on 7 Jul 2014 at 12:20

GoogleCodeExporter commented 8 years ago
Hi Kevin,

Thanks for your reply. Unfortunately, trying to install the gedit 3 version of 
the plugin makes it not appearing at all in the plugins list. So I can't check 
whether it's tickable or not.
Afterall, shouldn't it be the expected output as I'm running Gedit v2.30.4 ? I 
don't want to use Gedit 3 because of the fact there are less plugins available 
for it.

Original comment by destroy....@gmail.com on 7 Jul 2014 at 12:45

GoogleCodeExporter commented 8 years ago
That is to say that I'm experiencing the same issue with many other plugins 
such as multi-edit for instance. I have tried to update python to version 3 but 
it seemed to have no effect on the plugins.
Do you have any idea on where I should investigate?

Many thanks!

Original comment by destroy....@gmail.com on 7 Jul 2014 at 12:54

GoogleCodeExporter commented 8 years ago
Hmm.. seems the FreeBSD package for gedit doesn't include a python loader 
(which should be installed as 
/usr/local/lib/gedit-2/plugin-loaders/libpythonloader.so as far as I know). Not 
sure how to fix this -- you might need to build gedit yourself or use ports.

Original comment by kevin.mcguinness@gmail.com on 7 Jul 2014 at 1:35

GoogleCodeExporter commented 8 years ago
I have removed the Gedit package and re-installed it using ports. It seems the 
problem still remains and I don't have 
/usr/local/lib/gedit-2/plugin-loaders/libpythonloader.so.

What do you mean by build gedit myself? How one can do this?

Original comment by destroy....@gmail.com on 7 Jul 2014 at 2:10

GoogleCodeExporter commented 8 years ago
I have managed to find the required file over the internet and put it to the 
right folder. Now the console states that "** (gedit:10023): WARNING **: 
libpythonloader.so: Shared object "libpython2.6.so.1.0" not found, required by 
"libpythonloader.so"" which I have been able to also find over the internet. 
However, putting it in the same directory that libpythonloader.so doesn't seem 
to make the trick. Where should "libpython2.6.so.1.0" be?

PS : I tried to download the source of Gedit 2.30.4 and run "./configure" then 
"make" but stops when it comes to compile "marshal.c"

Original comment by destroy....@gmail.com on 7 Jul 2014 at 3:18

GoogleCodeExporter commented 8 years ago
Sounds like the version of libpythonloader.so you downloaded is linked against 
python 2.6. FreeBSD 10 uses python 2.7 by default.

Haven't used BSD unix in a few years myself, so can't really help with 
specifics of package managers and compilation. Someone on the FreeBSD forums 
might be able to help though: https://forums.freebsd.org/

Original comment by kevin.mcguinness@gmail.com on 7 Jul 2014 at 3:29