LCNC error during remap test

More
07 Jun 2022 00:51 #244700 by spumco
Trying to remap M6 for an ATC test. and LCNC is throwing an error  Only thing changed from a working config was uncommenting the INI line:
REMAP=M6   modalgroup=6 prolog=change_prolog ngc=toolchangeRMC epilog=change_epilog

Using stdglue.py, remap.py, and toplevel.py that came with Probe Basic sim.

Not linux-clever, so I've no idea where to start or what the errors mean.


MX 21
LCNC 2.9, RIP
QtPyVCP master
Probe Basic python3
The following user(s) said Thank You: TurBoss

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

More
07 Jun 2022 17:52 - 07 Jun 2022 17:57 #244729 by spumco
Replied by spumco on topic LCNC error during remap test
Tommy - can you move this to QtPyVCP for me?

I think "Notifications.py" is a qtpyvcp plugin thing, and this may get more attention in the appropriate sub-forum.

Thx,
Ralph

EDIT - yes, it's related to qtpyvcp, not that I know what to do about it.

github.com/kcjengr/qtpyvcp/issues/75

 
Last edit: 07 Jun 2022 17:57 by spumco.

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

More
07 Jun 2022 21:15 #244738 by tommylight
Done.
The following user(s) said Thank You: spumco

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

More
08 Jun 2022 00:31 - 08 Jun 2022 01:09 #244743 by TurBoss
Hello!

File "/home/mill/.local/lib/python3.9/site-packages/qtpyvcp/widgets/display_widgets/vtk_backplot/vtk_backplot.py", line 88, in __init__ self.active_wcs_offset = self._datasource.getActiveWcsOffsets() File "/home/mill/.local/lib/python3.9/site-packages/qtpyvcp/widgets/display_widgets/vtk_backplot/linuxcnc_datasource.py", line 155, in getActiveWcsOffsets xy.append(self.__getRotationOfActiveWcs()) File "/home/mill/.local/lib/python3.9/site-packages/qtpyvcp/widgets/display_widgets/vtk_backplot/linuxcnc_datasource.py", line 160, in __getRotationOfActiveWcs current_wcs = self.getWcsOffsets()[self.getActiveWcsIndex()] KeyError: -1

this issue got fixed recently on qtpyvcp master branch at github


about the notification issue, I have to take a look


Thanks

Edit:

The notification error may be fixed now
Last edit: 08 Jun 2022 01:09 by TurBoss.

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

More
08 Jun 2022 03:34 - 08 Jun 2022 05:14 #244749 by spumco
Replied by spumco on topic LCNC error during remap test
Thanks for having a look.

What do I need to do to update my version?  I presume it's a 'git-pull' thing, but I'm still at the cut and paste stage and could use something specific to paste in the terminal.

EDIT - I think I updated to the latest using python3 -m pip install --upgrade qtpyvcp (from the qtpyvcp install page.

Last error went away, but getting a new one.  Sorry for the big paste, but I can't figure out where LCNC is storing the debug report file.
Debug file information:
Note: Using POSIX realtime
/home/mill/linuxcnc/configs/HAL_rev28.5_ATC/PBtestATC.ini:51: executing 'import sys
sys.path.append("/home/mill/linuxcnc/configs/HAL_rev28.5_ATC/python/")'
PythonPlugin: Python  '3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110]'
/home/mill/linuxcnc/configs/HAL_rev28.5_ATC/PBtestATC.ini:51: executing 'import sys
sys.path.append("/home/mill/linuxcnc/configs/HAL_rev28.5_ATC/python/")'
PythonPlugin: Python  '3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110]'
is_callable(__init__) = FALSE
Traceback (most recent call last):
  File "/home/mill/.local/bin/probe_basic", line 33, in <module>
    sys.exit(load_entry_point('probe-basic', 'gui_scripts', 'probe_basic')())
  File "/home/mill/probe_basic/probe_basic/__init__.py", line 16, in main
    opts = parse_opts(vcp_cmd='probe_basic',
  File "/home/mill/.local/lib/python3.9/site-packages/qtpyvcp/utilities/opt_parser.py", line 104, in parse_opts
    opts = DotDict({arg.strip('-<>').replace('-', '_') : convType(value) for arg, value in raw_args.items()})
  File "/home/mill/.local/lib/python3.9/site-packages/qtpyvcp/utilities/opt_parser.py", line 104, in <dictcomp>
    opts = DotDict({arg.strip('-<>').replace('-', '_') : convType(value) for arg, value in raw_args.items()})
  File "/home/mill/.local/lib/python3.9/site-packages/qtpyvcp/utilities/opt_parser.py", line 65, in convType
    if isinstance(val, basestring):
NameError: name 'basestring' is not defined
26178
26246
is_callable(__delete__) = FALSE
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Last edit: 08 Jun 2022 05:14 by spumco. Reason: updated & new error

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

More
10 Jun 2022 19:06 - 10 Jun 2022 19:10 #244897 by TurBoss
hello,

to get latest version from git you can do this
python3.9 -m pip install -e .

in the qtpyvcp directory

uninstall any version installed from pip before by running
python3.9 -m pip uninstall qtpyvcp


thanks

edit:
WARNING:

python3.9 -m pip install qtpyvcp

will install the python2.7 version, :)
Last edit: 10 Jun 2022 19:10 by TurBoss. Reason: add warning
The following user(s) said Thank You: spumco

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

Moderators: KCJLcvette
Time to create page: 0.079 seconds
Powered by Kunena Forum