Lathe Macros

More
2 years 4 months ago #302930 by andypugh
Replied by andypugh on topic Lathe Macros

print event.message_type,event.data
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(event.message_type,event.data)?


This seems to indicate that you are trying to use the Python2 version of the macros with a Linux version that has Python3.

Can you try the Py3 / GTK3 version? I know you said you have tried that, but perhaps the problems there are more easily solved.

Get the files from here to be sure it's the latest:
github.com/andypugh/LatheMacros/releases

Please Log in to join the conversation.

More
2 years 4 months ago #302988 by xenon-alien
Replied by xenon-alien on topic Lathe Macros
I began the trying with the
"v3.0
Resizable touchscreen version for Python 3 and GTK3.
Compatible with LinuxCNC 2.9 onwards."
After that i tried the v2.0.
I will do it again with both and attach the report of both.
Because i don't remember which one I have attached previously.

Please Log in to join the conversation.

More
2 years 4 months ago #302989 by xenon-alien
Replied by xenon-alien on topic Lathe Macros
Forget to tell, I'm using the axis GUI and PyVCP (copy/pasted the TAB command from the *.ini files)

Here is the report of the v3.0
 

Attachment not found



Here is the report of the v2.0
 

Attachment not found

Please Log in to join the conversation.

More
2 years 4 months ago #302997 by Aciera
Replied by Aciera on topic Lathe Macros

File "./lathehandler.py", line 37
print 'Destroy?'


[edit]
Seems you did not get the correct version as 'lathehandler.py' in version 3 does not contain that line. So maybe try again.

Please Log in to join the conversation.

More
2 years 4 months ago #303151 by xenon-alien
Replied by xenon-alien on topic Lathe Macros
I used the files from the firs post, so that is why was an error...
I thought they are the same with the github v3.0, but not.
Now the LCNC is starts. Will test it later.
Thanks!

Please Log in to join the conversation.

More
2 years 1 month ago #310008 by vibram
Replied by vibram on topic Lathe Macros
 Hello,

First, thank you for the awesome work :)

I retrofiter a lathe and kept the original panel/keyboard. 
This was a conversational lathe so I have keys for lathe operations such as facing etc.
I use the arduino-connector project so I'm able to define the key as an input in hal or as a keystroke or a text.
Do you think it's possible to bound a key with a macro in the cycle tab directly with one of the 3 options above?
https://media.discordapp.net/attachments/970073318810075149/1280467345164468286/IMG_20240818_085127.jpg?ex=66e40d25&is=66e2bba5&hm=6ccd4d7b9c719ef5497b92814fa29b2ab450d865d01bd02bf1aa06a6b54bb721&=&format=webp&width=900&height=676

Attachment not found

Please Log in to join the conversation.

More
1 year 11 months ago #313745 by mariusl
Replied by mariusl on topic Lathe Macros
I am just testing this to see how it does but cannot get it to work on 2.10.0
I get this error although Rsvg is installed.
I am on Bookworm

Code:
Traceback (most recent call last):   File "/usr/bin/gladevcp", line 379, in <module>     main()   File "/usr/bin/gladevcp", line 259, in main     handlers, mod, obj = load_handlers(opts.usermod,halcomp,builder,opts.useropts)                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/bin/gladevcp", line 126, in load_handlers     mod = __import__(basename)           ^^^^^^^^^^^^^^^^^^^^   File "/home/plasma/linuxcnc/configs/sim.gmoccapy.lathe_configs/lathehandler.py", line 33, in <module>     gi.require_version('Rsvg', '2.0')   File "/usr/lib/python3/dist-packages/gi/__init__.py", line 126, in require_version     raise ValueError('Namespace %s not available' % namespace) ValueError: Namespace Rsvg not available


 

Attachment not found


Regards
Marius


www.bluearccnc.com

Please Log in to join the conversation.

More
1 year 11 months ago #313760 by Aciera
Replied by Aciera on topic Lathe Macros
Try
Code:
sudo apt-get install gir1.2-rsvg-2.0

Please Log in to join the conversation.

More
1 year 11 months ago #313763 by mariusl
Replied by mariusl on topic Lathe Macros
Thanks that did the trick.

Regards
Marius


www.bluearccnc.com

Please Log in to join the conversation.

More
1 year 10 months ago #316217 by slowpoke
Replied by slowpoke on topic Lathe Macros
I power read through the entire 44 pages of this thread and made some notes along the way.

IIRC somewhere buried on one of those pages was a link to an excellent video demonstrating most if not all of the lathe macros.  I think the first segment was facing and then a minute or two for each macro feature .

Does anyone know where this video is hiding?

Much appreciated.

 

Please Log in to join the conversation.

Time to create page: 0.223 seconds
Powered by Kunena Forum