URM09 I²C RaspberryPi - Python: FileNotFoundError
![userHead](https://dfimg.dfrobot.com/dfPortrait2.png)
Hi, I want to use the
Gravity: URM09 Ultrasonic Sensor (I²C)
SKU:SEN0304
with a Python program on a RaspberryPi 4. I am using THIS library from the product's wiki page. I saved the folder in the RaspberryPi's Downloads folder. Afterwards, I started “auto_measure.py” with mu (and thonny). Sadly, I got a few FileNotFoundErrors. The first one is directing to this line (no. 24):
urm09 = DFRobot_URM09_IIC(IIC_MODE, IIC_ADDRESS)
Since I used the sensor successfully on a RaspberryPi 3B, I am confident, that it's just a small step that I neglected.
Greetings to the community. Any help would be welcome.
SOLVED
I decided to reset the RaspberryPi's complete operating system. (I wasn't able to figure out the old problem.) Afterwards, it just worked.
Again, greetings and thanks to the community.
![userHeadPic](https://dfimg.dfrobot.com/dfPortrait2.png)
You can extract the library file to the desktop, open and run it with thonny software. Use the i2C bus scan to see if the sensor address exists.
![userHeadPic](https://dfimg.dfrobot.com/dfPortrait2.png)
@jiajun.liu : Sadly, I don't get to the point, where I am able to use the I²C bus scan. It's just this error message:
![](https://dfimg.dfrobot.com/nobody/makelog/eff99da6dedb13ae331eeba4c6f321d5.png)
Any ideas?