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

AttributeError: 'Device' object has no attribute 'get_color' #147

Open
Japh opened this issue Oct 4, 2023 · 1 comment
Open

AttributeError: 'Device' object has no attribute 'get_color' #147

Japh opened this issue Oct 4, 2023 · 1 comment

Comments

@Japh
Copy link

Japh commented Oct 4, 2023

Describe the bug
The application does not launch successfully, instead showing the following error messages:

Every launch attempt showed this message:

Unhandled runtime exception: Traceback (most recent call last):
  File "lifx_control_panel\__main__.pyw", line 335, in main
  File "lifx_control_panel\__main__.pyw", line 101, in __init__
  File "lifx_control_panel\__main__.pyw", line 190, in scan_for_lights
  File "lifxlan\frames.py", line 93, in __init__
  File "lifxlan\frames.py", line 148, in _get_light_info
AttributeError: 'Device' object has no attribute 'get_color'

Please report this at:
https://github.com/samclane/lifx_control_panel/issues

To Reproduce
Steps to reproduce the behavior:

  1. Download v2.3.1 (latest) lifx_control_panel.exe from release
  2. Open executable
  3. See error

Expected behavior
I'd expect the application to simply launch/open, but it errors out. When ok is pressed, both the error window and the purple splashscreen close. Running the executable with administrator rights does not do anything.

Screenshots

Primary error I was seeing
Screenshot 2023-10-05 093558

I saw this error once also, but couldn't get it to appear a second time, so not sure what that one was caused by
Screenshot 2023-10-05 093201

I saw this error once also, but couldn't get it to appear a second time, so not sure what that one was caused by
Screenshot 2023-10-05 105005

Desktop (please complete the following information):

  • Lifx-Control-Panel Version: 2.3.1
  • OS: Windows 10 Home Build 19045.3324

Please attach your logfile (lifx-control-panel.log)
No log files was generated, however I logged the output of the debug version of the release to the same filename which I provide here. This seems to indicate that the code does not cater to non-light devices (in this case, a LIFX switch), and doesn't fail gracefully.

lifx-control-panel.log

Additional context
None.

@Japh
Copy link
Author

Japh commented Oct 4, 2023

I suspect the two one-off errors are unrelated, and due to some kind of collision or race condition failing hard. Each of those only happened once.

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