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
So it seems that config.project_dir is None. Seeing as there is no way to configure it without passing a config.yaml, I then created one which is very simple
So then I was debugging the cli and it turns out that the real error is here
defload_from_path(path: Path, *args: Any, **kwargs: Any) ->"Config":
"""Creates a Config from provided JSON or YAML file and sets a bunch of globals from it"""mime=mimetypes.guess_type(path.absolute().as_uri(), strict=True)[0]
ifmime=="application/json":
config_data=json.loads(path.read_text())
else:
config_data=yaml.safe_load(path.read_text())
config=Config(**config_data, **kwargs) ## This is the real errorreturnconfig
TypeError("dlt_init_openapi.config.Config() got multiple values for keyword argument 'project_name'")
This is because the keyword is set to None in config_data and in the kwargs
I'm encountering some blocking issues when trying to generate the API source for posthog.
So just running the cli with no configuration whatsoever I get this output:
So it seems that
config.project_dir
isNone
. Seeing as there is no way to configure it without passing aconfig.yaml
, I then created one which is very simpleIt fails with an cryptic error
So then I was debugging the cli and it turns out that the real error is here
TypeError("dlt_init_openapi.config.Config() got multiple values for keyword argument 'project_name'")
This is because the keyword is set to None in
config_data
and in thekwargs
and I can't seem to find a workaround without rewriting the cli. Pydantic (or is it python) doesn't support multiple keywords.
The text was updated successfully, but these errors were encountered: