# ERROR: cannot launch node of type \[package/file.py\]: can't locate node \[file.py\] in package \[package\]

**URL:** <https://get-help.theconstruct.ai/t/error-cannot-launch-node-of-type-package-file-py-cant-locate-node-file-py-in-package-package/54>\
**Category:** Knowledgebase\
**Tags:** error\
**Created:** [July 17, 2019, 11:08pm UTC](https://get-help.theconstruct.ai/t/error-cannot-launch-node-of-type-package-file-py-cant-locate-node-file-py-in-package-package/54 "2019-07-17T23:08:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [July 17, 2019, 11:08pm UTC](https://get-help.theconstruct.ai/t/error-cannot-launch-node-of-type-package-file-py-cant-locate-node-file-py-in-package-package/54/1 "2019-07-17T23:08:42Z")

</div>

This error is very common when using ROS to launch a python node, either via `rosrun` or `roslaunch`.

**SOLUTION:**

Does the file `file.py`…

- exist in the package `package`? If not, create it! (Does the package itself exist and is it spelled correctly?).
- have execute permissions? If not, make it executable by running:

```auto
chmod +x /path/to/file.py # replace '/path/to/file.py' by the real path of your file

```

---

<div class="post-metadata">

**Author:** ![dev.dahb](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/dev.dahb/32/6280_2.png) [@dev.dahb](https://get-help.theconstruct.ai/u/dev.dahb)\
**Post date:** [August 5, 2019, 8:55pm UTC](https://get-help.theconstruct.ai/t/error-cannot-launch-node-of-type-package-file-py-cant-locate-node-file-py-in-package-package/54/3 "2019-08-05T20:55:17Z")

</div>

my .py has exe. permitions and exist ![image](https://get-help.robotigniteacademy.com/uploads/default/original/1X/1d5c3841c7bb4b146fd30d8b35f9e5543279c509.png)

any idea bout my error?

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [August 6, 2019, 6:52pm UTC](https://get-help.theconstruct.ai/t/error-cannot-launch-node-of-type-package-file-py-cant-locate-node-file-py-in-package-package/54/4 "2019-08-06T18:52:57Z")

</div>

@dev.dahb, please paste the full text of the error message here. Paste the full output of the terminal from the point where you ran the command to the point where the command exited due to the error.

---

<div class="post-metadata">

**Author:** ![ashwin.venkat](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/ashwin.venkat/32/176_2.png) [@ashwin.venkat](https://get-help.theconstruct.ai/u/ashwin.venkat)\
**Post date:** [September 3, 2019, 6:47am UTC](https://get-help.theconstruct.ai/t/error-cannot-launch-node-of-type-package-file-py-cant-locate-node-file-py-in-package-package/54/7 "2019-09-03T06:47:21Z")

</div>

I had the same issue, realized that I had not done chmod +x to my python file. after that it worked

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [January 25, 2023, 10:29am UTC](https://get-help.theconstruct.ai/t/error-cannot-launch-node-of-type-package-file-py-cant-locate-node-file-py-in-package-package/54/8 "2023-01-25T10:29:18Z")

</div>


