- Posts: 142
- Thank you received: 0
lube.py "No such file or directory"
2 years 4 months ago #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 file
what is the cause of this problem?
I followed the cmorley procedure:
Code:
" 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.
Code:
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
Code:
loadusr -W /bin/lube.py
Please Log in to join the conversation.
2 years 4 months ago #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 to join the conversation.
2 years 4 months ago #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"
Please Log in to join the conversation.
2 years 4 months ago #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
Please Log in to join the conversation.
2 years 4 months ago #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 to join the conversation.
2 years 4 months ago #303924
by greg23_78
Replied by greg23_78 on topic lube.py "No such file or directory"
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 3
2 years 4 months ago #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 to join the conversation.
2 years 4 months ago #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
Please Log in to join the conversation.
Time to create page: 0.089 seconds
