Gmoccapy tool table not accepting lathe tool angles...
- RotarySMP
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
18 Jul 2026 19:39 - 18 Jul 2026 21:17 #347826
by RotarySMP
Gmoccapy tool table not accepting lathe tool angles... was created by RotarySMP
G'day,
Since I updated from 2.7 to 2.9 on the lathe, with the latest GMOCCAPY, I can't enter lathe tool angles anymore.
Any suggestions appreciated.
Cheers,
Mark
Since I updated from 2.7 to 2.9 on the lathe, with the latest GMOCCAPY, I can't enter lathe tool angles anymore.
Any suggestions appreciated.
Cheers,
Mark
Last edit: 18 Jul 2026 21:17 by RotarySMP.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4789
- Thank you received: 2157
19 Jul 2026 07:52 - 19 Jul 2026 07:54 #347836
by Aciera
Replied by Aciera on topic Gmoccapy tool table not accepting lathe tool angles...
Indeed, tracked this to Python deprecating 'locale.format()' and replacing it with 'locale.format_string()':
github.com/LinuxCNC/linuxcnc/pull/4250/changes
Note that this issue is also present in some other places (eg the offsetpage)
Since this affects python code you could patch the files locally.
I think you would find them in:
'/usr/lib/python3/dist-packages/gladevcp/'
You will need sudo rights to change those files.
github.com/LinuxCNC/linuxcnc/pull/4250/changes
Note that this issue is also present in some other places (eg the offsetpage)
Since this affects python code you could patch the files locally.
I think you would find them in:
'/usr/lib/python3/dist-packages/gladevcp/'
You will need sudo rights to change those files.
Last edit: 19 Jul 2026 07:54 by Aciera.
The following user(s) said Thank You: RotarySMP
Please Log in or Create an account to join the conversation.
- RotarySMP
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
20 Jul 2026 04:52 #347856
by RotarySMP
Replied by RotarySMP on topic Gmoccapy tool table not accepting lathe tool angles...
Thanks a lot for checking and confirming that.
Is this correct ,
So for each of the files in '/usr/lib/python3/dist-packages/gladevcp/'...
I just need to search for 'locale.format_string()' and replacing each instance back with 'locale.format()'?
Cheers,
Mark
Is this correct ,
So for each of the files in '/usr/lib/python3/dist-packages/gladevcp/'...
I just need to search for 'locale.format_string()' and replacing each instance back with 'locale.format()'?
Cheers,
Mark
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4789
- Thank you received: 2157
20 Jul 2026 06:16 #347859
by Aciera
No, the other way around.
Click on the link in my post above and you will see the files 'calculatorwidget.py', 'offsetpage_widget.py' and 'tooledit_widget.py'. The lines marked in red need to be replaced with the lines marked in green. You will see the line number on the left.
'pncconf.py' is also affected but that is not required for running Gmoccapy.
Replied by Aciera on topic Gmoccapy tool table not accepting lathe tool angles...
just need to search for 'locale.format_string()' and replacing each instance back with 'locale.format()'?
No, the other way around.
Click on the link in my post above and you will see the files 'calculatorwidget.py', 'offsetpage_widget.py' and 'tooledit_widget.py'. The lines marked in red need to be replaced with the lines marked in green. You will see the line number on the left.
'pncconf.py' is also affected but that is not required for running Gmoccapy.
The following user(s) said Thank You: RotarySMP
Please Log in or Create an account to join the conversation.
- RotarySMP
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
20 Jul 2026 18:33 #347885
by RotarySMP
Replied by RotarySMP on topic Gmoccapy tool table not accepting lathe tool angles...
Thanks for your help on this.
Cheers,
Mark
Cheers,
Mark
Please Log in or Create an account to join the conversation.
- RotarySMP
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
23 Jul 2026 18:57 #348006
by RotarySMP
Replied by RotarySMP on topic Gmoccapy tool table not accepting lathe tool angles...
I was out on a business trip this week and only just got to try this. I don't have a lib/python/gladevcp folder.
I did find those files in lib/python3/dist-packages/gladevcp. Would it help to edit them there, or should I leave those versions alone and look for them somewhere else?
Cheers,
Mark
I did find those files in lib/python3/dist-packages/gladevcp. Would it help to edit them there, or should I leave those versions alone and look for them somewhere else?
Cheers,
Mark
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4789
- Thank you received: 2157
23 Jul 2026 19:00 #348008
by Aciera
Yes, those are the files you need to edit.
Replied by Aciera on topic Gmoccapy tool table not accepting lathe tool angles...
I did find those files in lib/python3/dist-packages/gladevcp
Yes, those are the files you need to edit.
The following user(s) said Thank You: RotarySMP
Please Log in or Create an account to join the conversation.
- RotarySMP
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
23 Jul 2026 19:43 #348010
by RotarySMP
Replied by RotarySMP on topic Gmoccapy tool table not accepting lathe tool angles...
Thanks a lot, that is now working as it should.
Cheers,
Mark
Cheers,
Mark
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.136 seconds