- Posts: 1630
- Thank you received: 0
Gmoccapy tool table not accepting lathe tool angles...
3 months 1 week ago #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
Please Log in to join the conversation.
3 months 1 week ago #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.
Please Log in to join the conversation.
3 months 1 week ago #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 to join the conversation.
3 months 1 week ago #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.
Please Log in to join the conversation.
3 months 1 week ago #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 to join the conversation.
3 months 1 week ago #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 to join the conversation.
3 months 1 week ago #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.
Please Log in to join the conversation.
3 months 1 week ago #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 to join the conversation.
Time to create page: 0.111 seconds
