Closed ceblanton closed 2 months ago
@aradhakrishnanGFDL fyi
I'm confused, the click
API looks identical. The linked PR was closed, not merged?
mm...
(fre_cli) an010: fre-cli $] fre catalog builder /archive/Ian.Laflotte/fre/FMS2023.04_om5_20240410/ESM4.2JpiC_om5b04r1/gfdl.ncrc5-intel23-prod-openmp/pp
Traceback (most recent call last):
File "/home/Ian.Laflotte/conda/envs/fre_cli/bin/fre", line 8, in <module>
sys.exit(fre())
File "/home/Ian.Laflotte/conda/envs/fre_cli/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/home/Ian.Laflotte/conda/envs/fre_cli/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/Ian.Laflotte/conda/envs/fre_cli/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/Ian.Laflotte/conda/envs/fre_cli/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/Ian.Laflotte/conda/envs/fre_cli/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/Ian.Laflotte/conda/envs/fre_cli/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/Ian.Laflotte/conda/envs/fre_cli/lib/python3.9/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/Ian.Laflotte/conda/envs/fre_cli/lib/python3.9/site-packages/fre/catalog/frecatalog.py", line 29, in builder
context.forward(gen_intake_gfdl.main)
AttributeError: module 'catalogbuilder.scripts.gen_intake_gfdl' has no attribute 'main'
(fre_cli) an010: fre-cli $]
another thought- this should be caught by a test.
@Ciheim is on it, plan is to swap main with create_catalog and troubleshoot as needed. +1 for tests.
Examples and tests are added to catalogbuilder and docs for reference, in some shape or form.
And, this might be the correct PR in catalogbuilder to reference.
Describe the bug Recent updates in CatalogBuilder,
https://github.com/NOAA-GFDL/CatalogBuilder/pull/29/files
require small updates to the fre-cli code.
To Reproduce run
fre catalog build
on any pp directoryExpected behavior
Additional context Add any other context about the problem here.