Gmoccapy tool table not accepting lathe tool angles...

More
3 months 2 weeks ago - 3 months 2 weeks ago #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: 3 months 2 weeks ago by RotarySMP.

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

More
3 months 1 week ago - 3 months 1 week ago #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: 3 months 1 week ago by Aciera.
The following user(s) said Thank You: RotarySMP

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

More
3 months 1 week ago #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
3 months 1 week ago #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.

More
3 months 1 week ago #347885 by RotarySMP
Thanks for your help on this.
Cheers,
Mark

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

More
3 months 1 week ago #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.

Moderators: newbynobi, HansU
Time to create page: 0.104 seconds
Powered by Kunena Forum