# How is the robot (Ur5) programmed with Python with real-time changes?

**URL:** <https://forum.universal-robots.com/t/how-is-the-robot-ur5-programmed-with-python-with-real-time-changes/40102>\
**Category:** General Application Help: How do I?\
**Created:** [June 5, 2025, 6:29am UTC](https://forum.universal-robots.com/t/how-is-the-robot-ur5-programmed-with-python-with-real-time-changes/40102 "2025-06-05T06:29:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronaldo](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@Ronaldo](https://forum.universal-robots.com/u/Ronaldo)\
**Post date:** [June 5, 2025, 6:29am UTC](https://forum.universal-robots.com/t/how-is-the-robot-ur5-programmed-with-python-with-real-time-changes/40102/1 "2025-06-05T06:29:20Z")

</div>

I started using the robot for simple tasks but when I tried to program it with Python it got complicated. I used UniversalRobots/RTDE\_Python\_Client\_Library and at first it worked without any problem but out of nowhere it stopped working and gave me the error that the RTDE library could not be found. I tried to download it again because I assumed I had changed something but it gave me the same error.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/4/4a99715157380306bdb9487cde1e2199f3bd5a72.png)

---

<div class="post-metadata">

**Author:** ![santechselva](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@santechselva](https://forum.universal-robots.com/u/santechselva)\
**Post date:** [June 11, 2025, 5:39am UTC](https://forum.universal-robots.com/t/how-is-the-robot-ur5-programmed-with-python-with-real-time-changes/40102/2 "2025-06-11T05:39:14Z")

</div>

can you run pip freeze command to see if the rtde package is showing in the list

---

<div class="post-metadata">

**Author:** ![HungNguyen.HopLong](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/hungnguyen.hoplong/32/6617_2.png) [@HungNguyen.HopLong](https://forum.universal-robots.com/u/HungNguyen.HopLong)\
**Post date:** [June 12, 2025, 1:36am UTC](https://forum.universal-robots.com/t/how-is-the-robot-ur5-programmed-with-python-with-real-time-changes/40102/3 "2025-06-12T01:36:11Z")

</div>

You probably need to run the command in the example directory.  
You can run follow command:  
“cd examples && python3 example\_control\_loop.py”

---

<div class="post-metadata">

**Author:** ![Ronaldo](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@Ronaldo](https://forum.universal-robots.com/u/Ronaldo)\
**Post date:** [June 12, 2025, 7:11pm UTC](https://forum.universal-robots.com/t/how-is-the-robot-ur5-programmed-with-python-with-real-time-changes/40102/4 "2025-06-12T19:11:02Z")

</div>

“ur\_rtde” appears but I don’t see one that only has RTDE
