Giter Club home page Giter Club logo

Comments (7)

Mohlsson avatar Mohlsson commented on June 9, 2024

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.

ASNNetworks avatar ASNNetworks commented on June 9, 2024

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.

Mohlsson avatar Mohlsson commented on June 9, 2024

Looks like you are using MariaDB and did not install PyMySQL. Check the last paragraph in the readme.

from replaylightshistory.

ASNNetworks avatar ASNNetworks commented on June 9, 2024

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.

Mohlsson avatar Mohlsson commented on June 9, 2024

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.

ASNNetworks avatar ASNNetworks commented on June 9, 2024

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.

Mohlsson avatar Mohlsson commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.