master 2.9 + glade no linuxcnc widgets / tools loading?

More
07 Jun 2023 20:27 #273106 by HansU
You are not using LinuxCNC? Then you should definitely buy a CNC machine and try LinuxCNC! Otherwise you don't know what you miss  ;-)

If you are using Glade-3 (for Gtk3) you can find the catalog file and the python scripts here:
github.com/LinuxCNC/linuxcnc/tree/master/lib/python/gladevcp
The catalog is copied here: /usr/share/glade/catalogs/
And the python scripts here: /usr/lib/python3/dist-packages/gladevcp/

For Glade-gtk2 the paths are a bit different.
 

Please Log in or Create an account to join the conversation.

More
07 Jun 2023 20:30 #273107 by HansU

Update
Post configure, which make target can specify? Merely calling make results in the error
Makefile:121: *** Makefile.inc must specify RTPREFIX and other variables. Stop.


This gives a good short guidance: gist.github.com/KurtJacobson/f260ff3b2e979f694ed7c1a4c17fa479

Please Log in or Create an account to join the conversation.

More
08 Jun 2023 09:26 - 08 Jun 2023 09:29 #273147 by Olumide
I've copied manually copied:
  • gtksourceview.xml and hal_python.xml from 
    linuxcnc/lib/python/gladevcp
    to 
    /usr/share/glade/catalogs/
  • the remaining files (*.py and *.glade) to 
    /usr/lib/python3/dist-packages/gladevcp/

Unfortunately I still get the error

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/gladevcp/__init__.py", line 1, in <module>
    from .hal_pythonplugin import *
  File "/usr/lib/python3/dist-packages/gladevcp/hal_pythonplugin.py", line 1, in <module>
    from .hal_widgets import HAL_HideTable
  File "/usr/lib/python3/dist-packages/gladevcp/hal_widgets.py", line 22, in <module>
    import hal
ModuleNotFoundError: No module named 'hal'

(glade:5404): GladeUI-WARNING **: 10:09:33.179: We could not find the symbol "h_al__hide_table_get_type"

(glade:5404): GladeUI-WARNING **: 10:09:33.179: Could not get the type from "HAL_HideTable"

(glade:5404): GladeUI-WARNING **: 10:09:33.180: Failed to load the GType for 'HAL_HideTable'

(glade:5404): GladeUI-WARNING **: 10:09:33.180: We could not find the symbol "h_al__hbox_get_type"

(glade:5404): GladeUI-WARNING **: 10:09:33.180: Could not get the type from "HAL_HBox"

(glade:5404): GladeUI-WARNING **: 10:09:33.180: Failed to load the GType for 'HAL_HBox'

I note that linuxcnc/lib/python contains a hal.py source in addition to other .py files. Should these also be copied to 
/usr/lib/python3/dist-packages?
Last edit: 08 Jun 2023 09:29 by Olumide.

Please Log in or Create an account to join the conversation.

More
08 Jun 2023 13:04 #273168 by Olumide
Problem solved. I posted the solution here for posterity.
The following user(s) said Thank You: HansU

Please Log in or Create an account to join the conversation.

Moderators: mhaberlerHansU
Time to create page: 0.080 seconds
Powered by Kunena Forum