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

yeelightbt not working on rpi #36

Open
svennd opened this issue Feb 18, 2020 · 1 comment
Open

yeelightbt not working on rpi #36

svennd opened this issue Feb 18, 2020 · 1 comment

Comments

@svennd
Copy link

svennd commented Feb 18, 2020

I installed your library as suggested :
pip3 install git+https://github.com/rytilahti/python-yeelightbt/

Sadly when trying anything I get this error : (python 3.7) Any idea where I should look ?

  File "/usr/local/bin/yeelightbt", line 6, in <module>
    from yeelightbt.cli import cli
  File "/usr/local/lib/python3.7/dist-packages/yeelightbt/__init__.py", line 2, in <module>
    from .lamp import Lamp
  File "/usr/local/lib/python3.7/dist-packages/yeelightbt/lamp.py", line 7, in <module>
    from .structures import Request, Response, StateResult
  File "/usr/local/lib/python3.7/dist-packages/yeelightbt/structures.py", line 4, in <module>
    from construct import (
ImportError: cannot import name 'Embedded' from 'construct' (/usr/local/lib/python3.7/dist-packages/construct/__init__.py)

thanks !

@svennd
Copy link
Author

svennd commented Feb 18, 2020

I found the issue; Seems Embedded is dropped from the construct library; A workaround could be downgrading :
pip3 install construct==2.9.52

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