REMAP function doesn't work

More
30 Jan 2020 09:12 #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 or Create an account to join the conversation.

More
10 Feb 2020 00:17 #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
#! usr/env python
magic incantation at the top.

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

More
16 Feb 2020 20:38 - 16 Feb 2020 20:42 #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.

File Attachment:

File Name: Error.ngc
File Size:32 KB
Attachments:
Last edit: 16 Feb 2020 20:42 by aleksamc.

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

More
19 Feb 2020 16:22 #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 or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum