# Ros in 5 Days Rosject

**URL:** <https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142>\
**Category:** Uncategorized\
**Created:** [March 14, 2022, 10:56pm UTC](https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142 "2022-03-14T22:56:23Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![flavelmm](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/f/958977/32.png) [@flavelmm](https://get-help.theconstruct.ai/u/flavelmm)\
**Post date:** [March 14, 2022, 10:56pm UTC](https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142/1 "2022-03-14T22:56:23Z")

</div>

I am trying to do part one of the ros in 5 days rosject. When I try to launch the file I get this error.

 ![image](https://get-help.robotigniteacademy.com/uploads/default/original/2X/0/0aea2735d3b0cb6d2b0595216a97c03bb7e5ad2d.png)  
I have already made the file executable and I checked all the names are spelled correctly.  
what is causing this error?

---

<div class="post-metadata">

**Author:** ![roalgoal](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/roalgoal/32/7280_2.png) [@roalgoal](https://get-help.theconstruct.ai/u/roalgoal)\
**Post date:** [March 15, 2022, 8:40am UTC](https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142/2 "2022-03-15T08:40:44Z")

</div>

A lot of things could be causing this error.

What is the name of your package? Your python file? Your launch file?

Does the node run without the launch file? Can the system find your package with `roscd project_part1_pkg`?

This is some of the information needed in order to be of more help

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/6966_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [March 15, 2022, 8:48am UTC](https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142/3 "2022-03-15T08:48:13Z")

</div>

In addition, when requesting for help, don’t show just part of the error, show everything right from the command you ran. This would help us locate the problem.

---

<div class="post-metadata">

**Author:** ![flavelmm](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/f/958977/32.png) [@flavelmm](https://get-help.theconstruct.ai/u/flavelmm)\
**Post date:** [March 15, 2022, 12:55pm UTC](https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142/4 "2022-03-15T12:55:03Z")

</div>

My package is named project\_part1\_pkg, My file name is project\_part1.py, the launch file name is project\_part1.launch.  
It dos not run without the launch file. When I do the command roscd it does bring me to the package.  
This is the whole error:

 ![image](https://get-help.robotigniteacademy.com/uploads/default/original/2X/c/ca5f5fd833ebafc89d51d6d6c33463eb0ef5969a.png)  
after the red error it kills the code.

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/6966_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [March 16, 2022, 7:35am UTC](https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142/5 "2022-03-16T07:35:16Z")

</div>

Please check the following:

- Does your Python file have execute permissions?
- Is your launch file written correctly? That is, no typos in the launch file? Please paste or screenshot the launch file contents here.

---

<div class="post-metadata">

**Author:** ![roalgoal](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/roalgoal/32/7280_2.png) [@roalgoal](https://get-help.theconstruct.ai/u/roalgoal)\
**Post date:** [March 16, 2022, 8:47am UTC](https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142/6 "2022-03-16T08:47:12Z")

</div>

Also please identify where the issue is coming from. If you use `rosrun project_part1_pkg project_part1.py`, then you’ll know the problem is with the node if that outputs an error too. If that’s the case, then share the code for your node here. Check also that the `type` in your launch file corresponds to the executable name you have given your node.

---

<div class="post-metadata">

**Author:** ![flavelmm](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/f/958977/32.png) [@flavelmm](https://get-help.theconstruct.ai/u/flavelmm)\
**Post date:** [March 16, 2022, 1:09pm UTC](https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142/7 "2022-03-16T13:09:10Z")

</div>

Here is my launch file.

 ![image](https://get-help.robotigniteacademy.com/uploads/default/original/2X/1/1d50c570bd5a390ee93b728ed482191b3354a88a.png)  
here is the output when I do rosrun  
 ![image](https://get-help.robotigniteacademy.com/uploads/default/original/2X/b/b5b3475fb71a5d5a332a6ef591968b44dac53069.png)

---

<div class="post-metadata">

**Author:** ![roalgoal](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/roalgoal/32/7280_2.png) [@roalgoal](https://get-help.theconstruct.ai/u/roalgoal)\
**Post date:** [March 16, 2022, 1:57pm UTC](https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142/8 "2022-03-16T13:57:07Z")

</div>

Ok, great! Now you are getting somewhere. I hope you realize now that the problem is with your python node, not your launch file. Reading the error messages carefully is also very useful.

For example, after reading the error from your screenshot, I can see that the error comes from a line in your program that contains `/usr/bin/env`. Now, I would bet that this is the shebang in your file. Basically, you are missing the `#!` characters preceding `/usr/bin/env` . For more info on this, check [shell - Should I put #! (shebang) in Python scripts, and what form should it take? - Stack Overflow](https://stackoverflow.com/questions/6908143/should-i-put-shebang-in-python-scripts-and-what-form-should-it-take)

---

<div class="post-metadata">

**Author:** ![flavelmm](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/f/958977/32.png) [@flavelmm](https://get-help.theconstruct.ai/u/flavelmm)\
**Post date:** [March 16, 2022, 9:43pm UTC](https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142/10 "2022-03-16T21:43:41Z")

</div>

I tried to do you suggestion but when I went onto the rosject it was blank and my folders and files are missing. The image below is what the rosject looks like:

 ![image](https://get-help.robotigniteacademy.com/uploads/default/original/2X/d/db5900800c6072c84d606c8008dfa7a3d97d9531.png)

---

<div class="post-metadata">

**Author:** ![roalgoal](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/roalgoal/32/7280_2.png) [@roalgoal](https://get-help.theconstruct.ai/u/roalgoal)\
**Post date:** [March 17, 2022, 9:07am UTC](https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142/11 "2022-03-17T09:07:51Z")

</div>

Hi, your rosject files have been restored, please check now

---

<div class="post-metadata">

**Author:** ![flavelmm](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/f/958977/32.png) [@flavelmm](https://get-help.theconstruct.ai/u/flavelmm)\
**Post date:** [March 17, 2022, 8:27pm UTC](https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142/12 "2022-03-17T20:27:23Z")

</div>

It is fixed. Thank you.

---

<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:** [March 17, 2022, 9:41pm UTC](https://get-help.theconstruct.ai/t/ros-in-5-days-rosject/16142/13 "2022-03-17T21:41:09Z")

</div>


