# No such file or directory

**URL:** <https://get-help.theconstruct.ai/t/no-such-file-or-directory/1587>\
**Category:** Python Basics For Robotics\
**Created:** [November 28, 2019, 5:03pm UTC](https://get-help.theconstruct.ai/t/no-such-file-or-directory/1587 "2019-11-28T17:03:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![karan.moallim](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/karan.moallim/32/10_2.png) [@karan.moallim](https://get-help.theconstruct.ai/u/karan.moallim)\
**Post date:** [November 28, 2019, 5:03pm UTC](https://get-help.theconstruct.ai/t/no-such-file-or-directory/1587/1 "2019-11-28T17:03:15Z")

</div>

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?

cheers,  
Karan

---

<div class="post-metadata">

**Author:** ![simon.steinmann91](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/simon.steinmann91/32/324_2.png) [@simon.steinmann91](https://get-help.theconstruct.ai/u/simon.steinmann91)\
**Post date:** [November 28, 2019, 6:56pm UTC](https://get-help.theconstruct.ai/t/no-such-file-or-directory/1587/2 "2019-11-28T18:56:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gigimuks](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/gigimuks/32/10_2.png) [@gigimuks](https://get-help.theconstruct.ai/u/gigimuks)\
**Post date:** [January 3, 2020, 8:58pm UTC](https://get-help.theconstruct.ai/t/no-such-file-or-directory/1587/3 "2020-01-03T20:58:59Z")

</div>

Hello my first introduction program says errno2 no such file or directory I’m a beginner please help

---

<div class="post-metadata">

**Author:** ![ralves](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/ralves/32/7039_2.png) [@ralves](https://get-help.theconstruct.ai/u/ralves)\
**Post date:** [January 3, 2020, 9:42pm UTC](https://get-help.theconstruct.ai/t/no-such-file-or-directory/1587/4 "2020-01-03T21:42:53Z")

</div>

Hi @gigimuks,

are you still facing the problem?

If so, could you tell us which command you tried to execute and what was the output?

---

<div class="post-metadata">

**Author:** ![jayanthkalgikar2005](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/jayanthkalgikar2005/32/10_2.png) [@jayanthkalgikar2005](https://get-help.theconstruct.ai/u/jayanthkalgikar2005)\
**Post date:** [September 22, 2020, 11:59am UTC](https://get-help.theconstruct.ai/t/no-such-file-or-directory/1587/5 "2020-09-22T11:59:05Z")

</div>

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.

Regards,  
Jayanth

---

<div class="post-metadata">

**Author:** ![ralves](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/ralves/32/7039_2.png) [@ralves](https://get-help.theconstruct.ai/u/ralves)\
**Post date:** [September 22, 2020, 12:00pm UTC](https://get-help.theconstruct.ai/t/no-such-file-or-directory/1587/6 "2020-09-22T12:00:14Z")

</div>

Hi @jayanthkalgikar2005,

Welcome to our community.

Could you please tell us which command you have tried? That you help us better identify the problem you are facing.

---

<div class="post-metadata">

**Author:** ![jayanthkalgikar2005](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/jayanthkalgikar2005/32/10_2.png) [@jayanthkalgikar2005](https://get-help.theconstruct.ai/u/jayanthkalgikar2005)\
**Post date:** [September 23, 2020, 8:55am UTC](https://get-help.theconstruct.ai/t/no-such-file-or-directory/1587/7 "2020-09-23T08:55:13Z")

</div>

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.

The code is,  
name = input("What’s your name? ")

print("Nice to meet you, " + name)

And I tried to execute it. But didnt work.

---

<div class="post-metadata">

**Author:** ![jayanthkalgikar2005](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/jayanthkalgikar2005/32/10_2.png) [@jayanthkalgikar2005](https://get-help.theconstruct.ai/u/jayanthkalgikar2005)\
**Post date:** [September 23, 2020, 9:06am UTC](https://get-help.theconstruct.ai/t/no-such-file-or-directory/1587/8 "2020-09-23T09:06:06Z")

</div>

@ralves,  
I had made a directory named input.py(as mentioned in the textbook) still I get the error.

Have tried pretty many times.

Thank you

 ![error](https://get-help.robotigniteacademy.com/uploads/default/original/2X/a/a47ec2c5870d34111047b733903bb936ef4e3243.png)

---

<div class="post-metadata">

**Author:** ![ralves](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/ralves/32/7039_2.png) [@ralves](https://get-help.theconstruct.ai/u/ralves)\
**Post date:** [September 23, 2020, 12:03pm UTC](https://get-help.theconstruct.ai/t/no-such-file-or-directory/1587/9 "2020-09-23T12:03:40Z")

</div>

Hi @jayanthkalgikar2005,

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.

---

<div class="post-metadata">

**Author:** ![jayanthkalgikar2005](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/jayanthkalgikar2005/32/10_2.png) [@jayanthkalgikar2005](https://get-help.theconstruct.ai/u/jayanthkalgikar2005)\
**Post date:** [September 23, 2020, 12:22pm UTC](https://get-help.theconstruct.ai/t/no-such-file-or-directory/1587/10 "2020-09-23T12:22:44Z")

</div>

@ralves,  
Yea sure. Thank you.
