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
Traceback (most recent call last):
File "/usr/local/bin/flexmeasures", line 8, in <module>
sys.exit(flexmeasures_cli())
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/flask/cli.py", line 579, in main
return super().main(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/flask/cli.py", line 427, in decorator
return __ctx.invoke(f, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/flexmeasures/cli/data_add.py", line 1026, in add_schedule_for_storage
success = make_schedule(**scheduling_kwargs)
TypeError: make_schedule() got an unexpected keyword argument 'sensor'
The issue seems to be that in data_add.py the kw sensor is passed to make_schedule by add_schedule_for_storage, while make_schedule expects an id.
The text was updated successfully, but these errors were encountered:
This bug only affects usage without the --as-job parameter. That one is used in the docker-compose tutorial, which is the one our Q&A is testing. We need to test both (or built a test suite around our CLI commands, which is tricky).
When using --as-job, you need a Redis server, which is why we do that in the docker-compose tutorial.
But until we publish the updated Docker image, this is the workaround @Daan4 !
Following the toy example the last step to make a schedule fails with an exception using the latest docker image.
gives
The issue seems to be that in data_add.py the kw sensor is passed to make_schedule by add_schedule_for_storage, while make_schedule expects an id.
The text was updated successfully, but these errors were encountered: