self-installed plugins grey-out when trying to activate

Asked by dsdarrow

I've installed several plugins using package manager but if I install them myself they will show up in the preferences | plugins listing but when I click on them to activate their heading in the menu greys-out and the check box will not activate...and, of course, the plugin never works. One thing I've noticed is that the plugins which use a Python __init__.py initializer fail even when called from the command line reporting "import gedit failed" which it does not do for any other packages it tries to import. I don't know enough Python to say whether it _should_fail when run from the command line or not; it's just something that I noticed.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Solved by:
dsdarrow
Solved:
Last query:
Last reply:
Revision history for this message
dsdarrow (dsdarrow01) said :
#1

Since that note I've noticed one other facet which causes me to believe that some piece is missing. I tried one other plugin, openuri.plugin, which _did_ install and activate properly. I tried it because it's python init did _not_ have a import gedit statement in it. So I really think that some lib or some meta package is missing or defined incorrectly on my system but I don't know enough python (or I'm too dim-witted) to figure out what it is or where it's supposed to be. Anyone who knows more about the inner workings of python or gedit have an idea what 'gedit' it is supposed to import or where it should be located? Im using a stock Ubuntu 9.10 system that was installed originally from a Canonial supplied disk (a beta version) that has been upgraded, on line to the release version.

Revision history for this message
dsdarrow (dsdarrow01) said :
#2

problem solved, at least a major work-around. In the hope that this may prove usefull to someone else, I'll explain how I did it here. I found this command line on the web page of the developer of TextWrap:

gconftool --get /apps/gedit-2/plugins/active-plugins | grep "TextWrap" >/dev/null ||
( OLDVALUE=$(gconftool --get /apps/gedit-2/plugins/active-plugins);
NEWVALUE=$(echo $OLDVALUE | sed 's/\[/\[TextWrap,/');
gconftool --set --type=list --list-type=string /apps/gedit-2/plugins/active-plugins $NEWVALUE )

I've run this script as login, with the name changed to the name of the plugin I wanted to install and it now works. So it's now solved though I don't know how nor why it wasn't working before.