PINCE icon indicating copy to clipboard operation
PINCE copied to clipboard

Pince doesn't start

Open Alib234 opened this issue 2 years ago • 3 comments

So after running the install script then running pince by doing sh PINCE.sh it gives this and then doesn't do anything

/home/alib234/Gits/PINCE/libpince/libscanmem/misc.py:24: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '4.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 985
QSocketNotifier: Can only be used with threads started with QThread
QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 985
/home/alib234/Gits/PINCE/PINCE.py:5613: Warning: cannot register existing type 'GtkWidget'
  app = QApplication(sys.argv)
/home/alib234/Gits/PINCE/PINCE.py:5613: Warning: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
  app = QApplication(sys.argv)
/home/alib234/Gits/PINCE/PINCE.py:5613: Warning: cannot register existing type 'GtkBuildable'
  app = QApplication(sys.argv)
/home/alib234/Gits/PINCE/PINCE.py:5613: Warning: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
  app = QApplication(sys.argv)
/home/alib234/Gits/PINCE/PINCE.py:5613: Warning: g_once_init_leave: assertion 'result != 0' failed
  app = QApplication(sys.argv)
/home/alib234/Gits/PINCE/PINCE.py:5613: Warning: g_type_register_static: assertion 'parent_type > 0' failed
  app = QApplication(sys.argv)

Alib234 avatar Aug 24 '22 11:08 Alib234

Which distro are you on?

korcankaraokcu avatar Aug 24 '22 17:08 korcankaraokcu

I'm on arch linux

Alib234 avatar Aug 27 '22 19:08 Alib234

so I finally did something towards trying to make this work I added import gi gi.require_version('Gtk', '4.0') below the import sys in the /libpince/libscanmem/misc.py script

now it tries to start but can't connect to display?

like if I run ./PINCE.sh it gives me `QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 985 QSocketNotifier: Can only be used with threads started with QThread QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 985 Invalid MIT-MAGIC-COOKIE-1 key

(python3:114608): Gtk-WARNING **: 03:50:53.268: cannot open display: :0`

and if I run QT_QPA_PLATFORM=xcb ./PINCE.sh it gives me `Invalid MIT-MAGIC-COOKIE-1 key qt.qpa.xcb: could not connect to display :0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

/home/alib234/Gits/PINCE/PINCE.sh: line 25: 114756 Aborted sudo -E python3 PINCE.py`

so not sure what's wrong after that one change but it seems to go further than without it

Alib234 avatar Sep 07 '22 01:09 Alib234

I fixed this by just adding sudo before sh PINCE.sh

jwkerr avatar Oct 05 '22 15:10 jwkerr

@Fruitloopins Thanks for the input, I've updated readme accordingly

korcankaraokcu avatar Oct 05 '22 22:10 korcankaraokcu

Linking this to #153

If you are still getting this error you can try the solutions in there

korcankaraokcu avatar Nov 08 '22 19:11 korcankaraokcu

Both installation and launcher scripts has been updated, there's no need to use sudo beforehand anymore

korcankaraokcu avatar May 07 '23 21:05 korcankaraokcu