manual-toolchange-with-tool-length-switch sim fails mill upgraded to 2.9.2

More
02 Jul 2024 14:02 #304244 by seuchato
Tried to pin down version more accurately and got this:
LANG=C dpkg -l mc
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-============================================
ii mc 3:4.8.29-2 amd64 Midnight Commander - a powerful file manager

LANG=C dpkg -l linuxcnc
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un linuxcnc <none> <none> (no description available)

So, for midnight commander I get a decent version number and apparently linuxcnc is not installed????

Now I am confused
greez
chris

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

More
03 Jul 2024 07:57 - 03 Jul 2024 08:14 #304309 by Aciera

'/sim/axis/remap/manual-toolchange-with-tool-length-switch' runs for me on a 2.9 build from February:
 


I just had some time to look into this again and a closer inspection of the 'lib/python/gladevcp' folder revealed that I had modified versions of 'hal_python.xml' and 'hal_widgets.py' files that seem to fix this error.

 

File Attachment:

File Name: GTKbugfix.tar.gz
File Size:5 KB
Attachments:
Last edit: 03 Jul 2024 08:14 by Aciera. Reason: Cleanup the files and reattach
The following user(s) said Thank You: seuchato, DPFlex

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

More
03 Jul 2024 15:31 #304336 by seuchato
Aciera
SOLVED: Now its running!
Thanks a ton!
greez
chris

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

More
05 Jul 2024 03:48 #304437 by DPFlex
Hello Aciera,
I could not find "lib/python/gladevcp".
I have Debian 12, 6.1.0-22 RT kernel, LinuxCNC2.9.2.
I only installed glade by command "sudo apt install glade", although there is lot of result if I use "apt search glade".
In other hand, I could not find & install glade-gtk2 by "apt install" command, too.
Did I install gladevcp correctly ?.
Thank you.

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

More
05 Jul 2024 06:25 #304443 by seuchato
DPFlex

I am also on Debian 12, bookworm

I placed "hal_widgets.py" here:
/usr/lib/python3/dist-packages/gladevcp

and "hal_python.xml" went here:
/usr/share/glade/catalogs

hth
chris
The following user(s) said Thank You: DPFlex

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

More
05 Jul 2024 09:40 #304446 by DPFlex
Tks seuchato a lot, it worked !

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

More
23 Aug 2024 07:03 #308441 by DPFlex
Hello,
Last time with LCNC 2.9.2, it worked.
But now I upgraded to LCNC 2.9.3, it can not work again.
Can "hal_widgets.py" and "hal_python.xml" still be ok ?.
Thank you.

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

More
23 Aug 2024 07:40 - 23 Aug 2024 07:43 #308443 by Aciera
The glade panel is outdated, there is a pull request that fixes the issue:
github.com/LinuxCNC/linuxcnc/pull/3078/files

You can also manually replace the content in 'manualtoolchange.ui' with this:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<interface>
<requires lib="gtk+" version="3.0"/>
<requires lib="gladevcp" version="0.0"/>
<object class="GtkWindow" id="window1">
<property name="can-focus">False</property>
<child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-bottom">8</property>
<property name="xpad">0</property>
<property name="ypad">5</property>
<property name="label" translatable="yes">Manual Toolchange
with Probing</property>
<attributes>
<attribute name="font-desc" value="Sans Bold 12"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<!-- n-columns=2 n-rows=1 -->
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="HAL_LED" id="change-led">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">20</property>
<property name="led-blink-rate">0</property>
<property name="led-shape">2</property>
<property name="off-color">black</property>
<property name="on-color">orange</property>
<property name="pick-color-off">#000000000000</property>
<property name="pick-color-on">#c6c646460000</property>
<signal name="hal-pin-changed" handler="on_led_change" swapped="no"/>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="change-text">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">10</property>
<property name="xpad">5</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">0</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<!-- n-columns=1 n-rows=3 -->
<object class="HAL_Table" id="enable">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<!-- n-columns=1 n-rows=2 -->
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">end</property>
<property name="valign">center</property>
<property name="row-spacing">5</property>
<child>
<object class="HAL_ToggleButton" id="reftool">
<property name="label" translatable="yes">Reference Tool</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="margin-right">25</property>
<property name="image-position">top</property>
<property name="active">True</property>
<property name="draw-indicator">True</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="HAL_Button" id="changed">
<property name="label" translatable="yes">Tool change complete</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="margin-right">25</property>
<property name="image-position">top</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">1</property>
</packing>
</child>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkFrame">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-top">5</property>
<property name="margin-bottom">5</property>
<property name="label-xalign">0</property>
<child>
<object class="GtkAlignment">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="left-padding">12</property>
<child>
<!-- n-columns=2 n-rows=3 -->
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="HAL_LED" id="probing-led">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-right">10</property>
<property name="led-blink-rate">5</property>
<property name="led-shape">2</property>
<property name="off-color">black</property>
<property name="pick-color-off"/>
<property name="pick-color-on">#1525ffff4fdc</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="HAL_Button" id="probe-contact">
<property name="label" translatable="yes">Simulate probe contact</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="margin-right">5</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="HAL_Label" id="currlen">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">label</property>
<property name="label-pin-type">1</property>
<property name="text-template">Current Z length: %f</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">1</property>
</packing>
</child>
<child>
<object class="HAL_Label" id="reflen">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">label</property>
<property name="label-pin-type">1</property>
<property name="text-template">Reference Z length: %f</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">2</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="xpad">10</property>
<property name="ypad">3</property>
<property name="label" translatable="yes">Tool probe</property>
</object>
</child>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">1</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="padding">3</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>
 
[edit]
With this there is no longer any need to change "hal_widgets.py" or "hal_python.xml"
Last edit: 23 Aug 2024 07:43 by Aciera.
The following user(s) said Thank You: DPFlex

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

Time to create page: 0.130 seconds
Powered by Kunena Forum