lube.py "No such file or directory"

More
2 years 4 months ago #303911 by greg23_78
I have a problem using lube.py
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
what is the cause of this problem?

Please Log in to join the conversation.

More
2 years 4 months ago #303914 by Aciera
Do you have a file named 'lube.py' in your '/bin' folder?

Please Log in to join the conversation.

More
2 years 4 months ago #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"

Please Log in to join the conversation.

More
2 years 4 months ago #303918 by greg23_78
yes, i have my lube.py in /bin folder and is set in executable

Please Log in to join the conversation.

More
2 years 4 months ago #303919 by greg23_78
i have try in my config folder but still the same problem

Please Log in to join the conversation.

More
2 years 4 months ago #303924 by greg23_78
 

Attachment not found



 

Attachment not found



 

Attachment not found



 

Attachment not found



 

Please Log in to join the conversation.

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

More
2 years 4 months ago #303957 by greg23_78
it's working!

the solution for me was #!/usr/bin/python => #!/usr/bin/python3

Please Log in to join the conversation.

More
2 years 3 months ago #304295 by vre
Hello.
Whas does this python script?
Automatic lubrication via automatic lube pump?

Please Log in to join the conversation.

Time to create page: 0.089 seconds
Powered by Kunena Forum