Hi Team,
I am trying to use bootstrap-cli to create raw DB, CDF groups and datasets.
As per the documentation, I am executing “bootstrap-cli prepare” command before applying “bootstrap-cli deploy”. However I am encountering “AttributeError” . Could you please help me what can be done to fix this? Following are the few details of the issue that is encountered.
- Command that I used to run the bootstrap-cli prepare.
poetry run bootstrap-cli prepare --idp-source-id f2e5b1ef-e601-46ec-87ec-25f62810ad1f
- Error Snippet:
Prepare CDF Project ...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\BMandal2\bootstrap\inso-bootstrap-cli\incubator\bootstrap_cli\__main__.py", line 2365, in main
bootstrap_cli()
File "C:\Users\BMandal2\AppData\Local\pypoetry\Cache\virtualenvs\inso-bootstrap-cli-Jo_B4J-G-py3.10\lib\site-packages\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "C:\Users\BMandal2\AppData\Local\pypoetry\Cache\virtualenvs\inso-bootstrap-cli-Jo_B4J-G-py3.10\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\BMandal2\AppData\Local\pypoetry\Cache\virtualenvs\inso-bootstrap-cli-Jo_B4J-G-py3.10\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\BMandal2\AppData\Local\pypoetry\Cache\virtualenvs\inso-bootstrap-cli-Jo_B4J-G-py3.10\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\BMandal2\AppData\Local\pypoetry\Cache\virtualenvs\inso-bootstrap-cli-Jo_B4J-G-py3.10\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "C:\Users\BMandal2\AppData\Local\pypoetry\Cache\virtualenvs\inso-bootstrap-cli-Jo_B4J-G-py3.10\lib\site-packages\click\decorators.py", line 38, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "C:\Users\BMandal2\bootstrap\inso-bootstrap-cli\incubator\bootstrap_cli\__main__.py", line 2252, in prepare
BootstrapCore(config_file, command=CommandMode.PREPARE, debug=obj["debug"])
File "C:\Users\BMandal2\bootstrap\inso-bootstrap-cli\incubator\bootstrap_cli\__main__.py", line 494, in __init__
if self.config.logger.file:
AttributeError: 'NoneType' object has no attribute 'file'
- config-bootstrap.yml file content:
bootstrap:
features:
aggregated-level-name: all
dataset-suffix: ds
rawdb-suffix: db
idp-cdf-mappings:
- cdf-project: slb-pdf
mappings:
- cdf-group: cdf:all:owner
idp-source-id: f2e5b1ef-e601-46ec-87ec-25f62810ad1f
idp-source-name: CDF_SLBPDF_ALLPROJECTS_OWNER
- cdf-group: cdf:all:viewer
idp-source-id: f2e5b1ef-e601-46ec-87ec-25f62810ad1f
idp-source-name: CDF_SLBPDF_ALLPROJECTS_VIEWER
namespaces:
- ns-name: src
description: Customer source-systems
ns-nodes:
- node-name: src:001:basu
description: Sources 001; from basu
external-id: src:001:basu
- node-name: src:001:mandal
description: Sources 002; from mandal
# external-id will be auto generated in this case
- ns-name: in
description: End user data-input provided through deployed CDF solutions
ns-nodes:
- node-name: in:001:trade
description: Description about user inputs related to name
# external_id: in:001:trade
- ns-name: uc
description: Use Cases representing the data-products
ns-nodes:
- node-name: uc:001:demand
description: Use Case 001; Demand Side
metadata:
created: 220427
generated: by cdf-config-hub script
shared-access:
read:
- node-name: src:001:basu
- node-name: src:001:mandal
owner:
- node-name: in:001:trade