ERROR - Internal Python error in the inspect module. #415
-
Hi team, I have encountered the following error when launching a job in databricks.
This was run in a spark_python_task from dbx with following commands
The error was actually generated after the full python file has been executed. Here I used the framework from kedro, so I could see that all tasks in the pipeline has already been completed. Content of the python file is pretty simple:
Below is the full error message:
Thanks in advance for any tips and advise. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @datascientistlin , I would recommend checking if there is another API that allows to call the command without click context. |
Beta Was this translation helpful? Give feedback.
Hi @datascientistlin ,
the
main
method calls kedro, and kedro calls click under the hood. at the end of the command click calls sys.exit(0), which is not allowed by Databricks as described here.I would recommend checking if there is another API that allows to call the command without click context.