qtDragon sim does not work anymore

More
28 May 2022 09:06 #244046 by ikkuh
LinuxCNC pre 2.9
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?\
This f*ng forum editor drives me nuts, now there are to many links in the debug messages, there are NONE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I attached the debug from LinuxCNC as a file.
Attachments:

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

More
28 May 2022 10:43 - 28 May 2022 10:45 #244047 by ikkuh
 
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)
 

 

File Attachment:

File Name: qtdragon.l...5-28.txt
File Size:3 KB
 

File Attachment:

File Name: linuxcnc_d...robe.txt
File Size:6 KB
Attachments:
Last edit: 28 May 2022 10:45 by ikkuh. Reason: please get a proper editor for this forum........

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

More
28 May 2022 10:54 #244049 by ikkuh
 

File Attachment:

File Name: linuxcnc_info.txt
File Size:3 KB
Attachments:

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

More
28 May 2022 11:36 #244053 by robertspark
can't help you with your lcnc problem,

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.
The following user(s) said Thank You: tommylight, ikkuh

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

More
28 May 2022 16:46 #244065 by cmorley
looks like optional led widget on indicated buttons are floats which causes an error in painting.
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.

More
28 May 2022 17:00 #244066 by cmorley
interesting - it seems my version of pyqt will accept floats in the painter object.
maybe that was fixed in later versions...

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

More
28 May 2022 17:08 #244067 by cmorley

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)
 

 

File Attachment:

File Name: qtdragon.l...5-28.txt
File Size:3 KB
 

File Attachment:

File Name: linuxcnc_d...robe.txt
File Size:6 KB


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.

More
29 May 2022 08:53 #244105 by ikkuh

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.

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.
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.

More
29 May 2022 09:14 #244106 by ikkuh

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.







 

Ok, fresh install once again. After installing LinuxCNC from the repo I did a sudo updatedb.

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.

More
29 May 2022 11:29 #244113 by ikkuh
same error in woodpecker btw.

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

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