NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.39k stars 14.34k forks source link

syncthing-gtk cannot start: "ImportError: cannot import name Gtk" #21717

Closed jpdoyle closed 7 years ago

jpdoyle commented 7 years ago

Issue description

After successfully setting up syncthing, I installed syncthing-gtk (python27Packages.syncthing-gtk). It installed without errors, but it won't start when I try to run it.

Steps to reproduce

The full traceback I saw was:

Traceback (most recent call last):
  File "/nix/store/gx1g39b3ifp5v2cjxs812klx37n04six-python2.7-syncthing-gtk-0.6.3/bin/.syncthing-gtk-wrapped", line 15, in <module>
    from syncthing_gtk.tools import init_logging
  File "/nix/store/gx1g39b3ifp5v2cjxs812klx37n04six-python2.7-syncthing-gtk-0.6.3/lib/python2.7/site-packages/syncthing_gtk/__init__.py", line 13, in <module>
    from uibuilder                      import UIBuilder
  File "/nix/store/gx1g39b3ifp5v2cjxs812klx37n04six-python2.7-syncthing-gtk-0.6.3/lib/python2.7/site-packages/syncthing_gtk/uibuilder.py", line 16, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Technical details

jokogr commented 7 years ago

@jpdoyle Could you report back the syncthing and syncthing-gtk versions you are using?

Edit: Never mind, I have just seen the traceback and can tell version 0.6.3 of syncthing-gtk is quite old. Let me try to backport a newer one for 16.09.

FRidh commented 7 years ago

how is it since #21721 has been merged?

jpdoyle commented 7 years ago

syncthing-gtk is now working like a charm. Thanks!