# Problem creating executable file

**URL:** <https://get-help.theconstruct.ai/t/problem-creating-executable-file/31011>\
**Category:** ROS2 Basics in 5 Days Humble (Python)\
**Created:** [June 23, 2024, 3:07pm UTC](https://get-help.theconstruct.ai/t/problem-creating-executable-file/31011 "2024-06-23T15:07:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ROxX](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/r/dfb087/32.png) [@ROxX](https://get-help.theconstruct.ai/u/ROxX)\
**Post date:** [June 23, 2024, 3:07pm UTC](https://get-help.theconstruct.ai/t/problem-creating-executable-file/31011/1 "2024-06-23T15:07:57Z")

</div>

![image](https://get-help.theconstruct.ai/uploads/default/original/2X/b/bcddbf25f05ced03b70310cc5e9627d585b7efc4.png)

I am consistently having trouble getting the files organized. I can’t find a way to review what mistakes I made in the sequence of file creation. In Section 2.1 source /opt/ros/humble/setup.bash and the sequence in Section 2.2 - are these required every time I log on? As you can see in that attached, the file is green font, and yet is not found as executable. Can you provide a sequence of commands that always works beginning from the user: prompt level.

---

<div class="post-metadata">

**Author:** ![Vinoth](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/v/a88e4f/32.png) [@Vinoth](https://get-help.theconstruct.ai/u/Vinoth)\
**Post date:** [June 23, 2024, 3:19pm UTC](https://get-help.theconstruct.ai/t/problem-creating-executable-file/31011/2 "2024-06-23T15:19:24Z")

</div>

Did you modify your CMakelists after creating the script?  
Also ensure the location of your package inside src folder

---

<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:** [June 24, 2024, 11:29am UTC](https://get-help.theconstruct.ai/t/problem-creating-executable-file/31011/3 "2024-06-24T11:29:52Z")

</div>

Have you properly set up your “console scripts” in `setup.py`?

This is where you specify the Python scripts you would like to run with `ros2 run...` or launch with `ros2 launch...`

---

<div class="post-metadata">

**Author:** ![ROxX](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/r/dfb087/32.png) [@ROxX](https://get-help.theconstruct.ai/u/ROxX)\
**Post date:** [June 24, 2024, 6:22pm UTC](https://get-help.theconstruct.ai/t/problem-creating-executable-file/31011/4 "2024-06-24T18:22:27Z")

</div>

Thank you, not updating the setup.py folder was my problem.

---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [June 29, 2024, 6:22pm UTC](https://get-help.theconstruct.ai/t/problem-creating-executable-file/31011/5 "2024-06-29T18:22:30Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
