kozec / syncthing-gtk

GTK3 & python based GUI for Syncthing
GNU General Public License v2.0
1.29k stars 140 forks source link

ImportError: Typelib file for namespace 'Atk', version '1.0' not found #462

Closed irregularisnotrandom closed 6 years ago

irregularisnotrandom commented 6 years ago

Previous version used to work, 0.9.4 does not

Debian Testing Buster

apt install gobject-introspection                                                                                                      :(
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gobject-introspection is already the newest version (1.56.1-1).
gobject-introspection set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/.mount_syncthbIPSiF/usr/lib/python2.7/site-packages/gi/importer.py", line 140, in load_module
    raise ImportError(e)
ImportError: Typelib file for namespace 'Atk', version '1.0' not found
Syncthing-GTK requires GTK and gobject-introspection packages.\n Please, install GTK3 and gobject-introspection packages using your package manager
/usr/bin/zenity: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or director
kozec commented 6 years ago

Atk should be part of gobject-introspection, but Debian tends to split packages randomly. Check if there is package with Atk in name.

irregularisnotrandom commented 6 years ago

Yeah I checked it already, I do not see any Atk there.

pirinto commented 6 years ago

@kozec , I got the same issue as @irregularisnotrandom regatrding the Atk1 part I'm running Mint 19 (based on Ubuntu 18.04)

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/.mount_Syncth1oWI1H/usr/lib/python2.7/site-packages/gi/importer.py", line 140, in load_module
    raise ImportError(e)
ImportError: Typelib file for namespace 'Atk', version '1.0' not found
Syncthing-GTK requires GTK and gobject-introspection packages.\n Please, install GTK3 and gobject-introspection packages using your package manager
/usr/bin/zenity: symbol lookup error: /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37: undefined symbol: gdk_wayland_display_get_type

I seem to have the libraries needed. At least regarding Atk

apt show  gir1.2-atk-1.0
Package: gir1.2-atk-1.0
Version: 2.28.1-1
Priority: optional
Section: introspection
Source: atk1.0
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Accessibility Team <pkg-a11y-devel@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 91,1 kB
Depends: gir1.2-glib-2.0 (>= 1.32.0), libatk1.0-0 (>= 2.12.0)
Homepage: https://wiki.gnome.org/Accessibility
Task: ubuntu-desktop, kubuntu-desktop, kubuntu-full, xubuntu-core, xubuntu-desktop, lubuntu-gtk-core, lubuntu-desktop-share, lubuntu-gtk-desktop, lubuntu-gtk-desktop, lubuntu-core, lubuntu-core, lubuntu-desktop, lubuntu-qt-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Supported: 5y
Download-Size: 17,8 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.acc.umu.se/ubuntu bionic/main amd64 Packages
Description: ATK accessibility toolkit (GObject introspection)
 ATK is a toolkit providing accessibility interfaces for applications or
 other toolkits. By implementing these interfaces, those other toolkits or
 applications can be used with tools such as screen readers, magnifiers, and
 other alternative input devices.

 This package can be used by other packages using the GIRepository format to
 generate dynamic bindings
apt policy gir1.2-atk-1.0
gir1.2-atk-1.0:
  Installed: 2.28.1-1
  Candidate: 2.28.1-1