sde1000 / python-dali

Library for controlling DALI lighting systems
Other
150 stars 73 forks source link

No module named interface #42

Closed wimg closed 4 years ago

wimg commented 6 years ago

Whenever I try to run one of the examples, I get :

Traceback (most recent call last): File "find_ballasts.py", line 14, in from dali.interface import DaliServer ImportError: No module named interface

Any ideas ?

sde1000 commented 6 years ago

Aah. It looks like that wasn't updated when things were moved around.

This is a bit of the project we're going to have to work on more, because at the moment you have to import a different thing depending on the hardware you're using. If you're using daliserver you should change that import to from dali.driver.daliserver.DaliServer import DaliServer.

rnixx commented 6 years ago

because at the moment you have to import a different thing depending on the hardware you're using

True, a factory function would be more appropriate here, but prior all drivers should match the new driver API.