Auto Tool Probe - not callable

More
10 months 4 hours ago #340866 by Thllll
LinuxCNC 2.94
Qt_dragon_hd

Unable to change tools in QT Dragon using the command T2 M6 or any tool number. Debug shows the following
Code:
is_callable(oword.qt_auto_probe_tool) = FALSE

Ran the auto tool sim and that works, compared the .ini and .hal files to find no differences. Thought it wasnt getting to the qt_auto_probe_tool.ngc found in "/usr/share/linuxcnc/ncfiles/remap-subroutines:\"  so I added it to the subroutines which didnt work either
Code:
SUBROUTINE_PATH =\ ~/linuxcnc/nc_files/examples/ngcgui_lib:\ ~/linuxcnc/nc_files/examples/ngcgui_lib/utilitysubs:\ ~/linuxcnc/nc_files/examples/remap-subroutines:\ /usr/share/linuxcnc/ncfiles/remap-subroutines:\ ~/linuxcnc/nc_files/examples/remap_lib

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

More
10 months 19 minutes ago #340867 by cmorley
is there this folder?
~/linuxcnc/nc_files/examples/remap_lib/python-stdglue/python

does that folder have these files?
remap.py
toplevel.py

is this link valid in that folder?
stdglue.py

is there this path?
~/linuxcnc/nc_files/examples/remap-subroutines/qt_auto_probe_tool.ngc

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

More
9 months 4 weeks ago #340883 by Thllll
All correct, see attached screenshots

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

More
9 months 4 weeks ago - 9 months 4 weeks ago #340895 by cmorley
ok.
I see there two entries for:
PROGRAM_PREFIX = /home/cnc/linuxcnc/nc_files

should only be one entry and they are both wrong. should be:
PROGRAM_PREFIX = ~/home/cnc/linuxcnc/nc_files

I don't think this is the problem bit please fix it anyways,
Then can you run linuxcnc from a terminal, do a MDI tool change and post the terminal output.
Last edit: 9 months 4 weeks ago by cmorley.

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

More
9 months 4 weeks ago #340896 by cmorley
Well i guess I should ask is the program prefix (~/home/cnc/linuxcnc/nc_files) a valid path too.

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

More
9 months 4 weeks ago #340933 by Thllll
I corrected the program prefix, to be one and have the "~" at the start. Ran again I am getting the following from the terminal. The path is valid as well. The following is from the terminal
Code:
home/cnc/linuxcnc/configs/New_TAIG_dragon/New_TAIG_dragon.ini:92: executing 'import sys sys.path.append("/home/cnc/linuxcnc/nc_files/examples/remap_lib/python-stdglue/python")' PythonPlugin: Python  '3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0]' is_callable(__init__) = FALSE [QTvcp.QTVCP.QT_ISTAT][WARNING]  Path not valid in INI File [DISPLAY] PROGRAM_PREFIX section (qt_istat.py:96) [QTvcp.QTVCP.QT_ISTAT][WARNING]  INI Parsing Error, No MAX_LINEAR_VELOCITY Entry in DISPLAY, Using: 5 (qt_istat.py:532) [QTvcp.QTVCP.QT_ISTAT][WARNING]  INI Parsing Error, No MAX_SPINDLE_POWER Entry in DISPLAY, Using: 1500 (qt_istat.py:532) is_callable(oword.on_abort) = FALSE task: main loop took 0.119162 seconds is_callable(oword.qt_auto_probe_tool) = FALSE

I compared to the sim .ini file and found that the "~" was not part of the program_prefix. Running it again without the "~", cleared the error
Code:
[QTvcp.QTVCP.QT_ISTAT][WARNING]  Path not valid in INI File [DISPLAY] PROGRAM_PREFIX section (qt_istat.py:96)

Still does not work but this was noticable
Code:
PythonPlugin: Python  '3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0]' is_callable(__init__) = FALSE

Running the sim actually in debug shows the same thing.. 
Code:
/home/cnc/linuxcnc/configs/sim.qtdragon.qtdragon_tool_probe/qtdragon_auto_tool_probe.ini:120: executing 'import sys sys.path.append("/home/cnc/linuxcnc/nc_files/examples/remap_lib/python-stdglue/python")' PythonPlugin: Python  '3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0]' /home/cnc/linuxcnc/configs/sim.qtdragon.qtdragon_tool_probe/qtdragon_auto_tool_probe.ini:120: executing 'import sys sys.path.append("/home/cnc/linuxcnc/nc_files/examples/remap_lib/python-stdglue/python")' PythonPlugin: Python  '3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0]' is_callable(__init__) = FALSE Unexpected realtime delay on task 0 with period 100000 This Message will only display once per session. Run the Latency Test and resolve before continuing. Unexpected realtime delay on task 0 with period 100000 This Message will only display once per session. Run the Latency Test and resolve before continuing. is_callable(oword.on_abort) = FALSE is_callable(oword.qt_auto_probe_tool) = FALSE tool_result(id=2, xoffset=0.0, yoffset=0.0, zoffset=0.1, aoffset=0.0, boffset=0.0, coffset=0.0, uoffset=0.0, voffset=0.0, woffset=0.0, diameter=0.0625, frontangle=0.0, backangle=0.0, orientation=0)




 

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

Moderators: cmorley
Time to create page: 0.251 seconds
Powered by Kunena Forum