- Posts: 566
- Thank you received: 0
REMAP function doesn't work
6 years 9 months ago #156154
by aleksamc
Replied by aleksamc on topic REMAP function doesn't work
I changed to
<return 0>
Nothing changed: " 'g886' is not a Python callable function.
May be it should be somehow compiled?
<return 0>
Nothing changed: " 'g886' is not a Python callable function.
May be it should be somehow compiled?
Please Log in to join the conversation.
6 years 8 months ago #156920
by andypugh
Replied by andypugh on topic REMAP function doesn't work
Probably too late now (I have a huge forum backlog)
You probably need to make the Python files executable.
And they might also need the
magic incantation at the top.
You probably need to make the Python files executable.
And they might also need the
Code:
#! usr/env python
Please Log in to join the conversation.
6 years 8 months ago #157519
by aleksamc
Replied by aleksamc on topic REMAP function doesn't work
Thank's for your unswer AndyPugh. No, it's not late for me. I simply shifted this problem because I didn't found any answer.
I tried as you said:
1) added line <#! usr/env python> (also tried <#!/usr/bin/env python>)
2) in terminal writed chmod +x <filename.py>
But it doesn't solve my problem.
I tried as you said:
1) added line <#! usr/env python> (also tried <#!/usr/bin/env python>)
2) in terminal writed chmod +x <filename.py>
But it doesn't solve my problem.
Attachment not found
Please Log in to join the conversation.
6 years 8 months ago #157865
by andypugh
Replied by andypugh on topic REMAP function doesn't work
This looks like a problem with toplevel.py and remap.py. Do those both exist?
LinuxCNC loads toplevel.py and then that imports remap.py which needs to either contain your "involute" function definition, or import a file that does.
LinuxCNC loads toplevel.py and then that imports remap.py which needs to either contain your "involute" function definition, or import a file that does.
Please Log in to join the conversation.
Time to create page: 0.043 seconds
