- Posts: 43
- Thank you received: 0
(solved) python error on startup
- peterdownunder
- Topic Author
- Offline
- Senior Member
-
Less
More
1 year 3 months ago #332100
by peterdownunder
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.
(solved) python error on startup was created by peterdownunder
Attachment not found
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.
- peterdownunder
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 43
- Thank you received: 0
1 year 3 months ago #332102
by peterdownunder
Replied by peterdownunder on topic (solved) python error on startup
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.
1 year 3 months ago #332112
by Aciera
Replied by Aciera on topic (solved) python error on startup
As the error message indicates:
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
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.
- peterdownunder
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 43
- Thank you received: 0
1 year 3 months ago #332161
by peterdownunder
Replied by peterdownunder on topic (solved) python error on startup
Thanks that fixed it. Unsure what exactly happened, but happy to have it fixed
Please Log in to join the conversation.
- peterdownunder
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 43
- Thank you received: 0
1 year 3 months ago #332162
by peterdownunder
Replied by peterdownunder on topic (solved) python error on startup
as an aside, how do i mark this as answered ??
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 3
1 year 3 months ago #332187
by tommylight
Replied by tommylight on topic (solved) python error on startup
Done, thank you.as an aside, how do i mark this as answered ??
Please Log in to join the conversation.
Time to create page: 0.087 seconds
