2.9.0-pre0-4388-gc2838822c / Gmoccapy >> Py 3 // gladevcp/iconview.py
- robertspark
- Offline
- Platinum Member
-
- Posts: 915
- Thank you received: 216
somewhere between Gmoccapy (the change to Python 3) and the file gladevcp/iconview.py
there is an error loading Gmoccapy
(bit better / more detailed explanation in the attached report)
Traceback (most recent call last):
File "/usr/bin/gmoccapy", line 5299, in <module>
app = gmoccapy(sys.argv)
File "/usr/bin/gmoccapy", line 328, in __init__
self._init_IconFileSelection()
File "/usr/bin/gmoccapy", line 2101, in _init_IconFileSelection
self.widgets.IconFileSelection1.show_filelabel(False)
File "/usr/lib/python3/dist-packages/gladevcp/iconview.py", line 404, in show_filelabel
self.file_label.hide()
AttributeError: 'IconFileSelection' object has no attribute 'file_label'
(gmoccapy:10763): Gtk-WARNING **: 11:54:29.634: Invalid icon size 48
(gmoccapy:10763): Gtk-WARNING **: 11:54:29.636: Invalid icon size 48
/usr/bin/gmoccapy:717: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: wiki.gnome.org/PyGObject/InitializerDeprecations
lbl = Gtk.Label("")
/usr/bin/gmoccapy:735: DeprecationWarning: Gtk.Image.set_from_stock is deprecated
image.set_from_stock(stock, 48)
/usr/bin/gmoccapy:896: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: wiki.gnome.org/PyGObject/InitializerDeprecations
btn = Gtk.ToggleButton(_(" edit\noffsets"))
/usr/bin/gmoccapy:900: DeprecationWarning: Gtk.Widget.modify_bg is deprecated
btn.modify_bg(Gtk.StateFlags.ACTIVE, Gdk.color_parse("#FFFF00"))
/usr/bin/gmoccapy:944: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: wiki.gnome.org/PyGObject/InitializerDeprecations
btn = Gtk.Button(_("zero\n G92"))
/usr/bin/gmoccapy:959: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: wiki.gnome.org/PyGObject/InitializerDeprecations
btn = Gtk.Button(_(" set\nselected"))
/usr/bin/gmoccapy:1168: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: wiki.gnome.org/PyGObject/InitializerDeprecations
btn = Gtk.Button(name.upper())
/usr/bin/gmoccapy:1374: DeprecationWarning: Gtk.Table.resize is deprecated
self.widgets.tbl_jog_btn_axes.resize(3,3)
(gmoccapy:10763): Gtk-WARNING **: 11:54:30.499: Invalid icon size 48
(gmoccapy:10763): Gtk-WARNING **: 11:54:30.500: Invalid icon size 48
(gmoccapy:10763): Gtk-CRITICAL **: 11:54:32.134: gtk_text_buffer_remove_tag: assertion 'tag->priv->table == buffer->priv->tag_table' failed
(gmoccapy:10763): Gtk-CRITICAL **: 11:54:32.135: gtk_text_buffer_remove_tag: assertion 'tag->priv->table == buffer->priv->tag_table' failed
(gmoccapy:10763): Gtk-WARNING **: 11:54:32.267: Invalid icon size 48
(gmoccapy:10763): Gtk-WARNING **: 11:54:32.268: Invalid icon size 48
(gmoccapy:10763): Gtk-WARNING **: 11:54:32.389: Invalid icon size 48
(gmoccapy:10763): Gtk-WARNING **: 11:54:32.390: Invalid icon size 48
(gmoccapy:10763): Gtk-WARNING **: 11:54:32.594: Invalid icon size 48
(gmoccapy:10763): Gtk-WARNING **: 11:54:32.594: Invalid icon size 48
Attachments:
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7884
- Thank you received: 2131
Have you modified anything?
is this error present on sim configs?
Does the error show right away or do you do something to invoke it?
I do not see this error - nor how it could happen. I use mint 20 though
Please Log in or Create an account to join the conversation.
- robertspark
- Offline
- Platinum Member
-
- Posts: 915
- Thank you received: 216
Linuxcnc kept up to date via buildbot to master, daily updated.
Yes the error is apparent on sim and my configs.
No, I do not believe that I have modified anything, but anything is a bit of a wide sweeping statement...... as I obviously have other applications installed such as sheetcam, estlcam via play on linux.
Yes the error shows up at the time of loading.
I am going to back up my configs, wipe and install fresh from 2.8.2 iso shortly.
I will report back, as I "should" just be able to install from clean iso install..... change to buildbot master .... and 2.9 + gmoccapy via configs should work.....
I have removed nativeCAM for the time being.
I will report back later.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7884
- Thank you received: 2131
I'm not sure what the minimum python3/GTK3 version is.
So you are not compiling - you are using buildbot binaries?
I had a little trouble compiling linuxcnc on mint 19 - had to backport python-yapps2 (unrelated to your problem)
Chris
Please Log in or Create an account to join the conversation.
- robertspark
- Offline
- Platinum Member
-
- Posts: 915
- Thank you received: 216
changed sources to buildbot master, and updated
created new Gmoccapy Sim (lathe) and was given the same message
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
- Posts: 5723
- Thank you received: 2095
I do get a lot of deprecation warnings but no errors.
Please Log in or Create an account to join the conversation.
- rodw
-
- Away
- Platinum Member
-
- Posts: 11227
- Thank you received: 3752
Traceback (most recent call last):
File "/usr/bin/gmoccapy", line 5299, in <module>
app = gmoccapy(sys.argv)
File "/usr/bin/gmoccapy", line 328, in __init__
self._init_IconFileSelection()
File "/usr/bin/gmoccapy", line 2101, in _init_IconFileSelection
self.widgets.IconFileSelection1.show_filelabel(False)
File "/usr/lib/python3/dist-packages/gladevcp/iconview.py", line 404, in show_filelabel
self.file_label.hide()
AttributeError: 'IconFileSelection' object has no attribute 'file_label'
G-Code error in ncam.ngc
Near line 103 of
/home/rob/linuxcnc/configs/Lathe-GMO/ncam/scripts/ncam.ngc
EOF in file:/home/rob/linuxcnc/configs/Lathe-GMO/ncam/scripts/ncam.ngc seeking o-word: o<select> from line: 102
Note the python error, I'm not sure of a solution. I'll try a gmocappy sim on my build of V2.9 I compiled today
Please Log in or Create an account to join the conversation.
- rodw
-
- Away
- Platinum Member
-
- Posts: 11227
- Thank you received: 3752
I was going to post up a howto when I have a bit of time (2 days playing with this over the weekend has left me a bit worn out
Bullseye is to be release as final in < 1 week and includes preempt_rt
plasma3@plasma3:~/linuxcnc-dev$ linuxcnc
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/plasma3/linuxcnc/configs/sim.gmoccapy'
Machine configuration file is 'gmoccapy.ini'
check_config: (trivkins kinematics) WARNING:
Unexpected multiple values [JOINT_0]HOME: 0.000 10
Unexpected multiple values [JOINT_1]HOME: 0.000 10
Unexpected multiple values [JOINT_2]HOME: 0.0 -10
Starting LinuxCNC...
Found file(REL): ./core_sim.hal
Note: Using POSIX realtime
Found file(REL): ./spindle_sim.hal
Found file(REL): ./simulated_home.hal
link (updating variable file): No such file or directory
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)
Icon from stock
0 = /usr/bin/gmoccapy
1 = -ini
2 = /home/plasma3/linuxcnc/configs/sim.gmoccapy/gmoccapy.ini
Entry = trivkins
Entry = coordinates=xyz
found the following coordinates xyz
**** GMOCCAPY GETINIINFO ****
Number of joints = 3
3 COORDINATES found = xyz
joint 0 = axis x
joint 1 = axis y
joint 2 = axis z
{0: 'x', 1: 'y', 2: 'z'}
**** 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 ****
Preference file path: /home/plasma3/linuxcnc/configs/sim.gmoccapy/gmoccapy.pref
No option 'dro_digits' in section: 'DEFAULT'
No option 'dro_size' in section: 'DEFAULT'
No option 'abs_color' in section: 'DEFAULT'
No option 'rel_color' in section: 'DEFAULT'
No option 'dtg_color' in section: 'DEFAULT'
No option 'homed_color' in section: 'DEFAULT'
No option 'unhomed_color' in section: 'DEFAULT'
No option 'enable_dro' in section: 'DEFAULT'
No option 'scale_jog_vel' in section: 'DEFAULT'
No option 'scale_spindle_override' in section: 'DEFAULT'
No option 'scale_feed_override' in section: 'DEFAULT'
No option 'scale_rapid_override' in section: 'DEFAULT'
No option 'spindle_bar_min' in section: 'DEFAULT'
No option 'spindle_bar_max' in section: 'DEFAULT'
No option 'turtle_jog_factor' in section: 'DEFAULT'
No option 'hide_turtle_jog_button' in section: 'DEFAULT'
No option 'unlock_code' in section: 'DEFAULT'
No option 'toggle_readout' in section: 'DEFAULT'
No option 'spindle_start_rpm' in section: 'DEFAULT'
**** GMOCCAPY INFO ****
**** no valid probe config in INI File ****
**** disabled tool measurement ****
**** GMOCCAPY INFO ****
**** Entering make_DRO
axis_list = ['x', 'y', 'z']
**** GMOCCAPY INFO ****
**** Entering make ref axis button
/usr/bin/gmoccapy:717: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
lbl = Gtk.Label("")
Filepath = /usr/share/gmoccapy/images/ref_all.png
get button with image
Filepath = /usr/share/gmoccapy/images/ref_x.png
get button with image
Filepath = /usr/share/gmoccapy/images/ref_y.png
get button with image
Filepath = /usr/share/gmoccapy/images/ref_z.png
get button with image
Filepath = /usr/share/gmoccapy/images/unhome.png
get button with image
get button with image
/usr/bin/gmoccapy:735: DeprecationWarning: Gtk.Image.set_from_stock is deprecated
image.set_from_stock(stock, 48)
**** GMOCCAPY INFO ****
**** Entering make touch button
/usr/bin/gmoccapy:896: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
btn = Gtk.ToggleButton(_(" edit\noffsets"))
/usr/bin/gmoccapy:900: DeprecationWarning: Gtk.Widget.modify_bg is deprecated
btn.modify_bg(Gtk.StateFlags.ACTIVE, Gdk.color_parse("#FFFF00"))
get button with image
get button with image
get button with image
/usr/bin/gmoccapy:944: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
btn = Gtk.Button(_("zero\n G92"))
/usr/bin/gmoccapy:959: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
btn = Gtk.Button(_(" set\nselected"))
get button with image
**** GMOCCAPY INFO ****
**** Entering make jog increments
**** GMOCCAPY INFO ****
**** Entering make jog button
/usr/bin/gmoccapy:1168: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
btn = Gtk.Button(name.upper())
**** GMOCCAPY INFO ****
**** Entering make macro button
found 15 Macros
get button with image
Macro go_to_position x-pos y-pos z-pos has image link
Image = /home/plasma3/linuxcnc/configs/sim.gmoccapy/macros/images/goto_x_y_z.png
get button with image
Macro i_am_lost has image link
Image = /home/plasma3/linuxcnc/configs/sim.gmoccapy/macros/images/i_am_lost.png
get button with image
/usr/bin/gmoccapy:1239: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label, stock, use_stock" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
btn = Gtk.Button(lbl, None, False)
Macro macro_8 has image link
Image = /home/plasma3/linuxcnc/configs/sim.gmoccapy/macros/images/macro_8.png
get button with image
get button with image
get button with image
**** GMOCCAPY INFO ****
**** arrange DRO
3
**** GMOCCAPY INFO ****
**** Place in table
/usr/bin/gmoccapy:1468: DeprecationWarning: Gtk.Table.resize is deprecated
self.widgets.tbl_DRO.resize(rows, cols)
**** GMOCCAPY INFO ****
**** get DRO order
**** GMOCCAPY INFO ****
**** arrange JOG button
less than 6 axis
No option 'blockheight' in section: 'DEFAULT'
(gmoccapy:2684): Gtk-WARNING **: 17:48:37.323: Invalid icon size 48
(gmoccapy:2684): Gtk-WARNING **: 17:48:37.326: Invalid icon size 48
(gmoccapy:2684): Gtk-WARNING **: 17:48:37.328: Invalid icon size 48
task: main loop took 0.157403 seconds
No option 'open_file' in section: 'DEFAULT'
No option 'screen1' in section: 'DEFAULT'
No option 'x_pos' in section: 'DEFAULT'
No option 'y_pos' in section: 'DEFAULT'
No option 'width' in section: 'DEFAULT'
No option 'height' in section: 'DEFAULT'
**** GMOCCAPY INFO ****
**** Invalid embedded tab configuration ****
**** No tabs will be added! ****
No option 'gtk_theme' in section: 'DEFAULT'
**** GMOCCAPY INFO ****
**** no audio available! ****
**** PYGST libray not installed? ****
**** is python-gstX.XX installed? ****
**** GMOCCAPY INFO ****
**** Entering init gremlin ****
No option 'grid_size' in section: 'DEFAULT'
No option 'view' in section: 'DEFAULT'
No option 'mouse_btn_mode' in section: 'DEFAULT'
Kinematics type changed
No option 'hide_cursor' in section: 'DEFAULT'
No option 'hide_tooltips' in section: 'DEFAULT'
_set_enable_tooltips = True
No option 'system_name_tool' in section: 'DEFAULT'
No option 'system_name_g5x' in section: 'DEFAULT'
No option 'system_name_rot' in section: 'DEFAULT'
No option 'system_name_g92' in section: 'DEFAULT'
No option 'system_name_g54' in section: 'DEFAULT'
No option 'system_name_g55' in section: 'DEFAULT'
No option 'system_name_g56' in section: 'DEFAULT'
No option 'system_name_g57' in section: 'DEFAULT'
No option 'system_name_g58' in section: 'DEFAULT'
No option 'system_name_g59' in section: 'DEFAULT'
No option 'system_name_g59.1' in section: 'DEFAULT'
No option 'system_name_g59.2' in section: 'DEFAULT'
No option 'system_name_g59.3' in section: 'DEFAULT'
No option 'jump_to_dir' in section: 'DEFAULT'
'IconFileSelection' object has no attribute 'on_btn_jump_to'
**** GMOCCAPY INFO ****
**** No virtual keyboard installed, we checked for <onboard> .
**** try sudo apt-get install onboard
No option 'x_pos_popup' in section: 'DEFAULT'
/usr/bin/gmoccapy:3140: DeprecationWarning: Gtk.FontButton.get_font_name is deprecated
self.notification.set_property('font', self.widgets.fontbutton_popup.get_font_name())
No option 'y_pos_popup' in section: 'DEFAULT'
No option 'width_popup' in section: 'DEFAULT'
No option 'max_messages' in section: 'DEFAULT'
No option 'message_font' in section: 'DEFAULT'
/usr/bin/gmoccapy:349: DeprecationWarning: Gtk.FontButton.set_font_name is deprecated
self.widgets.fontbutton_popup.set_font_name(self.prefs.getpref("message_font", "sans 10", str))
No option 'use_frames' in section: 'DEFAULT'
No option 'reload_tool' in section: 'DEFAULT'
No option 'blockdel' in section: 'DEFAULT'
'bool' object has no attribute 'lower'
No option 'show_offsets' in section: 'DEFAULT'
No option 'show_dtg' in section: 'DEFAULT'
No option 'view_tool_path' in section: 'DEFAULT'
No option 'view_dimension' in section: 'DEFAULT'
No option 'run_from_line' in section: 'DEFAULT'
No option 'unlock_way' in section: 'DEFAULT'
No option 'show_preview_on_offset' in section: 'DEFAULT'
No option 'use_keyboard_shortcuts' in section: 'DEFAULT'
/usr/bin/gmoccapy:445: DeprecationWarning: Gtk.ColorButton.set_color is deprecated
self.widgets.abs_colorbutton.set_color(Gdk.color_parse(self.abs_color))
**** GMOCCAPY INFO : inifile = /home/plasma3/linuxcnc/configs/sim.gmoccapy/gmoccapy.ini ****:
**** GMOCCAPY INFO : postgui halfile = ['gmoccapy_postgui.hal'] ****:
Jog Pin Changed
x+
Jog Button released = x+
Jog Pin Changed
x-
Jog Button released = x-
Jog Pin Changed
y+
Jog Button released = y+
Jog Pin Changed
y-
Jog Button released = y-
Jog Pin Changed
z+
Jog Button released = z+
Jog Pin Changed
z-
Jog Button released = z-
on tool chnage
task: main loop took 0.077448 seconds
IDLE
1 2
MANUAL Mode
RUN
IDLE
(gmoccapy:2684): Gtk-WARNING **: 17:48:43.967: Invalid icon size 48
(gmoccapy:2684): Gtk-WARNING **: 17:48:43.969: Invalid icon size 48
(gmoccapy:2684): Gtk-WARNING **: 17:48:43.969: Invalid icon size 48
Please Log in or Create an account to join the conversation.
- rider-83
- Offline
- Elite Member
-
- Posts: 237
- Thank you received: 10
I updated my ver2.9 to the latest and gmoccapy completely stopped functioning with all the same errors as stated at the top of this thread
Please Log in or Create an account to join the conversation.
- robertspark
- Offline
- Platinum Member
-
- Posts: 915
- Thank you received: 216
I found what was missing in another thread.... I did a bit of investigation.
forum.linuxcnc.org/gmoccapy/43477-gmoccapy-theme#219291
Also there are a list of dependencies that you may need to install too to clear some of the issues.
forum.linuxcnc.org/9-installing-linuxcnc...eye-questions#220493
Please Log in or Create an account to join the conversation.