( Solved ) Issues with python plugin for remap

More
31 Jul 2020 01:34 - 04 Aug 2020 12:37 #176592 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.
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.
Attachments:
Last edit: 04 Aug 2020 12:37 by bevins.

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

More
31 Jul 2020 08:03 #176613 by rodw
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.

More
31 Jul 2020 10:51 #176641 by bevins

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.

More
31 Jul 2020 11:00 #176643 by rodw
Is it an error? I can't really see what looks like one.

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

More
31 Jul 2020 11:18 - 31 Jul 2020 11:22 #176645 by bevins

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.

More
31 Jul 2020 12:16 #176651 by rodw
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

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

More
31 Jul 2020 12:31 - 31 Jul 2020 12:31 #176655 by bevins

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.

More
31 Jul 2020 20:18 #176693 by bevins

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.

More
31 Jul 2020 20:47 - 31 Jul 2020 20:48 #176696 by bevins
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.
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.

More
31 Jul 2020 21:35 #176700 by bevins
AAAAAAARGGGG..... frustrating

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

Time to create page: 0.088 seconds
Powered by Kunena Forum