-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to start Service, no module named 'influxdb_client' #49
Comments
Hi, It seems the virtual environment where you installed the dependencies can't be found. Did you use the service file provided? |
Hi, Yes, the file provided. sudo apt install influxdb |
This probably won't work dou to the sudo commands used. Did you try changing to a root shell and use the commands in the Readme? |
Thanks for the info, it works! |
Try to restart the script. I had a similar issue here, due to an outage of the cable internet I have restrted my fritz box and from that time the script couldn't fetch data. Check the logs from fritz box, you might see error messages there as well. |
You can also try to set the log level to DEBUG. There it should print out all the values parsed and sent to influx. |
Oh, it looks like my FRITZ!OS version is not supported. I have a FRITZ!Box 7530 AX with FRITZ!OS 07.31 2022-09-08 17:45:51,173 - DEBUG: FritzOS version 7.31 not in list of supported versions for System Stats: ['7.29', '7.39'] |
Ui, was not aware of 7.30 nor 7.31. Just add 7.31 to all services which have 7.29 in this file: https://github.com/bb-Ricardo/fritzinfluxdb/blob/master/fritzinfluxdb/classes/fritzbox/services_lua.py let me know if it works or where it throws issues. Then I can officially add it to repo. Thant would be awesome. |
Here is the log: 2022-09-08 18:29:53,487 - DEBUG: FritzBox Lua request successful |
I added the versions to the Thank you |
I have tested the next-release branch and had no issues so far. Good job! |
When i start the script manually, everything works fine.
But when i start the service, following error appears:
Started Fritz to InfluxDB daemon.
fritzinfluxdb[16107]: Traceback (most recent call last):
fritzinfluxdb[16107]: File "/opt/fritzinfluxdb/fritzinfluxdb.py", line 27, in
fritzinfluxdb[16107]: from fritzinfluxdb.classes.influxdb.handler import InfluxHandler
fritzinfluxdb[16107]: File "/opt/fritzinfluxdb/fritzinfluxdb/classes/influxdb/handler.py", line 20, in
fritzinfluxdb[16107]: from influxdb_client.rest import ApiException
fritzinfluxdb[16107]: ModuleNotFoundError: No module named 'influxdb_client'
systemd[1]: fritzinfluxdb.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: fritzinfluxdb.service: Failed with result 'exit-code'.
systemd[1]: fritzinfluxdb.service: Scheduled restart job, restart counter is at 123.
systemd[1]: Stopped Fritz to InfluxDB daemon.
All requirements are installed, the OS is Raspbian 32 Bit.
The text was updated successfully, but these errors were encountered: