Hi,
I´m currently doing the Linux and python basic course and I keep getting the error message in the terminal whenever I try to execute a python code: “No such file or directory”
It appears in both courses so I´m not sure what the reason is… any suggestions?
Hi @karan.moallim,
Welcome to the community
This sounds like you forgot to make the file executable. To do this, run the following command:
chmod +x 'filename'
to check whether files have the execute permission, you can check with ls
this should list all the files in your directory. If the name is green, the file is executable.
Hello, I have been facing a problem in the Introduction saying " No such file or directory found".
It is the code of the introduction of python 3.Please help. I am a beginner.
I am facing problem in the Input/Output (I/O) example. Either way I had got the Intro demo, but this thing keeps on saying the same thing when ever I execute.
as I can see in the image, the problem is that the file was created in the ~/catkin_ws/src/robot_control folder, but in the terminal, I see you are not in that directory.
Please make sure you are in the right directory with: cd ~/catkin_ws/src/robot_control
There the command would work.
You can list the files in the current directory using the ls command to confirm the file exist.