python 2.7.2-2 crash

Bug #808973 reported by Diego Algara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scribes
New
Undecided
Unassigned

Bug Description

I updated python 2 and scribes no longer works:

$ scribes
[dwe@flexbook ~]$ Traceback (most recent call last):
  File "/usr/bin/scribes", line 11, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/SCRIBES/Main.py", line 8, in main
    __open()
  File "/usr/lib/python2.7/site-packages/SCRIBES/Main.py", line 24, in __open
    Manager().open_files(uris, "utf-8", stdin)
  File "/usr/lib/python2.7/site-packages/SCRIBES/InstanceManager.py", line 79, in open_files
    self.__new_editor(stdin=stdin)
  File "/usr/lib/python2.7/site-packages/SCRIBES/InstanceManager.py", line 163, in __new_editor
    Editor(self, str(uri), encoding, stdin)
  File "/usr/lib/python2.7/site-packages/SCRIBES/Editor.py", line 9, in __init__
    Initializer(self, manager, uri, encoding, stdin)
  File "/usr/lib/python2.7/site-packages/SCRIBES/ServicesInitializer.py", line 30, in __init__
    Manager(editor, uri)
  File "/usr/lib/python2.7/site-packages/SCRIBES/GUI/Manager.py", line 5, in __init__
    Manager(editor, uri)
  File "/usr/lib/python2.7/site-packages/SCRIBES/GUI/MainGUI/Manager.py", line 5, in __init__
    Manager(editor, uri)
  File "/usr/lib/python2.7/site-packages/SCRIBES/GUI/MainGUI/Window/Manager.py", line 5, in __init__
    Window(editor)
  File "/usr/lib/python2.7/site-packages/SCRIBES/GUI/MainGUI/Window/Window.py", line 8, in __init__
    self.__set_properties()
  File "/usr/lib/python2.7/site-packages/SCRIBES/GUI/MainGUI/Window/Window.py", line 36, in __set_properties
    if get_value(): self.__set_rgba()
  File "/usr/lib/python2.7/site-packages/SCRIBES/WidgetTransparencyMetadata.py", line 13, in get_value
    database.close()
UnboundLocalError: local variable 'database' referenced before assignment

Revision history for this message
Mystilleef (mystilleef) wrote :

Close all running scribes intances.

pkill scribes

or

killall scribes

Remove scribes using your package manager. Then reinstall scribes. See if that helps.

Revision history for this message
Diego Algara (diego-algara-deactivatedaccount) wrote :

The process exits when I press anything at the terminal, but I double checked and there where no scribes processes running.
Uninstalled with dependencies and reinstalled it in Archlinux with:
pacman -Rs scribes
pacman -S scribes

Same output.

This leads me to thing that there's an incompatibility issue with python 2.7.2-2, I'm using gnome 3 with Arch.
GNOME Shell 3.0.2
Scribes version 0.4-dev-build954
Linux flexbook 2.6.39-ARCH #1 SMP PREEMPT Sat Jul 9 14:57:41 CEST 2011 x86_64 Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz GenuineIntel GNU/Linux

Revision history for this message
Diego Algara (diego-algara-deactivatedaccount) wrote :

I just learned to rollback packages in Arch, so I rolled back python to the first version I had, didn't work either, and shows the same output, python2 version 2.7.1-9.

If I run scribes as root, I get a warning:
usr/lib/python2.7/site-packages/SCRIBES/Main.py:10: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
  main()

But scribes seems to work.

So I searched for it's config and deleted the folder, at ~/.config/scribes

Now my scribes it's working again, I don't have a clue of what happened...

Cheers, waiting for the next version!

Revision history for this message
Mystilleef (mystilleef) wrote :

Ah, I forgot about that. It's most likely an incompatibility with the database. I'm slowly moving Scribes to a new database storage format (sqlite). So this won't be a problem in the future.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.