Speedtest sensor error

Hi, Im getting errors using the speedtest sensor. Same configuration in hassbian works perfectly.

“2017-05-15 02:30:01 ERROR (<concurrent.futures.thread.ThreadPoolExecutor object at 0x74d1cff0>_6) [homeassistant.components.sensor.speedtest] Error executing speedtest: Command ‘[’/usr/local/bin/python’, ‘/usr/local/lib/python3.6/site-packages/speedtest.py’, ‘–simple’]’ returned non-zero exit status 1.”

I have the same error. A call in the container gives more informations :

docker exec -ti homeassistant bash
bash-4.3# /usr/local/bin/python /usr/local/lib/python3.6/site-packages/speedtest.py --simple
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/speedtest.py", line 19, in <module>
    import re
  File "/usr/local/lib/python3.6/re.py", line 142, in <module>
    class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'

Is fix with homeassistant docker 0.45

Solved in 0.45

Got speedtest working, however there is one small issue, the Raspberry Pi ethernet port is too slow!
So kind of pointless on this really :joy:

I’m still having this error in 0.45.1. Is anyone else still having it?

I had it in 0.45, and still have it in 0.46, both docker.

Do you try Hass.IO docker image or the official?

Maybe try to see here:

Seems that removing package enum34 might fix this problem (and break something else, so be careful)

I’ve been running the homeassistant/home-assistant image.

That is not relevant to hass.io

Any plans to include this fix into hass.io?

1 Like

Should be fix with next hass version

1 Like

0.48 here, still same error

You can provide a PR to fix it. If you are fast, it can go into 0.48.1 docker build :thumbsup:

Maby the other docker build have already a temporary fix for that.

see here https://github.com/home-assistant/home-assistant/issues/7733 :slight_smile:

fix with image 0.48.1

1 Like