lube.py "No such file or directory"
27 Jun 2024 17:06 #303911
by greg23_78
lube.py "No such file or directory" was created by greg23_78
I have a problem using lube.py
I followed the cmorley procedure:
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.
my hal filewhat is the cause of this problem?
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
Please Log in or Create an account to join the conversation.
27 Jun 2024 17:47 #303914
by Aciera
Replied by Aciera on topic lube.py "No such file or directory"
Do you have a file named 'lube.py' in your '/bin' folder?
Please Log in or Create an account to join the conversation.
27 Jun 2024 18:04 - 27 Jun 2024 18:06 #303917
by Hastrh2o
Replied by Hastrh2o on topic lube.py "No such file or directory"
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"
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.
27 Jun 2024 18:05 - 27 Jun 2024 18:05 #303918
by greg23_78
Replied by greg23_78 on topic lube.py "No such file or directory"
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.
27 Jun 2024 18:07 #303919
by greg23_78
Replied by greg23_78 on topic lube.py "No such file or directory"
i have try in my config folder but still the same problem
Please Log in or Create an account to join the conversation.
27 Jun 2024 19:09 #303924
by greg23_78
Replied by greg23_78 on topic lube.py "No such file or directory"
Attachments:
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6430
27 Jun 2024 23:18 #303939
by tommylight
Replied by tommylight on topic lube.py "No such file or directory"
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
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.
28 Jun 2024 07:17 #303957
by greg23_78
Replied by greg23_78 on topic lube.py "No such file or directory"
it's working!
the solution for me was #!/usr/bin/python => #!/usr/bin/python3
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.
03 Jul 2024 05:13 #304295
by vre
Replied by vre on topic lube.py "No such file or directory"
Hello.
Whas does this python script?
Automatic lubrication via automatic lube pump?
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.209 seconds