# Failing to start

**URL:** <https://diyhue.discourse.group/t/failing-to-start/310>\
**Category:** Support\
**Created:** [May 2, 2021, 5:56am UTC](https://diyhue.discourse.group/t/failing-to-start/310 "2021-05-02T05:56:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tagged](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@tagged](https://diyhue.discourse.group/u/tagged)\
**Post date:** [May 2, 2021, 5:56am UTC](https://diyhue.discourse.group/t/failing-to-start/310/1 "2021-05-02T05:56:19Z")

</div>

Lights randomly stopped working after no changes to the setup/pi. This seems to randomly happen every 6 months or so and it’s usually fixed with an update of diyhue and the pi, with a reboot. Unfortunately, the service fails to start now:

pi@raspberrypi:/opt/hue-emulator $ sudo ./HueEmulator3.py --debug  
Traceback (most recent call last):  
File “./HueEmulator3.py”, line 29, in   
from functions.entertainment import entertainmentService  
File “/opt/hue-emulator/functions/entertainment.py”, line 5, in   
from functions.lightRequest import sendLightRequest  
File “/opt/hue-emulator/functions/lightRequest.py”, line 5, in   
from protocols import protocols  
File “/opt/hue-emulator/protocols/ **init**.py”, line 1, in   
from protocols import yeelight, tasmota, shelly, mi\_box, native\_single, native\_multi, esphome, mqtt, hyperion, homeassistant\_ws, wled  
File “/opt/hue-emulator/protocols/homeassistant\_ws.py”, line 156  
logging.info(f"Found {entity\_id}")  
^  
SyntaxError: invalid syntax  
pi@raspberrypi:/opt/hue-emulator $

For the exact formatting:

 ![diyhue](https://global.discourse-cdn.com/free1/uploads/diyhue/original/1X/c6419c66d01a5f56ba472a43bdcb9ada834e0b64.jpeg)

Tried uninstalling/installing diyhue (even dev build) but still seems to get stuck on this.

---

<div class="post-metadata">

**Author:** ![ryan780](https://yyz2.discourse-cdn.com/free1/user_avatar/diyhue.discourse.group/ryan780/32/9_2.png) [@ryan780](https://diyhue.discourse.group/u/ryan780)\
**Post date:** [May 4, 2021, 7:06am UTC](https://diyhue.discourse.group/t/failing-to-start/310/2 "2021-05-04T07:06:04Z")

</div>

You say after no changes to the setup/Pi but then you say this happens after an update to DIYHue or the Pi. An update is a change. Updating DIYHue should only be done if you are trying to implement a new feature. Not all updates are transparent and often require you to start from scratch and rebuild your config file. So, it should not be done without knowing that this exact thing can happen.

Before running in Debug mode did you stop the service first?
