Gnome 3 support or Python 2.7

Asked by deimidis on 2011-04-23

Hi, I used scribes using RPM repository in a Fedora 15 alpha installation, but since one week I couldn't start it anymore. This is what appear in terminal when I execute it:

$ Traceback (most recent call last):
  File "/usr/bin/scribes", line 11, in <module>
  File "/usr/lib/python2.7/site-packages/SCRIBES/", line 8, in main
  File "/usr/lib/python2.7/site-packages/SCRIBES/", line 24, in __open
    Manager().open_files(uris, "utf-8", stdin)
  File "/usr/lib/python2.7/site-packages/SCRIBES/", line 79, in open_files
  File "/usr/lib/python2.7/site-packages/SCRIBES/", line 162, in __new_editor
    from Editor import Editor
  File "/usr/lib/python2.7/site-packages/SCRIBES/", line 1, in <module>
    import EditorImports
  File "/usr/lib/python2.7/site-packages/SCRIBES/", line 11, in <module>
    from gtksourceview2 import language_manager_get_default
ImportError: No module named gtksourceview2

Then scribes window didn't appear, but terminal is still open. Thanks!

Question information

English Edit question
Scribes Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Mystilleef (mystilleef) said : #1

Make sure you have gtksourceview2 installed.

deimidis (guillermo-movia) said : #2

I had installed it, plus devel rpm of the same library. But I have gtksourceview3 too, because Fedora use Gnome3 libraries

Mystilleef (mystilleef) said : #3

Do the following at a shell terminal.

import gtksourceview2

Let me know if you get any errors.

deimidis (guillermo-movia) said : #4

Python 2.7.1 (r271:86832, Apr 12 2011, 16:16:18)
[GCC 4.6.0 20110331 (Red Hat 4.6.0-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtksourceview2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gtksourceview2

But I have installed the package for Fedora


Mystilleef (mystilleef) said : #5

For some reason your system is not detecting it. I suggest you try reinstalling it.

Mystilleef (mystilleef) said : #6

yum install pygtksourceview

That should solve the problem.

deimidis (guillermo-movia) said : #7

I reinstalled scribes and this libreries. I don't get the error anymore, but this write at console:

** (scribes:2717): WARNING **: Failed to send buffer

** (scribes:2717): WARNING **: Failed to send buffer

And scribes window never appear, but python begin to use 99% of the cpu, and I see scribes process with ps aux

Mystilleef (mystilleef) said : #8

I just installed on Fedora 15 Beta and I can not reproduce the problem. Can you install using these instructions and test again?

deimidis (guillermo-movia) said : #9

Yes, works fine. Put this in console, but scribes works again:

 /usr/lib/python2.7/site-packages/SCRIBES/ Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed

Thansk for your help!

aj (ajkaanbal) said : #10

install pygtksourceview works for me in fedora 14.