Lathe Macros

More
16 Oct 2022 22:14 #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
16 Oct 2022 22:41 #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:
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
17 Oct 2022 05:55 - 17 Oct 2022 05:56 #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]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]
Attachments:
Last edit: 17 Oct 2022 05:56 by Thompo.

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

More
17 Oct 2022 08:53 #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.

More
17 Oct 2022 20:36 - 17 Oct 2022 21:05 #254357 by Thompo
Replied by Thompo on topic Lathe Macros
thanks Andy i tried to get the dev version here
http.us.debian.org/debian/pool/main/l/linuxcnc/
but it comes up saying already installed.

I cant open any .ui files, i get the same error in glade
"The following required catalogs are unavailable: gladevcp"

Looking at the .ui file, im guessing line 5 is my problem?

Completely green to all this so im finding it tough going, would i be better creating a post elsewhere so as not to pollute this thread?

###EDIT!!!###
i just seen your bit about trying the sim/Axis options and they seem to work ok, but the gmocappy lathe_macro simulation, displays the tab in the main window but stays on the main screen when clicked.
 
Attachments:
Last edit: 17 Oct 2022 21:05 by Thompo.

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

More
17 Oct 2022 20:56 #254363 by andypugh
Replied by andypugh on topic Lathe Macros
You could try deleting that line from the .ui file. (It is commented out in the sample files)
The following user(s) said Thank You: Thompo

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

More
18 Oct 2022 00:12 #254374 by Thompo
Replied by Thompo on topic Lathe Macros
Deleting the line <requires lib="gladeui" version="0.0"/>

Glade opens without error but im not sure it looks correct once inside? Im expecting to see a series of graphics that contain the textbox inputs that feed the macros? but im not sure if linuxcnc generates these when it runs?

Im sure this is something simple and most likely user error :side:
Attachments:

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

More
18 Oct 2022 00:27 #254375 by andypugh
Replied by andypugh on topic Lathe Macros
Glade is not finding gladevcp.
(Nor is LinuxCNC)

It looks like you can add it to glade (but that might not help LinuxCNC)

 

 
Attachments:

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

More
18 Oct 2022 00:28 #254376 by andypugh
Replied by andypugh on topic Lathe Macros
(But if you can find one under Python3, definitely use that one)
The following user(s) said Thank You: Thompo

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

More
18 Oct 2022 21:24 - 18 Oct 2022 21:27 #254469 by Thompo
Replied by Thompo on topic Lathe Macros
Success i think...

Removed and reinstalled linuxcnc got an error with ref to "gi.require_version('Rsvg', '2.0')"
Found this, while searching for help wth it  stackoverflow.com/questions/10393675/rsv...python-3-2-on-ubuntu

Ran this 
[code]sudo apt-get install gir1.2-rsvg-2.0 python3-cairo python3-gi
Which installed this
gir1.2-rsvg-2.0:amd64 (2.52.5+dfsg-3)
 
90% sure that was installed previously but might have been on a previous attempt

And it worked :D
 

Now i just have to replicate the lathe_macro sim on my setup then move the PC back out the shed and see if the lathe runs.

Thanks for your assistance[/code]
Attachments:
Last edit: 18 Oct 2022 21:27 by Thompo.
The following user(s) said Thank You: tommylight

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

Time to create page: 0.254 seconds
Powered by Kunena Forum