( Solved ) Issues with python plugin for remap
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
31 Jul 2020 01:34 - 04 Aug 2020 12:37 #176592
by bevins
( Solved ) Issues with python plugin for remap was created by bevins
keep getting this error and cant get rid of it. I know all my paths are ok.
I have seen it before but cant seem to figure it out.
All files are exact as they are with rack toolchange in sim.
I have seen it before but cant seem to figure it out.
hm2/hm2_7i92.0: registered
Found file(REL): ./custom.hal
/home/etienne/linuxcnc/configs/ET1/ET1.ini:60: executing 'import sys
sys.path.insert(0,"/home/etienne/linuxcnc/python")'
/home/etienne/linuxcnc/configs/ET1/ET1.ini:62: executing 'import sys
sys.path.append("/home/etienne/linuxcnc/python")'
PythonPlugin: Python '2.7.12 (default, Oct 8 2019, 14:14:10)
[GCC 5.4.0 20160609]'
/home/etienne/linuxcnc/configs/ET1/ET1.ini:60: executing 'import sys
sys.path.insert(0,"/home/etienne/linuxcnc/python")'
/home/etienne/linuxcnc/configs/ET1/ET1.ini:62: executing 'import sys
sys.path.append("/home/etienne/linuxcnc/python")'
PythonPlugin: Python '2.7.12 (default, Oct 8 2019, 14:14:10)
[GCC 5.4.0 20160609]'
is_callable(__init__) = FALSE
note: MAXV max: 10.000 units/sec 600.000 units/min
note: LJOG max: 10.000 units/sec 600.000 units/min
note: LJOG default: 4.000 units/sec 240.000 units/min
note: jog_order='XYZ'
note: jog_invert=set([])
/home/etienne/linuxcnc/configs/ET1/ET1.ini:60: executing 'import sys
sys.path.insert(0,"/home/etienne/linuxcnc/python")'
/home/etienne/linuxcnc/configs/ET1/ET1.ini:62: executing 'import sys
sys.path.append("/home/etienne/linuxcnc/python")'
PythonPlugin: Python '2.7.12 (default, Oct 8 2019, 14:14:10)
[GCC 5.4.0 20160609]'
is_callable(__init__) = FALSE
is_callable(oword.rack_change) = FALSE
is_callable(oword.tool_getput_move) = FALSE
is_callable(oword.tool_holder_clear_move) = FALSE
All files are exact as they are with rack toolchange in sim.
Last edit: 04 Aug 2020 12:37 by bevins.
Please Log in or Create an account to join the conversation.
- rodw
- Away
- Platinum Member
Less
More
- Posts: 10788
- Thank you received: 3554
31 Jul 2020 08:03 #176613
by rodw
Replied by rodw on topic ( Solved ) Issues with python plugin for remap
At a guess from the error, the code you are using is referring to the home folder for a user by another name. So edit that code to point to /home/bevins/.... for example.
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
31 Jul 2020 10:51 #176641
by bevins
That's the customers name I am doing this for.
Replied by bevins on topic ( Solved ) Issues with python plugin for remap
At a guess from the error, the code you are using is referring to the home folder for a user by another name. So edit that code to point to /home/bevins/.... for example.
That's the customers name I am doing this for.
Please Log in or Create an account to join the conversation.
- rodw
- Away
- Platinum Member
Less
More
- Posts: 10788
- Thank you received: 3554
31 Jul 2020 11:00 #176643
by rodw
Replied by rodw on topic ( Solved ) Issues with python plugin for remap
Is it an error? I can't really see what looks like one.
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
31 Jul 2020 11:18 - 31 Jul 2020 11:22 #176645
by bevins
Thats the first issue......
Tries to import sys three times and it cannot for some unknown reason, hence the init calls false
Replied by bevins on topic ( Solved ) Issues with python plugin for remap
Is it an error? I can't really see what looks like one.
is_callable(__init__) = FALSE
Thats the first issue......
Tries to import sys three times and it cannot for some unknown reason, hence the init calls false
Last edit: 31 Jul 2020 11:22 by bevins.
Please Log in or Create an account to join the conversation.
- rodw
- Away
- Platinum Member
Less
More
- Posts: 10788
- Thank you received: 3554
31 Jul 2020 12:16 #176651
by rodw
Replied by rodw on topic ( Solved ) Issues with python plugin for remap
From what I can see, its trying to add a folder to the path which does not exist
/home/etienne/linuxcnc/python
I think the python folder is under your rack tool changer config. Try copying that folder to the top level ~/linuxcnc folder.
I'm using a RIP config here and I found I had to add these dependencies as well before the sim would even open!
/home/etienne/linuxcnc/python
I think the python folder is under your rack tool changer config. Try copying that folder to the top level ~/linuxcnc folder.
I'm using a RIP config here and I found I had to add these dependencies as well before the sim would even open!
sudo apt-get install -y python-gtkglext1
sudo apt-get install -y python-gtksourceview2
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
31 Jul 2020 12:31 - 31 Jul 2020 12:31 #176655
by bevins
That path exists. I tried it all different ways. It finds it because if I change the file so it has errors it shows different errors. So it can find the files. I'll try that
Replied by bevins on topic ( Solved ) Issues with python plugin for remap
From what I can see, its trying to add a folder to the path which does not exist
/home/etienne/linuxcnc/python
I think the python folder is under your rack tool changer config. Try copying that folder to the top level ~/linuxcnc folder.
I'm using a RIP config here and I found I had to add these dependencies as well before the sim would even open!sudo apt-get install -y python-gtkglext1 sudo apt-get install -y python-gtksourceview2
That path exists. I tried it all different ways. It finds it because if I change the file so it has errors it shows different errors. So it can find the files. I'll try that
Last edit: 31 Jul 2020 12:31 by bevins.
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
31 Jul 2020 20:18 #176693
by bevins
]They are already installed.
No one knows what these issues are?
Replied by bevins on topic ( Solved ) Issues with python plugin for remap
From what I can see, its trying to add a folder to the path which does not exist
/home/etienne/linuxcnc/python
I think the python folder is under your rack tool changer config. Try copying that folder to the top level ~/linuxcnc folder.
I'm using a RIP config here and I found I had to add these dependencies as well before the sim would even open!sudo apt-get install -y python-gtkglext1 sudo apt-get install -y python-gtksourceview2
]They are already installed.
No one knows what these issues are?
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
31 Jul 2020 20:47 - 31 Jul 2020 20:48 #176696
by bevins
Replied by bevins on topic ( Solved ) Issues with python plugin for remap
OK, I got init loaded and working.
But I still have the issue of the oword functions not working.
It is exactly like the rack_change in the sim.The sim doesn't need to load init but what is missing to
make the oword functions work? Why are they not callable? If I put scrap characters in the functions linuxcnc complains and wont load so it knows where they are.
But I still have the issue of the oword functions not working.
It is exactly like the rack_change in the sim.The sim doesn't need to load init but what is missing to
make the oword functions work? Why are they not callable? If I put scrap characters in the functions linuxcnc complains and wont load so it knows where they are.
is_callable(__init__) = TRUE
0 words passed
is_callable(oword.rack_change) = FALSE
is_callable(oword.tool_getput_move) = FALSE
is_callable(oword.tool_holder_clear_move) = FALSE
Last edit: 31 Jul 2020 20:48 by bevins.
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
31 Jul 2020 21:35 #176700
by bevins
Replied by bevins on topic ( Solved ) Issues with python plugin for remap
AAAAAAARGGGG..... frustrating
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds