REMAP function doesn't work

More
6 years 9 months ago #156154 by aleksamc
I changed to
<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.

More
6 years 8 months ago #156920 by andypugh
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
Code:
#! usr/env python
magic incantation at the top.

Please Log in to join the conversation.

More
6 years 8 months ago #157519 by aleksamc
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.

Attachment not found

Please Log in to join the conversation.

More
6 years 8 months ago #157865 by andypugh
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.

Please Log in to join the conversation.

Time to create page: 0.043 seconds
Powered by Kunena Forum