Lathe Macros

More
4 years 2 weeks ago #254219 by andypugh
Replied by andypugh on topic Lathe Macros
The files all go in the config folder, not in nc_files.
(The .ngc files can probably be in nc_files but there is a risk that they might get "tidied up"). The .py and .ui definitely need to be in the config folder, though (same folder as the INI)
The following user(s) said Thank You: Thompo

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

More
4 years 2 weeks ago #254274 by Thompo
Replied by Thompo on topic Lathe Macros
Thanks very much for the reply, made a tiny bit of progress and managed to clear one of the path errors by creating a macros folder in the config for the test_lathe.

Still not getting anywhere and im suspecting it could be an issue with glade? i have 3.38 ive found 3.40.0 but cant figure out how to install it as its a .tar.xz that i think is just an archive? i followed the readme install examples "apt get install" just gets 3.38 again and the manual option fails due to
Code:
Checking for function [code] "_gtk_widget_class_template_unset_only_for_glade" with dependency gtk+-3.0: NO

Couple of things i notice in the terminal dump, but dont really know what they mean.
Code:
[code](gmoccapy:185966): Gtk-CRITICAL **: 22:38:06.676: gtk_entry_set_text: assertion 'text != NULL' failed 0  =  /usr/bin/gmoccapy 1  =  -ini 2  =  /home/neil/linuxcnc/configs/lathe_test/lathe_test.ini [code].....g-file-error-quark: Failed to open file “lathemacro.ui”: No such file or directory (4) **** GLADE VCP ERROR:    With xml file: lathemacro.ui : 'gi.repository.Gtk' object has no attribute 'glade' ..... <commandline>:0: gladevcp exited without becoming ready
[/code][/code][/code]
 

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

More
4 years 2 weeks ago #254278 by Thompo
Replied by Thompo on topic Lathe Macros
As i typed that, i thought to try and open the lathemacro.ui directly in glade and get error
Failed to load /home/neil/linuxcnc/configs/lathe_test/macros/lathemacro.ui.
"The following required catalogs are unavailable: gladevcp"

Searching for this sounds like a tomorrow job lol

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

More
4 years 2 weeks ago #254286 by andypugh
Replied by andypugh on topic Lathe Macros
It works for me on Debian 10 (Buster) with Glade 3.22

It does sound like you don't have gladevcp, which is part of LinuxCNC.

On my system:
Code:
andypugh@2:~/linuxcnc/configs/sim.gmoccapy.lathe_configs$ sudo find / -name gladevcp [sudo] password for andypugh: /usr/lib/python2.7/dist-packages/gladevcp /usr/share/doc/linuxcnc/examples/sample-configs/apps/gladevcp /usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/gladevcp /usr/share/doc/linuxcnc/examples/sample-configs/sim/touchy/gladevcp /usr/bin/gladevcp

(Bear in mind that this is the system that I was experimenting with Python 2 and GTK2 with, I would expect different paths on your system.

What LinuxCNC version and lathemacro version are you using?
The following user(s) said Thank You: Thompo

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

More
4 years 2 weeks ago - 4 years 2 weeks ago #254311 by Thompo
Replied by Thompo on topic Lathe Macros
Thankyou for the assistance, really appreciate it!


Im running 2.9.0 on Mint 21 with RT Kernel as below.
Code:
[code]Download the RT kernel from:http://ftp.de.debian.org/debian/pool/main/l/linux-signed-amd64/linux-image-5.19.0-2-rt-amd64_5.19.11-1_amd64.deb Download the LinuxCNC deb from:http://http.us.debian.org/debian/pool/main/l/linuxcnc/linuxcnc-uspace_2.9.0~pre0+git20220906.02744cdef6-1_amd64.deb

I ran a search on my system for GladeVCP as a folder and got this.



Looks like its there but maybe not in the right place for this to work?

Thanks[/code]
Last edit: 4 years 2 weeks ago by Thompo.

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

More
4 years 2 weeks ago #254315 by andypugh
Replied by andypugh on topic Lathe Macros
Maybe try installing the linuxcnc-dev package. That might help.

Do any of the gladevcp demo configs run for you? (for example sim/axis/gladevcp)
The following user(s) said Thank You: Thompo

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

Time to create page: 0.447 seconds
Powered by Kunena Forum