Skip to content

Configuration warnings by sim.gmoccapy #2273

@smoe

Description

@smoe

Hello, Just to make a good impression on new users (and convey trust for those transitioning to the new release) we should avoid warnings on stdout/stderr. I came across

**** GMOCCAPY INFO ****
**** Entering make macro button
found 15 Macros
Macro go_to_position x-pos y-pos z-pos has image link
Image = /home/moeller/linuxcnc/configs/sim.gmoccapy/macros/images/goto_x_y_z.png
get button with image
Macro i_am_lost has image link
Image = /home/moeller/linuxcnc/configs/sim.gmoccapy/macros/images/i_am_lost.png
get button with image
Macro macro_8 has image link
Image = /home/moeller/linuxcnc/configs/sim.gmoccapy/macros/images/macro_8.png
get button with image
**** GMOCCAPY INFO ****

Why is this shown? Maybe a debug level wrongly set? The files are existing:

-rw-r--r-- 1 moeller moeller  24520 26. Dez 18:38 /home/moeller/linuxcnc/configs/sim.gmoccapy/macros/images/goto_x_y_z.png
-rw-r--r-- 1 moeller moeller  14074 26. Dez 18:38 /home/moeller/linuxcnc/configs/sim.gmoccapy/macros/images/i_am_lost.png
-rw-r--r-- 1 moeller moeller 222151 26. Dez 18:38 /home/moeller/linuxcnc/configs/sim.gmoccapy/macros/images/macro_8.png

I could open these files in gimp (macro_8 is very cute). So, maybe just not print this?

**** GMOCCAPY INFO ****
**** Place in table
/usr/bin/gmoccapy:1565: DeprecationWarning: Gtk.Table.resize is deprecated
  self.widgets.tbl_DRO.resize(rows, cols)
**** GMOCCAPY INFO ****

https://docs.gtk.org/gtk3/method.Table.resize.html mentions that this is deprecated since 3.4 and GtkGrid would resize automatically. Such dynamics may be interesting - after all, reactive web pages are a thing, too. No idea how will this works for us, though.

**** GMOCCAPY INFO ****
**** Gremlin Einrichtung gestartet ****
Found an error!
The following information may be useful in troubleshooting:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gladevcp/hal_gremlin.py", line 164, in do_set_property
    if self.lathe_option:
       ^^^^^^^^^^^^^^^^^
AttributeError: 'HAL_Gremlin' object has no attribute 'lathe_option'

The default "sim.gmoccapy" is a 3-axis mill and that is why that lathe_option is not present?!?
Directly underneath it states the following, which may be related (even though it does not look like it):

not enough values to unpack (expected 2, got 1)
'btn_sel_next'
'btn_sel_prev'
'btn_select'
'btn_home'
'btn_dir_up'
'btn_jump_to'
not enough values to unpack (expected 2, got 1)
not enough values to unpack (expected 2, got 1)
'IconFileSelection' object has no attribute 'on_btn_jump_to'
not enough values to unpack (expected 2, got 1)
not enough values to unpack (expected 2, got 1)

(gmoccapy:101189): Gtk-CRITICAL **: 22:43:43.955: gtk_tree_view_scroll_to_cell: assertion 'tree_view->priv->tree != NULL' failed

(gmoccapy:101189): Gtk-CRITICAL **: 22:43:44.047: gtk_entry_set_text: assertion 'text != NULL' failed
Attribute error <GParamString 'icon-theme-path'> and <class 'str'> sans 10
Attribute error <GParamString 'icon-theme-name'> and <class 'str'> sans 10
0  =  /usr/bin/gmoccapy
1  =  -ini
2  =  /home/moeller/linuxcnc/configs/sim.gmoccapy/gmoccapy.ini
Entry = trivkins
Entry = coordinates=xyz
found the following coordinates xyz

Harmless:

**** virtual keyboard program found : <onboard>
14:09:30.842 WARNING Config: mousetweaks GSettings schema not found, mousetweaks integration disabled.
/usr/bin/gmoccapy:3318: DeprecationWarning: Gtk.FontButton.get_font_name is deprecated
  self.notification.set_property('font', self.widgets.fontbutton_popup.get_font_name())
/usr/bin/gmoccapy:381: DeprecationWarning: Gtk.FontButton.set_font_name is deprecated
  self.widgets.fontbutton_popup.set_font_name(self.prefs.getpref("message_font", "sans 10", str))
/usr/bin/gmoccapy:476: DeprecationWarning: Gtk.ColorButton.set_color is deprecated
  self.widgets.abs_colorbutton.set_color(Gdk.color_parse(self.abs_color))

which has been deprecated with version 3.4 (according to https://athenajc.gitbooks.io/python-gtk-3-api/content/gtk-group/gtkcolorbutton.html) and we are requesting 3.11+ as a dependency.

Similarly:

**** GMOCCAPY INFO ****
**** Entering make touch button
/usr/bin/gmoccapy:972: DeprecationWarning: Gtk.Widget.override_background_color is deprecated
  btn.override_background_color(Gtk.StateFlags.ACTIVE, Gdk.RGBA(1.0, 1.0, 0.0, 1.0))
**** GMOCCAPY INFO ****

Maybe just give default settings?

**** GMOCCAPY GETINIINFO **** 
[KINS] KINESTYPE is trivkins
**** GMOCCAPY GETINIINFO **** 
No MIN_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file
Using default value of 0.1 degree / min
**** GMOCCAPY GETINIINFO **** 
No DEFAULT_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file
Using default value of 360 degree / min
**** GMOCCAPY GETINIINFO **** 
No MAX_RAPID_OVERRIDE entry found in [DISPLAY] of INI file 
 Default settings 100 % applied!
**** GMOCCAPY GETINIINFO **** 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions