Closed pawnhearts closed 9 years ago
@pawnhearts Спасибо за сообщение. 92e11d049f846686f408662f53614d9b852452a9 снизил минимальную версию до 3.10. Можно полный лог второй ошибки? Похоже на кривизну ранних версий PGI.
(gtk.py:9826): Gtk-WARNING **: Unknown property: GtkGrid.margin-start
(gtk.py:9826): Gtk-WARNING **: Unknown property: GtkGrid.margin-end
(gtk.py:9826): Gtk-WARNING **: Unknown property: GtkEntry.max-width-chars
(gtk.py:9826): Gtk-WARNING **: Unknown property: GtkScrolledWindow.margin-end
(gtk.py:9826): Gtk-WARNING **: Unknown property: GtkGrid.margin-start
(gtk.py:9826): Gtk-WARNING **: Unknown property: GtkGrid.margin-end Core/Core: GeoIP data file /usr/share/GeoIP/GeoIP.dat opened successfully. Traceback (most recent call last): File "/home/ph/Downloads/obozrenie/obozrenie/gtk_helpers.py", line 32, in get_icon_dict icon_dict[entry] = GdkPixbuf.Pixbuf.new_from_file_at_size(os.path.join(icon_dir, entry.lower() + "." + icon_format), width, height) gi._glib.GError: Failed to open file 'assets/pixmaps/obozrenie/flags/.svg': No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/ph/Downloads/obozrenie/obozrenie/gtk.py", line 509, in
@pawnhearts Похоже на баг в PythonGI, т.к. GLib.Error не наследует Exception. Не наша ошибка, но в коде подлатал. Должно работать.
Теперь запускается, но ругается на File "/home/ph/Downloads/obozrenie/obozrenie/backends/qstat.py", line 79, in stat_master qstatoutput, = subprocess.Popen(qstat_cmd, stdout=subprocess.PIPE).communicate() File "/usr/lib/python3.4/subprocess.py", line 848, in init restore_signals, start_new_session) File "/usr/lib/python3.4/subprocess.py", line 1446, in _execute_child raise child_exception_type(errno_num, err_msg) FileNotFoundError: [Errno 2] No such file or directory: 'qstat'
Надо где-то зависимости указать, в readme например?
Готово.
gtk+ 3.12 required, while ubuntu LTS has only 3.10 I suppose .ui file from glade should be saved in older format self.builder.add_from_file(GTK_UI_FILE) gi._glib.GError: assets/obozrenie/ui/obozrenie_gtk.ui: required gtk+ version 3.12, current version is 3.10
If I change 23 line in .ui file to
I get
gi._glib.GError: Failed to open file 'assets/pixmaps/obozrenie/flags/.svg': No such file or directory
error