REMAP function doesn't work
- aleksamc
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 567
- Thank you received: 65
30 Jan 2020 09:12 #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 or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4861
10 Feb 2020 00:17 #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 themagic incantation at the top.
You probably need to make the Python files executable.
And they might also need the
#! usr/env python
Please Log in or Create an account to join the conversation.
- aleksamc
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 567
- Thank you received: 65
16 Feb 2020 20:38 - 16 Feb 2020 20:42 #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.
Attachments:
Last edit: 16 Feb 2020 20:42 by aleksamc.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4861
19 Feb 2020 16:22 #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 or Create an account to join the conversation.
Time to create page: 0.049 seconds