Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init_py Type error #41

Open
LeandroGeraldo opened this issue Apr 17, 2024 · 0 comments
Open

Init_py Type error #41

LeandroGeraldo opened this issue Apr 17, 2024 · 0 comments

Comments

@LeandroGeraldo
Copy link

20240417_19h31m17s_grim

File init.py has an extra period inside the script

It only works for me when I rewrite the code like this:

from mpu6050 import mpu6050

Before this I was receiving the following message:
Traceback (most recent call last):
File "/home/labgnss/imu_project/mpu_6050_ex3.py", line 6, in
mpu6050 = mpu6050.mpu6050(0x68)
^^^^^^^^^^^^^^^
AttributeError: type object 'mpu6050' has no attribute 'mpu6050'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant