Open gwonglapierre opened 4 years ago
seems like the issue is within Python because it is working when I'm using a script that's located in the same directory as the mpu6050.py
same issue
@sutanu86 Did you install the package? If so, how?
@chancelier did you use the same python version for installing the package as for running it?
Hi, I just released a version that might help for different platform: Jetson nano, raspberry pi, Beaglebone, pyboard, ODROID and more.
It is based on mr Tijn package.
https://github.com/romybompart/py_imu_mpu6050 https://pypi.org/project/py-imu-mpu6050/
Now that is working in different platform I will add self_calibration functions and Magnetometer support
Hello, you can see what is the directory that save the files when you install the mpu6050, for example in my case add in ./.local/lib/python2.7/site-packages... if you run you can try to run with python2
the smbus installation worked, I was able to test the i2c and that works. I also got no errors when installing through pip install. However as soon as I try to run a script in Python3, it says that: Traceback (most recent call last): File "/home/pi/Documents/gyrompu.py", line 1, in
import mpu6050 as mpu6050
ModuleNotFoundError: No module named 'mpu6050'