# Running errors with move.py

**URL:** <https://forum.sunfounder.com/t/running-errors-with-move-py/570>\
**Category:** Robotic kit for Raspberry Pi\
**Created:** [October 7, 2023, 6:53am UTC](https://forum.sunfounder.com/t/running-errors-with-move-py/570 "2023-10-07T06:53:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Irene](https://avatars.discourse-cdn.com/v4/letter/i/c89c15/32.png) [@Irene](https://forum.sunfounder.com/u/Irene)\
**Post date:** [October 7, 2023, 6:53am UTC](https://forum.sunfounder.com/t/running-errors-with-move-py/570/1 "2023-10-07T06:53:52Z")

</div>

Hi, I get the following error messages when running move.py with the picar-x. Any help with this please?

Traceback (most recent call last):  
File “/home/irene/picar-x/example/move.py”, line 7, in   
px = Picarx()  
File “/usr/local/lib/python3.9/dist-packages/picarx-0.0.1-py3.9.egg/picarx/picarx.py”, line 39, in **init**  
self.camera\_servo\_pin1 = Servo(PWM(servo\_pins[0]))  
File “/usr/local/lib/python3.9/dist-packages/robot\_hat-2.0.4-py3.9.egg/robot\_hat/servo.py”, line 20, in **init**  
super(). **init** (channel, \*args, \*\*kwargs)  
File “/usr/local/lib/python3.9/dist-packages/robot\_hat-2.0.4-py3.9.egg/robot\_hat/pwm.py”, line 43, in **init**  
self.timer = int(channel/4)  
TypeError: unsupported operand type(s) for /: ‘PWM’ and ‘int’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “/home/irene/picar-x/example/move.py”, line 43, in   
px.stop()  
NameError: name ‘px’ is not defined

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [October 8, 2023, 2:56am UTC](https://forum.sunfounder.com/t/running-errors-with-move-py/570/2 "2023-10-08T02:56:46Z")

</div>

We have re-updated and uploaded the code, because the code branch for downloading and installing robot-hat and vilib libraries has changed, so we recommend that you reinstall your Raspberry Pi system and go back and reinstall our code base.  
Please follow the steps in the latest tutorial link:  
[https://docs.sunfounder.com/projects/picar-x/en/latest/python/python\_start/install\_all\_modules.html](https://docs.sunfounder.com/projects/picar-x/en/latest/python/python_start/install_all_modules.html)
