createcandle / Candle-manager-addon

An add-on for the Candle Controller / WebThings Gateway. It allows you to upload code to Arduino's with the click of a button.
MIT License
5 stars 5 forks source link

Required dependency flask not installed during setup #27

Closed rphil40 closed 2 years ago

rphil40 commented 3 years ago

Following the steps on https://www.candlesmarthome.com/controller, could not open Candle Manager page from menu. Logs show

2020-12-25 23:32:57.198 ERROR  : Candle-manager-addon: Traceback (most recent call last):
2020-12-25 23:32:57.200 ERROR  : Candle-manager-addon:   File "/home/pi/.webthings/addons/Candle-manager-addon/main.py", line 11, in <module>
2020-12-25 23:32:57.202 ERROR  : Candle-manager-addon:     from pkg.candle_adapter import CandleAdapter  # noqa
2020-12-25 23:32:57.204 ERROR  : Candle-manager-addon:   File "/home/pi/.webthings/addons/Candle-manager-addon/pkg/candle_adapter.py", line 27, in <module>
2020-12-25 23:32:57.206 ERROR  : Candle-manager-addon:     from flask import Flask,Response,request,render_template,jsonify,url_for
2020-12-25 23:32:57.208 ERROR  : Candle-manager-addon: ModuleNotFoundError: No module named 'flask'

SSHing to the Pi and running '''pip3 install flask''' resolves issue, but should probably be handled on installation already.

createcandle commented 3 years ago

Are you using a Raspberry Pi with the disk image? Could you tell me more about your setup? Have you tried re-installing and rebooting?

rphil40 commented 3 years ago

Yeah, RPi 4 with the disk image from WebThings, installed the addon through the Add On page in the gateway. Not sure what else I can tell you about the setup.

Didn't reinstall as installing the library myself was easier.

createcandle commented 3 years ago

I've found the issue. It should be fixed asap.