NGCGUI menus disappeared
21 Dec 2023 18:27 #288777
by 10K
NGCGUI menus disappeared was created by 10K
I installed version 3.4.6 of Gmoccapy on LinuxCNC 2.9.1. I noticed that the NGCGUI menus are no longer shown. The button that says NGCGUI is still on the top left corner of the screen, but there's nothing shown under it. Previously, there were several programs I wrote that were referenced.
Here's what's in the INI file
Here's what is displayed when I start LinuxCNC from the terminal. I'm getting some error messages, but I don't know if they're important or if they need to be fixed.
Here's what's in the INI file
# NGCGUI Entries
# Note: TKPKG (one or more) specifies tcl/tk apps to embed in axis tab pages
TKPKG = Ngcgui 1.0
NGCGUI_FONT = Helvetica -10 normal
EMBED_TAB_NAME = NGCGUI
EMBED_TAB_LOCATION = ntb_user_tabs
EMBED_TAB_COMMAND = gladevcp -x {XID} ./pyngcgui_popupkeyboard.ui
NGCGUI_PREAMBLE = lathe_std.ngc
NGCGUI_SUBFILE = threading.ngc
NGCGUI_SUBFILE = threading-metric.ngc
NGCGUI_SUBFILE = npt_pipe.ngc
NGCGUI_SUBFILE = turning.ngc
NGCGUI_SUBFILE = taper-od.ngc
NGCGUI_SUBFILE = facing.ngc
NGCGUI_SUBFILE = knurling.ngc
NGCGUI_SUBFILE = tip_radius.ngc
NGCGUI_OPTIONS = nonew noremove
# opt items:
# nonew -- disallow making new tab page
# noremove -- disallow removing any tab page
# noauto -- no autosend (makeFile, then manually send)
# noiframe -- no internal image, image on separate toplevel
# nom2 -- no m2 terminator (use %)
Here's what is displayed when I start LinuxCNC from the terminal. I'm getting some error messages, but I don't know if they're important or if they need to be fixed.
LINUXCNC - 2.9.1
Machine configuration directory is '/home/martin/linuxcnc/configs/Monarch_10EE'
Machine configuration file is 'Monarch_10EE.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./Monarch_10EE.hal
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 10.10.10.10: INFO: Hardware address (MAC): 00:60:1b:11:00:72
hm2_eth: discovered 7I92
hm2/hm2_7i92.0: Low Level init 0.15
hm2/hm2_7i92.0: 34 I/O Pins used:
hm2/hm2_7i92.0: IO Pin 000 (P2-01): IOPort
hm2/hm2_7i92.0: IO Pin 001 (P2-14): IOPort
hm2/hm2_7i92.0: IO Pin 002 (P2-02): StepGen #0, pin Step (Output)
hm2/hm2_7i92.0: IO Pin 003 (P2-15): IOPort
hm2/hm2_7i92.0: IO Pin 004 (P2-03): StepGen #0, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 005 (P2-16): IOPort
hm2/hm2_7i92.0: IO Pin 006 (P2-04): StepGen #1, pin Step (Output)
hm2/hm2_7i92.0: IO Pin 007 (P2-17): IOPort
hm2/hm2_7i92.0: IO Pin 008 (P2-05): StepGen #1, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 009 (P2-06): StepGen #2, pin Step (Output)
hm2/hm2_7i92.0: IO Pin 010 (P2-07): StepGen #2, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 011 (P2-08): StepGen #3, pin Step (Output)
hm2/hm2_7i92.0: IO Pin 012 (P2-09): StepGen #3, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 013 (P2-10): IOPort
hm2/hm2_7i92.0: IO Pin 014 (P2-11): IOPort
hm2/hm2_7i92.0: IO Pin 015 (P2-12): IOPort
hm2/hm2_7i92.0: IO Pin 016 (P2-13): IOPort
hm2/hm2_7i92.0: IO Pin 017 (P1-01): IOPort
hm2/hm2_7i92.0: IO Pin 018 (P1-14): IOPort
hm2/hm2_7i92.0: IO Pin 019 (P1-02): IOPort
hm2/hm2_7i92.0: IO Pin 020 (P1-15): IOPort
hm2/hm2_7i92.0: IO Pin 021 (P1-03): IOPort
hm2/hm2_7i92.0: IO Pin 022 (P1-16): IOPort
hm2/hm2_7i92.0: IO Pin 023 (P1-04): IOPort
hm2/hm2_7i92.0: IO Pin 024 (P1-17): IOPort
hm2/hm2_7i92.0: IO Pin 025 (P1-05): IOPort
hm2/hm2_7i92.0: IO Pin 026 (P1-06): IOPort
hm2/hm2_7i92.0: IO Pin 027 (P1-07): IOPort
hm2/hm2_7i92.0: IO Pin 028 (P1-08): IOPort
hm2/hm2_7i92.0: IO Pin 029 (P1-09): IOPort
hm2/hm2_7i92.0: IO Pin 030 (P1-10): IOPort
hm2/hm2_7i92.0: IO Pin 031 (P1-11): IOPort
hm2/hm2_7i92.0: IO Pin 032 (P1-12): IOPort
hm2/hm2_7i92.0: IO Pin 033 (P1-13): IOPort
hm2/hm2_7i92.0: registered
(gmoccapy:4533): Gtk-CRITICAL **: 12:08:41.523: gtk_entry_set_text: assertion 'text != NULL' failed
/usr/bin/gmoccapy:1806: 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
widget.append_page(s, Gtk.Label(" " + text + " "))
[GladeVCP][INFO] Logging to: /home/martin/gladevcp.log (logger.py:106)
gtk-builder-error-quark: ./pyngcgui_popupkeyboard.ui:12:40 Invalid property: PyNgcGui.label_xalign (11)
**** GLADE VCP ERROR: With xml file: ./pyngcgui_popupkeyboard.ui : 'gi.repository.Gtk' object has no attribute 'glade'
12:08:42.631 WARNING Config: mousetweaks GSettings schema not found, mousetweaks integration disabled.
note: name is 'DragonRise Inc. Generic USB Joystick '
/usr/lib/python3/dist-packages/gi/overrides/GObject.py:493: Warning: ../../../gobject/gsignal.c:2772: instance '0x37fa160' has no handler with id '65017932'
return func(*args, **kwargs)
task: main loop took 0.151325 seconds
(gmoccapy:4533): Gtk-CRITICAL **: 12:08:53.030: gtk_socket_get_id: assertion '_gtk_widget_get_anchored (GTK_WIDGET (socket))' failed
/usr/lib/python3/dist-packages/gi/overrides/GObject.py:493: Warning: g_signal_handler_disconnect: assertion 'handler_id > 0' failed
return func(*args, **kwargs)
Shutting down and cleaning up LinuxCNC...
task: 1249 cycles, min=0.000009, max=0.151325, avg=0.010071, 1 latency excursions (> 10x expected cycle time of 0.010000s)
hm2_eth: in hm2_eth_reset
hm2_eth: HostMot2 ethernet driver unloaded
hm2: unloading
Note: Using POSIX realtime
Please Log in or Create an account to join the conversation.
22 Dec 2023 05:47 - 22 Dec 2023 06:13 #288803
by newbynobi
Replied by newbynobi on topic NGCGUI menus disappeared
The error is caused by pyngcgui_popupkeyboard.ui
There it seems to be a problem, "gi repository does not have glade"
This may be related to glade2 to glade3 or python to python3 changes in master.
Norbert
There it seems to be a problem, "gi repository does not have glade"
This may be related to glade2 to glade3 or python to python3 changes in master.
Norbert
Last edit: 22 Dec 2023 06:13 by newbynobi.
Please Log in or Create an account to join the conversation.
22 Dec 2023 17:01 #288827
by 10K
Replied by 10K on topic NGCGUI menus disappeared
Thanks for the reply.
Is there some way I can make it work, or is it an update that will have to be done by the program maintainers?
I'd hate to lose my Conversational Programs!
Is there some way I can make it work, or is it an update that will have to be done by the program maintainers?
I'd hate to lose my Conversational Programs!
Please Log in or Create an account to join the conversation.
22 Dec 2023 19:13 #288832
by rodw
Replied by rodw on topic NGCGUI menus disappeared
Pretty Sure ncggui is python 2 and 2.9.1 is python 3. Its never been upgraded. cmorely has been doing some work on it for his QTVCP based guis. eg qt dragon et all. Check the qtpyvcp section.
Please Log in or Create an account to join the conversation.
22 Dec 2023 21:22 - 22 Dec 2023 21:25 #288848
by HansU
Replied by HansU on topic NGCGUI menus disappeared
If you run the Gmoccapy_pyngcgui sample configuration, then pyngcgui will work.
Or you take another version of pyngcgui_popupkeyboard.ui - there are actually (unfortunately) three versions included - the other two versions should be fine (in configs/sim/axis/ngcgui and configs/sim/gscreen/ngcgui).
However I just pushed a fix to the 2.9 branch so that all configurations which are using that should be fine now.
Or maybe it#s the easiest to just remove these two lines in pyngcgui_popupkeyboard.ui:
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
See also here: github.com/LinuxCNC/linuxcnc/commit/e735...ee8f29ef8de9272f9d69
Or you take another version of pyngcgui_popupkeyboard.ui - there are actually (unfortunately) three versions included - the other two versions should be fine (in configs/sim/axis/ngcgui and configs/sim/gscreen/ngcgui).
However I just pushed a fix to the 2.9 branch so that all configurations which are using that should be fine now.
Or maybe it#s the easiest to just remove these two lines in pyngcgui_popupkeyboard.ui:
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
See also here: github.com/LinuxCNC/linuxcnc/commit/e735...ee8f29ef8de9272f9d69
Last edit: 22 Dec 2023 21:25 by HansU.
The following user(s) said Thank You: 10K
Please Log in or Create an account to join the conversation.
23 Dec 2023 18:15 #288935
by 10K
Replied by 10K on topic NGCGUI menus disappeared
The suggestion to remove the two lines from pyngcgui_popupkeyboard.ui worked! And it was easy!
Thanks HansU!
Thanks HansU!
Please Log in or Create an account to join the conversation.
Time to create page: 0.074 seconds