Gtk applications problem

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Gtk applications problem

Postby mezcal » Fri Aug 04, 2017 7:15 am

Hello,
anyone had luck using the Gtk in the rpi.

I`m trying to use rpi as a pdf presenter.

First I have installed impressive. It is not working.
Code: Select all
Welcome to Impressive version 0.11.1
Detected screen size: 1920x1080 pixels
PDF renderer: Xpdf/Poppler
libEGL warning: DRI2: failed to authenticate
FATAL: failed to create rendering surface in the desired resolution (1920x1080)


So I have written simple python application. It isn`t working too. It can`t import Gtk module.
Code: Select all
/usr/lib/python3.6/site-packages/gi/module.py:178: Warning: type name 'EtkActio.able' contains invalid characters
  g_type = info.get_g_type()
/usr/lib/python3.6/site-packages/gi/module.py:178: Warning: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
  g_type = info.get_g_type()
/usr/lib/python3.6/site-packages/gi/module.py:178: Warning: g_once_init_leave: assertion 'result != 0' failed
  g_type = info.get_g_type()
/usr/lib/python3.6/site-packages/gi/module.py:178: Warning: g_type_add_interface_static: assertion 'g_type_parent (interface_type) == G_TYPE_INTERFACE' failed
  g_type = info.get_g_type()


Simple python app which is not working.
Code: Select all
#!/usr/bin/env python
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk

win = Gtk.Window()
win.connect("delete-event", Gtk.main_quit)
win.show_all()
Gtk.main()


I have also installed pdfpc. It is c++. The same problem.
Code: Select all
(pdfpc:7874): GLib-GObject-WARNING **: type name 'EtkActio.able' contains invalid characters
(pdfpc:7874): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
(pdfpc:7874): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(pdfpc:7874): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion 'g_type_parent (interface_type) == G_TYPE_INTERFACE' failed
(pdfpc:7874): GLib-GObject-WARNING **: g_object_class_override_property: Can't find property to override for 'GtkMenuItem::action-name'
(pdfpc:7874): GLib-GObject-WARNING **: g_object_class_override_property: Can't find property to override for 'GtkMenuItem::action-target'


Finally I have installed raspbian. Impressive and my python app is working. I think the problem must be with compilation of the archlinuxarm.
Any idea how to fix it. I would rather use archlinux then raspbian.
mezcal
 
Posts: 1
Joined: Fri Aug 04, 2017 6:47 am

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 6 guests