master 2.9 + glade no linuxcnc widgets / tools loading?

More
3 years 4 months ago #273101 by HansU
I guess you are using LinuxCNC 2.9?

However, a run-in-place environment you typically use if you have built LinuxCNC from the sources and want to test it without installing it. See here: linuxcnc.org/docs/2.9/html/code/building...ing_for_run_in_place

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

More
3 years 4 months ago - 3 years 4 months ago #273102 by Olumide
Thanks for your prompt reply. I am not a LinuxCNC user. I am simply having difficulty getting glade to load custom widgets and this is the only (recent) solution to the problem I found online.

I'll download LinuxCNC and tinker with it and try to find out how its managed to get glade to load its custom widgets.

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.
Last edit: 3 years 4 months ago by Olumide.

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

More
3 years 4 months ago #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
3 years 4 months ago #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
3 years 4 months ago - 3 years 4 months ago #273147 by Olumide
I've copied manually copied:
  • gtksourceview.xml and hal_python.xml from 
    Code:
    linuxcnc/lib/python/gladevcp
    to 
    Code:
    /usr/share/glade/catalogs/
  • the remaining files (*.py and *.glade) to 
    Code:
    /usr/lib/python3/dist-packages/gladevcp/

Unfortunately I still get the error

Code:
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 
Code:
/usr/lib/python3/dist-packages?
Last edit: 3 years 4 months ago by Olumide.

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

More
3 years 4 months ago #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: HansU
Time to create page: 0.066 seconds
Powered by Kunena Forum