Announcement: HADashboard v2 Beta3!

I couldn’t get pass this error after beta 3.5, any idea? I am running rPi3 All-In-One installer. It was working with beta 3 earlier this morning.

Traceback (most recent call last):
  File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/appdaemon_dashboard/appdaemon/appdaemon/appdaemon.py", line 1671, in <module>
    main()
  File "/home/appdaemon_dashboard/appdaemon/appdaemon/appdaemon.py", line 1667, in main
    run()
  File "/home/appdaemon_dashboard/appdaemon/appdaemon/appdaemon.py", line 1180, in run
    asyncio.ensure_future(appdaemon_loop())
AttributeError: 'module' object has no attribute 'ensure_future'

I have following components installed and NOT running virtual Python environment.
Command I have used to get the list is: pip3 list

aiohttp (2.0.6)
aiohttp-jinja2 (0.13.0)
astral (1.4)
async (0.6.2)
async-timeout (1.2.0)
asyncio (3.4.3)
chardet (2.3.0)
colorama (0.3.2)
configparser (3.5.0)
Cython (0.21.1)
daemonize (2.4.7)
docutils (0.12)
html5lib (0.999)
Jinja2 (2.9.5)
MarkupSafe (0.23)
multidict (2.1.4)
Pillow (2.6.1)
pip (9.0.1)
Pygments (2.0.1)
pyScss (1.3.5)
pytz (2017.2)
PyYAML (3.12)
requests (2.13.0)
roman (2.0.0)
setuptools (5.5.1)
six (1.8.0)
Sphinx (1.2.3)
sseclient (0.0.18)
urllib3 (1.9.1)
virtualenv (15.1.0)
voluptuous (0.9.3)
websocket-client (0.40.0)
wheel (0.24.0)
yarl (0.10.0)

Try pulling again - I put a fix in for this.

1 Like

Wow! You are so much committed to this project. You did fix this in few hours and middle of the night!
May be next time I will have to think before posting any issue during night so you will not spoil your night trying to figuring out and fixing the issue :). Appreciate your dedication and valuable time.
I will try this fix tonight once I am at home.
Thanks you so much.

2 Likes

@aimc, @scadaguru has a point, although it may mean less features in the dashboard so quick. You gotta get a life man. LOL

Relax guys :slight_smile: I have a cold at the moment and got up in the middle of the night coughing. I sat down, read the forum, realized the fix was a 1 line change so I did it :slight_smile:

Just don’t get used to it!

I have a great work life balance and I am old enough to appreciate it and defend it - everything I do here is because I want to not because I feel I have to.

8 Likes

Good Day,
Just installed using the instruction here but get the foolowing error when I run python3 -m appdaemon.appdaemon -c

Traceback (most recent call last):
File “/usr/lib/python3.4/runpy.py”, line 170, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.4/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/pi/appdaemon_dashboard/appdaemon/appdaemon/appdaemon.py”, line 12, in
from websocket import create_connection
ImportError: No module named ‘websocket’

Yes, I did install websocket-client per instructions.

Thanks

I think you need folder name where the config file is after -c like this:

python3 -m appdaemon.appdaemon -c conf

Tried that, still get the same error

Use the full path. That usually helps. Also what does your appdaemon.cfg file look like

Tried the following, same issue.
“python3 -m appdaemon.appdaemon -c appdaemon_dashboard/appdaemon/conf”

[AppDaemon]
ha_url = http://HASS_IP_Address:8123
logfile = STDOUT
errorfile = STDERR
threads = 10
latitude = “my_lat”
longitude = “my_long”
elevation = "my_elev
time_zone = America/New_York

Apps

[hello_world]
module = hello
class = HelloWorld

try:

cd appdaemon
python3 -m appdaemon.appdaemon -c conf

Try Rene’s suggestion if that doesn’t work try
python3 -m appdaemon.appdaemon -c /appdaemon_dashboard/appdaemon/conf/

Without the / in front of the path, it’s still a relative path from where you are. You have to reference it back to root with the leadng /

then it needs to be:

python3 -m appdaemon.appdaemon -c /home/pi/appdaemon_dashboard/appdaemon/conf/

Are you running AppDaemon and Ha on different machine/computer?
May be AppDaemon computer can’t reach to HA computer or antivirus is blocking it?

It’s a problem with missing libraries, not the way he is invoking it. Try installing websockets as well?

What platform are you running on?

Same result.

Thanks.

Same issue

Same machine.

Tried reinstalling “pip3 install websocket-client”

Hassbian on Pi3

Same thing I reported sometime ago and I’ve still not resolved, tried re-installing websockets and client, mines on a PI3 AIO