Lathe Macros
- andypugh
- Topic Author
- Offline
- Moderator
- Posts: 23178
- Thank you received: 4861
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 or Create an account to join the conversation.
- xenon-alien
- Away
- Premium Member
- Posts: 136
- Thank you received: 3
"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 or Create an account to join the conversation.
- xenon-alien
- Away
- Premium Member
- Posts: 136
- Thank you received: 3
Here is the report of the v3.0
Here is the report of the v2.0
Attachments:
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 4026
- Thank you received: 1738
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 or Create an account to join the conversation.
- xenon-alien
- Away
- Premium Member
- Posts: 136
- Thank you received: 3
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 or Create an account to join the conversation.
- vibram
- Offline
- Junior Member
- Posts: 38
- Thank you received: 1
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
Attachments:
Please Log in or Create an account to join the conversation.
- mariusl
- Offline
- Platinum Member
I get this error although Rsvg is installed.
I am on Bookworm
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
Regards
Marius
www.bluearccnc.com
Attachments:
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 4026
- Thank you received: 1738
sudo apt-get install gir1.2-rsvg-2.0
Please Log in or Create an account to join the conversation.
- mariusl
- Offline
- Platinum Member
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- slowpoke
- Offline
- Elite Member
- Posts: 173
- Thank you received: 25
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 or Create an account to join the conversation.