lube.py "No such file or directory"

More
27 Jun 2024 17:06 #303911 by greg23_78
I have a problem using lube.py
I followed the cmorley procedure:
" try this (depending on your file manager the tabs etc might be called diffeent but the process should be the same.
.
Find the lube.py file using the file manager and right click it.
select 'permissions' tab
select 'make executable' checkbox.

switch back to 'basic' tab.
look for 'location'
copy it to the hal file so it looks like this (obviously you will have a different path):

loadusr -W /home/chris/emc-dev/configs/sim/qtvcp_screens/lube.py

Chris "

but I still have the problem of "No such file or directory".
I've tried to place it in usr/bin like lubedude's procedure but I'm having the same problem.
Found file(REL): ./main.hal
./main.hal:5: execv(/bin/lube.py): No such file or directory
./main.hal:5: waitpid failed /bin/lube.py lube
./main.hal:5: /bin/lube.py exited without becoming ready
Shutting down and cleaning up LinuxCNC...

my hal file
loadusr -W /bin/lube.py
what is the cause of this problem?

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

More
27 Jun 2024 17:47 #303914 by Aciera
Do you have a file named 'lube.py' in your '/bin' folder?

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

More
27 Jun 2024 18:04 - 27 Jun 2024 18:06 #303917 by Hastrh2o
As said Aciera, you shouldn't have lube.py in /bin/ .
Maybe you would write ./bin/lube.py in case you are working in /usr and you placed the file in /usr/bin as you said.
/ mean the filesystem root, ./ mean "here"
Last edit: 27 Jun 2024 18:06 by Hastrh2o.

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

More
27 Jun 2024 18:05 - 27 Jun 2024 18:05 #303918 by greg23_78
yes, i have my lube.py in /bin folder and is set in executable
Last edit: 27 Jun 2024 18:05 by greg23_78.

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

More
27 Jun 2024 18:07 #303919 by greg23_78
i have try in my config folder but still the same problem

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

More
27 Jun 2024 19:09 #303924 by greg23_78
 

 

 

 

 
Attachments:

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

More
27 Jun 2024 23:18 #303939 by tommylight
Try this:

loadusr -W lube.py
or

loadusr -W ./lube.py
If that does not work, edit the lube.py file and check at the top there should be something like
#!/usr/bin/python
or
#!/usr/bin/python2
and change it to
#!/usr/bin/python3
save, try running LinuxCNC

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

More
28 Jun 2024 07:17 #303957 by greg23_78
it's working!

the solution for me was #!/usr/bin/python => #!/usr/bin/python3
The following user(s) said Thank You: tommylight

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

More
03 Jul 2024 05:13 #304295 by vre
Hello.
Whas does this python script?
Automatic lubrication via automatic lube pump?

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

Time to create page: 0.222 seconds
Powered by Kunena Forum