( Solved ) Issues with python plugin for remap

More
6 years 3 months ago #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.
Code:
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.

Please Log in to join the conversation.

More
6 years 3 months ago #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 to join the conversation.

More
6 years 3 months ago #176641 by bevins

rodw wrote: 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 to join the conversation.

More
6 years 3 months ago #176643 by rodw
Is it an error? I can't really see what looks like one.

Please Log in to join the conversation.

More
6 years 3 months ago #176645 by bevins

rodw wrote: Is it an error? I can't really see what looks like one.

Code:
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

Please Log in to join the conversation.

More
6 years 3 months ago #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!
Code:
sudo apt-get install -y python-gtkglext1 sudo apt-get install -y python-gtksourceview2

Please Log in to join the conversation.

More
6 years 3 months ago #176655 by bevins

rodw wrote: 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!

Code:
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

Please Log in to join the conversation.

More
6 years 2 months ago #176693 by bevins

rodw wrote: 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!

Code:
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 to join the conversation.

More
6 years 2 months ago #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.
Code:
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

Please Log in to join the conversation.

More
6 years 2 months ago #176700 by bevins
AAAAAAARGGGG..... frustrating

Please Log in to join the conversation.

Time to create page: 0.105 seconds
Powered by Kunena Forum