Comments (7)
My installation still works. There are a number of things that can make it fail though. Can you check the log from HA/Supervisor/AppDaemon/Log where this module logs what it does. There may be clues to what is happening there.
from replaylightshistory.
error.log shows:
2021-07-04 19:07:46.776600 WARNING replay_lights: ------------------------------------------------------------
2021-07-04 19:50:33.549508 WARNING replay_lights: ------------------------------------------------------------
2021-07-04 19:50:33.550527 WARNING replay_lights: Unexpected error initializing app: replay_lights:
2021-07-04 19:50:33.551201 WARNING replay_lights: ------------------------------------------------------------
2021-07-04 19:50:33.552419 WARNING replay_lights: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 996, in check_app_updates
await self.init_object(app)
File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 315, in init_object
modname = await utils.run_in_executor(self, __import__, app_args["module"])
File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 299, in run_in_executor
response = future.result()
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/appdaemon/apps/ReplayLightsHistory/replay_lights.py", line 2, in <module>
import pymysql.cursors
ModuleNotFoundError: No module named 'pymysql'
2021-07-04 19:50:33.553165 WARNING replay_lights: -----
appdaemon.log shows:
2021-07-04 19:50:33.542672 INFO AppDaemon: Initializing app replay_lights using class ReplayLights from module replay_lights
2021-07-04 19:50:33.553925 WARNING AppDaemon: Logged an error to /config/appdaemon/logs/error.log
2021-07-04 19:50:33.556057 WARNING AppDaemon: Unable to find module replay_lights - initialize() skipped
from replaylightshistory.
Looks like you are using MariaDB and did not install PyMySQL. Check the last paragraph in the readme.
from replaylightshistory.
Looks like you are using MariaDB and did not install PyMySQL. Check the last paragraph in the readme.
I have MariaDB installed, but I only use that for NGINX. I still use the recorder of HA and have home-assistant_v2.db. So this works with either MariaDB or PyMySQL? I thought I could just use the normal recorder integration.
from replaylightshistory.
I see now that the change made a while ago for MariaDB requires all installations to have PyMySQL, try to install this and test again.
from replaylightshistory.
But I don't use MariaDB for the recorder. All my history is saved using default HA, in the home-assistant_v2.db file. What good will having PyMySQL do, if my history is not recorded in MariaDB?
from replaylightshistory.
Sorry, as the code look right now PyMySQL must be installed. If you want to change it, it is fine by me, unfortunately I do not have the time to do it. If you change it, do a pull request and I will merge it into this repository.
from replaylightshistory.
Related Issues (13)
- Error in appdeamon ligs HOT 5
- Pulling sensors and automations HOT 3
- Failed to parse HOT 2
- Unexpected error loading module HOT 3
- DB changes kill this code HOT 3
- Date field from database didn't parse correctly after uodate to version f7fa646 HOT 3
- Unable to start the app HOT 3
- Unexpected error in worker for App replay_lights HOT 3
- Question not an issue. HOT 2
- Stopped working some time in the past 4 months HOT 4
- Error HOT 4
- error: Unknown column 'created' in 'field list HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from replaylightshistory.