Lathe Macros
13 Jun 2024 12:07 #302930
by andypugh
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
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 or Create an account to join the conversation.
- xenon-alien
- Offline
- Premium Member
Less
More
- Posts: 131
- Thank you received: 3
14 Jun 2024 06:48 #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.
"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
- Offline
- Premium Member
Less
More
- Posts: 131
- Thank you received: 3
14 Jun 2024 07:07 - 14 Jun 2024 07:17 #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
Here is the report of the v2.0
Here is the report of the v3.0
Here is the report of the v2.0
Attachments:
Last edit: 14 Jun 2024 07:17 by xenon-alien.
Please Log in or Create an account to join the conversation.
14 Jun 2024 11:04 - 14 Jun 2024 11:10 #302997
by Aciera
[edit]
Seems you did not get the correct version as 'lathehandler.py' in version 3 does not contain that line. So maybe try again.
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.
Last edit: 14 Jun 2024 11:10 by Aciera.
Please Log in or Create an account to join the conversation.
- xenon-alien
- Offline
- Premium Member
Less
More
- Posts: 131
- Thank you received: 3
17 Jun 2024 06:37 #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!
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.
12 Sep 2024 14:02 - 12 Sep 2024 14:03 #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
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:
Last edit: 12 Sep 2024 14:03 by vibram.
Please Log in or Create an account to join the conversation.
04 Nov 2024 07:08 - 04 Nov 2024 07:12 #313745
by mariusl
Regards
Marius
www.bluearccnc.com
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
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:
Last edit: 04 Nov 2024 07:12 by mariusl.
Please Log in or Create an account to join the conversation.
04 Nov 2024 15:26 #313760
by Aciera
Replied by Aciera on topic Lathe Macros
Try
sudo apt-get install gir1.2-rsvg-2.0
The following user(s) said Thank You: mariusl
Please Log in or Create an account to join the conversation.
04 Nov 2024 16:59 #313763
by mariusl
Regards
Marius
www.bluearccnc.com
Replied by mariusl on topic Lathe Macros
Thanks that did the trick.
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
Time to create page: 0.957 seconds