Search
Search copied to clipboard
Dynamically providing parameters containing "." does not work
The following command:
bbs_database run -n --luigi-config-args "AddTask.db_url:my.sqlite"
gives this error.
change = re.split(r"[.:]", param, maxsplit=3)
TypeError: set() takes from 3 to 4 positional arguments but 5 were given
- Is there a way how I can make it work without changing the source code?
- If not, then we should probably adjust the source to allow for parameters that have
"."
inside of them (e.g. filepath)
The exact line of code causing the problem is here: https://github.com/BlueBrain/Search/blob/b9027ab2fdc008a758eb1a22f703ca19182ab858/src/bluesearch/entrypoint/database/run.py#L543