Gmoccapy tool table not accepting lathe tool angles...

  • RotarySMP
  • RotarySMP's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
18 Jul 2026 19:39 - 18 Jul 2026 21:17 #347826 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
Last edit: 18 Jul 2026 21:17 by RotarySMP.

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

More
19 Jul 2026 07:52 - 19 Jul 2026 07:54 #347836 by Aciera
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.
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
  • RotarySMP's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
20 Jul 2026 04:52 #347856 by RotarySMP
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

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

More
20 Jul 2026 06:16 #347859 by Aciera

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
  • RotarySMP's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
20 Jul 2026 18:33 #347885 by RotarySMP
Thanks for your help on this.
Cheers,
Mark

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

  • RotarySMP
  • RotarySMP's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
23 Jul 2026 18:57 #348006 by RotarySMP
 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

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

More
23 Jul 2026 19:00 #348008 by Aciera

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
  • RotarySMP's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
23 Jul 2026 19:43 #348010 by RotarySMP
Thanks a lot, that is now working as it should.
Cheers,
Mark

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

Moderators: newbynobiHansU
Time to create page: 0.136 seconds
Powered by Kunena Forum