Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: When using gi.repository you must not import static modules like "gobject" #173

Closed
infendory opened this issue Nov 10, 2016 · 2 comments
Labels
Milestone

Comments

@infendory
Copy link

infendory commented Nov 10, 2016

This error is flooding my /home/xxx/.config/rabbitvcs/RabbitVCS.log and eating my free space. The log is already 2.3GB.
By the way, .config is not a good place for large logs. Consider ~/.local/share
RabbitVCS 0.16.0

None
2016-11-10 13:40:07,306 ERROR   rabbitvcs.services.checkerservice       org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.7/dist-packages/rabbitvcs/services/checkerservice.py", line 185, in GenerateMenuConditions
    path_dict = self.status_checker.generate_menu_conditions(upaths)
  File "/usr/lib/python2.7/dist-packages/rabbitvcs/services/statuschecker.py", line 53, in generate_menu_conditions
    from rabbitvcs.util.contextmenu import MainContextMenuConditions
  File "/usr/lib/python2.7/dist-packages/rabbitvcs/util/contextmenu.py", line 45, in <module>
    from contextmenuitems import *
  File "/usr/lib/python2.7/dist-packages/rabbitvcs/util/contextmenuitems.py", line 381, in <module>
    class MenuRepoBrowser(MenuItem):
  File "/usr/lib/python2.7/dist-packages/rabbitvcs/util/contextmenuitems.py", line 385, in MenuRepoBrowser
    icon = gtk.STOCK_FIND
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 64, in __getattr__
    raise AttributeError(_static_binding_error)
AttributeError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183

@gilder0
Copy link

gilder0 commented Apr 2, 2017

Try my fix for this :
#189

@adamplumb
Copy link

This should be changed on master now. Thanks for the PR!

@adamplumb adamplumb added the bug label Jun 21, 2017
@adamplumb adamplumb modified the milestone: v0.17 Jun 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants