(solved) python error on startup

More
1 year 3 months ago #332100 by peterdownunder
 

Attachment not found

Went to startup linuxcnc today and am getting the following error

Found file(REL): ./custom.hal
initialize: module '/home/peter/cnc/taigmesa/python/toplevel.py' init failed:
Traceback (most recent call last):

File "/home/peter/cnc/taigmesa/python/toplevel.py", line 19, in <module>
import remap

File "python/remap.py", line 19, in <module>
from stdglue import *

File "python/stdglue.py", line 59

print "change_prolog: Toolchanger soft fault %d" % int(self.params[5601])

^

SyntaxError: invalid syntax

Interp ctor: can't instantiate Python plugin
initialize: module '/home/peter/cnc/taigmesa/python/toplevel.py' init failed:
Traceback (most recent call last):

File "/home/peter/cnc/taigmesa/python/toplevel.py", line 19, in <module>
import remap

File "python/remap.py", line 19, in <module>
from stdglue import *

File "python/stdglue.py", line 59

print "change_prolog: Toolchanger soft fault %d" % int(self.params[5601])

^

SyntaxError: invalid syntax

Python plugin configure() failed, status = -11
Python plugin required for prolog=, but not available: 78:REMAP = M6 modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilog
Python plugin required for epilog=, but not available: 78:REMAP = M6 modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilog

emc/task/emctaskmain.cc 3084: can't initialize interpreter 

If I comment out the
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilog
from my ini file all is well, but obviously no tool change.
With it in it eventually starts up after the error above but is unusable.

Chacking against git history show no significant changes that I can see.

Linuxcnc version 2.9.3
UI is Gmoccapy
Python version is 3.7.3

Unsure where to start.

Please Log in to join the conversation.

More
1 year 3 months ago #332102 by peterdownunder
Also just realised that when I start with the remap line in the ini file commented out the error still occurs, without the 2 lines after "Python plugin configure() failed, status = -11"

Please Log in to join the conversation.

More
1 year 3 months ago #332112 by Aciera
As the error message indicates:
Code:
print "change_prolog: Toolchanger soft fault %d" % int(self.params[5601])

Is invalid syntax for python 3. Possibly you imported the 'nc_files' folder from an older version of linuxcnc?

You might want to replace your "nc_files/remap_lib" folder with the one available here:

github.com/LinuxCNC/linuxcnc/tree/2.9/nc_files/remap_lib

Please Log in to join the conversation.

More
1 year 3 months ago #332161 by peterdownunder
Thanks that fixed it. Unsure what exactly happened, but happy to have it fixed

 

Please Log in to join the conversation.

More
1 year 3 months ago #332162 by peterdownunder
as an aside, how do i mark this as answered ??

Please Log in to join the conversation.

More
1 year 3 months ago #332187 by tommylight

as an aside, how do i mark this as answered ??
Done, thank you.

Please Log in to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum