helpful-baker-78647
10/10/2024, 9:48 AMmetaflow-card-notebook==1.0.8
and metaflow==2.12.25
When trying to connect everything together so that it works on AWS, it seems that there are two nested errors.
⢠one during rendering of the card
⢠one during the handling of the above rendering error
I only get this information :
Card render failed with error :
Internal error
and I've tried to debug as much as I can (e.g. kernel name, check notebook path, first executing with papermill and then rendering, timeout),
but I'm beginning to be out of ideas of what could be the problem.
And here is the bottom of the stack trace:
Traceback (most recent call last):
File "/usr/src/app/metaflow/metaflow/_vendor/click/decorators.py", line 21, in new_func
return f(get_current_context(), args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/metaflow/metaflow/plugins/cards/card_cli.py", line 758, in create
rendered_content = _render_error_card(error_stack_trace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/metaflow/metaflow/plugins/cards/card_cli.py", line 755, in _render_error_card
).replace(mf_card.RELOAD_POLICY_TOKEN, token)
^^^^^^^
NameError: cannot access free variable 'mf_card' where it is not associated with a value in enclosing scope
I've used a basic flow and notebook from the metaflow-card-notebook repo.hallowed-glass-14538
10/10/2024, 7:59 PMhallowed-glass-14538
10/10/2024, 8:01 PMsave_errors=False
in the @card decorator ? It will bubble the error to stdout and that will make it easier to debughelpful-baker-78647
10/11/2024, 6:20 AMsave_errors
argument as soon as our metaflow is up and running again (some troubleshooting is happening right now).
Here is the full stack trace
Card render failed with error :
Internal error
Traceback (most recent call last):
File "/usr/src/app/metaflow/metaflow/cli.py", line 1123, in main
start(auto_envvar_prefix="METAFLOW", obj=state)
File "/usr/src/app/metaflow/metaflow/tracing/__init__.py", line 27, in wrapper_func
return func(args, kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/metaflow/metaflow/_vendor/click/core.py", line 829, in __call__
return self.main(args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/metaflow/metaflow/_vendor/click/core.py", line 782, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/src/app/metaflow/metaflow/_vendor/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/metaflow/metaflow/_vendor/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/metaflow/metaflow/_vendor/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/metaflow/metaflow/_vendor/click/core.py", line 610, in invoke
return callback(args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/metaflow/metaflow/_vendor/click/decorators.py", line 21, in new_func
return f(get_current_context(), args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/metaflow/metaflow/plugins/cards/card_cli.py", line 758, in create
rendered_content = _render_error_card(error_stack_trace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/metaflow/metaflow/plugins/cards/card_cli.py", line 755, in _render_error_card
).replace(mf_card.RELOAD_POLICY_TOKEN, token)
^^^^^^^
NameError: cannot access free variable 'mf_card' where it is not associated with a value in enclosing scope
hallowed-glass-14538
10/11/2024, 8:14 AMhelpful-baker-78647
10/11/2024, 9:37 AMhelpful-baker-78647
10/11/2024, 11:20 AMmetaflow-card-notebook
was not installed, most likely linked to the problem above !
Thanks a lot for your support ! š