qtDragon sim does not work anymore
Debian 11
When I 'make' a simulation machine setup with LinuxCNC then I get the errors as shown below. When I make a sim based on gmoccapy then it works. What am I doing wrong?\
I attached the debug from LinuxCNC as a file.
Please Log in or Create an account to join the conversation.
And this is what happens if I dare to make configuration and want to use the tool probe mode of qtDragon. I am having problems for a while now on my production machine (m6 remap does not work anymore) and it looks like the problems show up in qtDragon as if there is something wrong with LinuxCNC.
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./core_sim.hal
Found file(lib): /usr/share/linuxcnc/hallib/simulated_home.hal
initialize: module '/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py' init failed:
Traceback (most recent call last):
File "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py", line 17, in <module>
import remap
File "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/remap.py", line 17, in <module>
from stdglue import *
ModuleNotFoundError: No module named 'stdglue'
Interp ctor: can't instantiate Python plugin
initialize: module '/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py' init failed:
Traceback (most recent call last):
File "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py", line 17, in <module>
import remap
File "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/remap.py", line 17, in <module>
from stdglue import *
ModuleNotFoundError: No module named 'stdglue'
Python plugin configure() failed, status = -11
Python plugin required for prolog=, but not available: 69:REMAP = M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_probe_tool epilog=change_epilog
NGC file not found: ngc=qt_auto_probe_tool - 69:REMAP = M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_probe_tool epilog=change_epilog
Python plugin required for epilog=, but not available: 69:REMAP = M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_probe_tool epilog=change_epilog
emc/task/emctask.cc 69: interp_error: File not open
File not open
emc/task/emctaskmain.cc 3081: can't initialize interpreter
[QTvcp][INFO] Logging to "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/qtdragon.log" (logger.py:102)
Attachments:
Please Log in or Create an account to join the conversation.
Attachments:
Please Log in or Create an account to join the conversation.
- robertspark
- Offline
- Platinum Member
- Posts: 915
- Thank you received: 216
but I would suggest using a code block and plonking the text in that.
I manually edit the pages these days as I hate the forum editor and it's not intelligent.
hence I type
[ code ] and [ /code]
or b u i for bold underline and italic
quote etc as needed
yes it's a pain but I just find it quicker especially if you need to edit a post later.
Please Log in or Create an account to join the conversation.
I'm not sure why I don't see it here in the sample configs but will try to fix it anyways.
python2 and three handle adding ints and floats together differently so I'm not surprised.
Please Log in or Create an account to join the conversation.
maybe that was fixed in later versions...
Please Log in or Create an account to join the conversation.
ikkuh post=244047 userid=22931
And this is what happens if I dare to make configuration and want to use the tool probe mode of qtDragon. I am having problems for a while now on my production machine (m6 remap does not work anymore) and it looks like the problems show up in qtDragon as if there is something wrong with LinuxCNC.
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./core_sim.hal
Found file(lib): /usr/share/linuxcnc/hallib/simulated_home.hal
initialize: module '/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py' init failed:
Traceback (most recent call last):
File "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py", line 17, in <module>
import remap
File "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/remap.py", line 17, in <module>
from stdglue import *
ModuleNotFoundError: No module named 'stdglue'
Interp ctor: can't instantiate Python plugin
initialize: module '/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py' init failed:
Traceback (most recent call last):
File "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py", line 17, in <module>
import remap
File "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/remap.py", line 17, in <module>
from stdglue import *
ModuleNotFoundError: No module named 'stdglue'
Python plugin configure() failed, status = -11
Python plugin required for prolog=, but not available: 69:REMAP = M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_probe_tool epilog=change_epilog
NGC file not found: ngc=qt_auto_probe_tool - 69:REMAP = M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_probe_tool epilog=change_epilog
Python plugin required for epilog=, but not available: 69:REMAP = M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_probe_tool epilog=change_epilog
emc/task/emctask.cc 69: interp_error: File not open
File not open
emc/task/emctaskmain.cc 3081: can't initialize interpreter
[QTvcp][INFO] Logging to "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/qtdragon.log" (logger.py:102)
It's saying it can't find stdglue.py, which in a sim config is a relatively linked file.
If you have moved the config (or linuxcnc's picker did) the link is probably not valid anymore.
The qt_auto_probe_tool.ngc is a linked file too.
Please Log in or Create an account to join the conversation.
It's a new machine, fresh Debian 11, fresh LinuxCNC from the official repo (not buildbot). Since I am having trouble getting the nice things to work on my production machine I installed LinuxCNC on my personal computer. I hoped things would work right out of the box.
It's saying it can't find stdglue.py, which in a sim config is a relatively linked file.
If you have moved the config (or linuxcnc's picker did) the link is probably not valid anymore.
The qt_auto_probe_tool.ngc is a linked file too.
There is nothing special about this machine, it should be able to run the simulations easily.
I have gmoccapy running (in simulation) on this machine, including tool length measurement and manual toolchange (M6 remap). Everything works in Norbert's gui.
I hope to get qtDragon running soon on both of my machines. I have two Mesa cards with loads of inputs and I want to use them
Please Log in or Create an account to join the conversation.
Ok, fresh install once again. After installing LinuxCNC from the repo I did a sudo updatedb.It's saying it can't find stdglue.py, which in a sim config is a relatively linked file.
If you have moved the config (or linuxcnc's picker did) the link is probably not valid anymore.
The qt_auto_probe_tool.ngc is a linked file too.
Now for the files and locations:
The manual says:[RS274NGC]
# adjust this paths to point to folders with stdglu.py and qt_auto_tool_probe.ngc
# or similarly coded custom remap files
SUBROUTINE_PATH = ~/linuxcnc/nc_files/remap-subroutines:~/linuxcnc/nc_files/remap_lib
Checking the directories shows:
@ls -la ~/linuxcnc/nc_files/remap-subroutines
ls: kan geen toegang krijgen tot '/home/xxx/linuxcnc/nc_files/remap-subroutines~': Bestand of map bestaat niet
File does not exist
@ls -la ~/linuxcnc/nc_files/remap_lib
lrwxrwxrwx 1 ton ton 37 28 mei 11:01 /home/ton/linuxcnc/nc_files/remap_lib -> /usr/share/linuxcnc/ncfiles/remap_lib
OK
locate qt_auto_tool_probe.ngc
nothing found
locate qt_auto_probe_tool.ngc
/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/qt_auto_probe_tool.ngc
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/qt_auto_probe_tool.ngc
/usr/share/linuxcnc/ncfiles/remap-subroutines/qt_auto_probe_tool.ngc
Three versions found, notice the different name)
ls -la /home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/qt_auto_probe_tool.ngc
lrwxrwxrwx 1 ton ton 58 28 mei 10:49 /home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/qt_auto_probe_tool.ngc -> ../../../nc_files/remap-subroutines/qt_auto_probe_tool.ngc
it's a broken link ( I am doing all this from the directory where LinuxCNC put the simulation in: ~/linuxcnc/configs/sim.qtvcp_screens.qtdragon )
ls -la /usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/qt_auto_probe_tool.ngc
lrwxrwxrwx 1 root root 58 6 apr 16:23 /usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/qt_auto_probe_tool.ngc -> ../../../nc_files/remap-subroutines/qt_auto_probe_tool.ngc
This one looks ok
ls -la /usr/share/linuxcnc/ncfiles/remap-subroutines/qt_auto_probe_tool.ngc
-rw-r--r-- 1 root root 2359 6 apr 16:23 /usr/share/linuxcnc/ncfiles/remap-subroutines/qt_auto_probe_tool.ngc
Yes, it's there
The manual:# The remap code for Qtvcp's versaprobe's automatic tool probe of Z
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_tool_probe epilog=change_epilog
Notice the spelling of the ngc routine.
locate stdglue.py
/home/ton/linuxcnc/configs/sim.gmoccapy/python/stdglue.py
/home/ton/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/stdglue.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/gmoccapy/python/stdglue.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/stdglue.py
/usr/share/linuxcnc/ncfiles/remap_lib/python-stdglue/stdglue.py
locate remap.py
/home/ton/linuxcnc/configs/sim.gmoccapy/python/remap.py
/home/ton/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/lathe-fanucy/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/orphans/iocontrol-removed/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/orphans/pysubs/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/cycle/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/extend-builtins/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/getting-started/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/manual-toolchange-with-tool-length-switch/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/rack-toolchange/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/stop-lookahead/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/vismach/VMC_toolchange/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/gmoccapy/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/gscreen/industrial_lathe_wear/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/industrial_lathe_wear/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtaxis_lathe/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/remap.py
locate toplevel.py
/home/ton/linuxcnc/configs/sim.gmoccapy/python/toplevel.py
/home/ton/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/lathe-fanucy/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/orphans/iocontrol-removed/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/cycle/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/extend-builtins/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/getting-started/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/manual-toolchange-with-tool-length-switch/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/rack-toolchange/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/stop-lookahead/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/vismach/VMC_toolchange/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/gmoccapy/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/gscreen/industrial_lathe_wear/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/industrial_lathe_wear/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtaxis_lathe/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/toplevel.py
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.