diladele / dnssafety

DNS Safety is simple and fast DNS filtering server for your local network
https://www.diladele.com/dnssafety/
29 stars 8 forks source link

cannot set timezone (needs to be run in venv) #497

Closed ra-at-diladele-com closed 11 months ago

ra-at-diladele-com commented 11 months ago
ERROR: Cannot set timezone to 'Europe/Amsterdam'. Error: 1 (stdout: , stderr: Traceback (most recent call last): File "/opt/dnssafety-ui/bin/timezone.py", line 5, in <module> import pytz ModuleNotFoundError: No module named 'pytz' ) Traceback (most recent call last): File "/opt/dnssafety-ui/var/console/node/views/timezone.py", line 60, in post raise Exception("Cannot set timezone to '%s'. Error: %d (stdout: %s, stderr: %s)" % (timezone, ret, stdout, stderr)) Exception: Cannot set timezone to 'Europe/Amsterdam'. Error: 1 (stdout: , stderr: Traceback (most recent call last): File "/opt/dnssafety-ui/bin/timezone.py", line 5, in <module> import pytz ModuleNotFoundError: No module named 'pytz' ) 
ra-at-diladele-com commented 11 months ago

Decided to drop pytz check and only use system python libraries.