Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Windows Error #5

@frakman1

Description

@frakman1

Although I was able to run this easily on my Mac, I couldn't get it to work on Windows. At first, I got an error about no module named 'bitstruct' but I got around that with pip install bitstruct. Now I get this error:

C:\Python27\python-lifx-sdk-master\python-lifx-sdk-master\examples>python fraktest.py
Traceback (most recent call last):
  File "fraktest.py", line 1, in <module>
    import lifx
  File "c:\python27\lib\site-packages\lifx\__init__.py", line 1, in <module>
    from client import Client
  File "c:\python27\lib\site-packages\lifx\client.py", line 7, in <module>
    import device
  File "c:\python27\lib\site-packages\lifx\device.py", line 5, in <module>
    from lifx.color import modify_color
ImportError: No module named color

Any ideas what might be going wrong? This is on a Windows 7 machine:
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32

Incidentally, the test script looks like this:

import lifx

lights = lifx.Client()
time.sleep(1)
for l in lights.get_devices():
    print "Toggle %s" % l.label
    l.power_toggle()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions