You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
The program works well until I try to set an alarm.
It said that I need specify user of filename to write, how do I fix this issue?
a BIG thanks!
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/opt/pi_alarm_env/pi_alarm/app/controller.py", line 51, in set_alarm
scheduler.schedule_alarm(weekday, hour, minute)
File "/opt/pi_alarm_env/pi_alarm/app/scheduler.py", line 79, in schedule_alarm
self.cron.write()
File "/usr/local/lib/python2.7/dist-packages/crontab.py", line 311, in write
raise IOError("Please specify user or filename to
``` write.")
IOError: Please specify user or filename to write.
The text was updated successfully, but these errors were encountered:
Hi! Thanks for your interest, and I'm sorry about the bug.
I ran a pip freeze on my local environment here, and it looks like the version of crontab i'm running is python-crontab==1.7.2. I wonder if, because I haven't tried updating the software in two years, this is the cause of the problem?
In the short term, change which version of python-crontab you install (in the setup.sh file), and I will look at modifying the code to work with the latest version 👍
Hey,
The program works well until I try to set an alarm.
It said that I need specify user of filename to write, how do I fix this issue?
a BIG thanks!
The text was updated successfully, but these errors were encountered: