janvrany / bricknil

Control LEGO Bluetooth Sensors and Motors with Python
https://virantha.github.io/bricknil
Apache License 2.0
6 stars 4 forks source link

Cannot import PoweredUpHubIMUPosition from bricknil.sensor #3

Closed justxi closed 4 years ago

justxi commented 4 years ago

Hello,

I can import e.g. VoltageSensor and CurrentSensor from bricknil.sensor, but not PoweredUpHubIMUPosition, PoweredUpHubIMUGyro, PoweredUpHubIMUAccelerometer.

Message from Python is: ImportError: cannot import name "PoweredUpHubIMUPosition" from "bricknil.sensor" ([path to init.py])

I use python 3.7.

Do you have a hint?

justxi commented 4 years ago

It must be "from bricknil.sensor.sensor import ..." because the IMU classes are not exportet in init.py.