Zim

Source View plugin install

Asked by Jeff Wood on 2016-07-20

This question is based on the manual page at http://zim-wiki.org/manual/Plugins/Source_View.html

I've downloaded the gtksourceview and python-gtksourceview2 both via the following command lines

$ sudo apt-get instll gtksourceview python-gtksourceview2
$ sudo pip instll gtksourceview python-gtksourceview2

But it does not seem to be working since the entry 'Source View' does not show up under Edit>>Preferences>>Plugins selection.

Which install should I be running and is there anything I can do (in terms of apt-get commands) to ensure a proper install.

Is there anything else I should be doing? For example, I'm not sure what I should be doing with the location ~/.local/lib/python2.6/site-packages

Question information

Language:
English Edit question
Status:
Answered
For:
Zim Edit question
Assignee:
No assignee Edit question
Last query:
2016-08-09
Last reply:
2019-06-05

This question was originally filed as bug #1604691.

Jeff Wood (jeffwood314) said : #1

This question is based on the manual page at http://zim-wiki.org/manual/Plugins/Source_View.html

I've downloaded the gtksourceview and python-gtksourceview2 both via the following command lines

$ sudo apt-get instll gtksourceview python-gtksourceview2
$ sudo pip instll gtksourceview python-gtksourceview2

But it does not seem to be working since the entry 'Source View' does not show up under Edit>>Preferences>>Plugins selection.

Which install should I be running and is there anything I can do (in terms of apt-get commands) to ensure a proper install.

Is there anything else I should be doing? For example, I'm not sure what I should be doing with the location ~/.local/lib/python2.6/site-packages

Do you mean that you cannot see the plugin at all in the list, or do you mean that you see the plugin but you cannot enable it?

If you do not see it at all, it has nothing to do with dependency, it means the plugin is not installed. Maybe you are runnign an older version of zim?

If you see the plugin, but it cannot be enabled the gtksourceview python module could not be loaded for some reason. But above install commands should be good enough to fix that.

REgards,

Jaap

Jeff Wood (jeffwood314) said : #3

Correct. I cannot see the plugin at all in the list. I am running zim 0.6.

Is this the latest?

-Jeff

No, we are on 0.65 by now - see http://zim-wiki.org/downloads.html

Regards,

Jaap

On Tue, Aug 9, 2016 at 3:32 PM Jeff Wood <
<email address hidden>> wrote:

> Question #299031 on Zim changed:
> https://answers.launchpad.net/zim/+question/299031
>
> Status: Answered => Open
>
> Jeff Wood is still having a problem:
> Correct. I cannot see the plugin at all in the list. I am running zim
> 0.6.
>
> Is this the latest?
>
> -Jeff
>
> --
> You received this question notification because you are an answer
> contact for Zim.
>

madtom1999 (tompotts) said : #5

I'm getting this problem with 0.71.1 In Edit/Preferences/Plugins attempting to click Source View complains it cant find GtkSourceView despite :
 sudo apt-get install python-gtksourceview2
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-gtksourceview2 is already the newest version (2.10.1-3).

and
sudo apt-get install libgtksourceview-3.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libgtksourceview-3.0-common' for regex 'libgtksourceview-3.0'
Note, selecting 'libgtksourceview-3.0-dev' for regex 'libgtksourceview-3.0'
Note, selecting 'libgtksourceview-3.0-doc' for regex 'libgtksourceview-3.0'
Note, selecting 'libgtksourceview-3.0-1' for regex 'libgtksourceview-3.0'
libgtksourceview-3.0-1 is already the newest version (3.24.7-1).
libgtksourceview-3.0-common is already the newest version (3.24.7-1).
libgtksourceview-3.0-dev is already the newest version (3.24.7-1).
libgtksourceview-3.0-doc is already the newest version (3.24.7-1).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

Zim 0.70 and up is based on Gtk3 and Python3, so you need
"libgtksourceview-3.0"
and the "GI" introspection files for that package.

-- Jaap

On Wed, Jun 5, 2019 at 12:26 PM madtom1999 <
<email address hidden>> wrote:

> Question #299031 on Zim changed:
> https://answers.launchpad.net/zim/+question/299031
>
> madtom1999 posted a new comment:
> I'm getting this problem with 0.71.1 In Edit/Preferences/Plugins
> attempting to click Source View complains it cant find GtkSourceView
> despite :
> sudo apt-get install python-gtksourceview2
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> python-gtksourceview2 is already the newest version (2.10.1-3).
>
>
> and
> sudo apt-get install libgtksourceview-3.0
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Note, selecting 'libgtksourceview-3.0-common' for regex
> 'libgtksourceview-3.0'
> Note, selecting 'libgtksourceview-3.0-dev' for regex 'libgtksourceview-3.0'
> Note, selecting 'libgtksourceview-3.0-doc' for regex 'libgtksourceview-3.0'
> Note, selecting 'libgtksourceview-3.0-1' for regex 'libgtksourceview-3.0'
> libgtksourceview-3.0-1 is already the newest version (3.24.7-1).
> libgtksourceview-3.0-common is already the newest version (3.24.7-1).
> libgtksourceview-3.0-dev is already the newest version (3.24.7-1).
> libgtksourceview-3.0-doc is already the newest version (3.24.7-1).
> 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
>
> --
> You received this question notification because you are an answer
> contact for Zim.
>

madtom1999 (tompotts) said : #7

libgtksourceview-3.0-1 is already the newest version (3.24.7-1).

madtom1999 (tompotts) said : #8

A reboot seems to have solved the problem!

Can you help with this problem?

Provide an answer of your own, or ask Jeff Wood for more information if necessary.

To post a message you must log in.