-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] loader must define exec_module() when running Databricks task #3853
Comments
Thank you for opening your first issue here! 🛠 |
I did some research and found that the problem comes from this change: flyteorg/flytekit#1590 The problem occurs when the lazy_module function is called on pandas. I see that I tried to localize the issue by creating a notebook with this function:
And tried to lazy_import several libraries: It seems some libraries cannot be lazy imported in Databricks Runtimes, I could not reproduce the issue on local machine, so I suspect Databricks overrides some of the import functions that is conflict with lazy_import. @pingsutw Does that sound familiar? |
Adding Let me follow up this issue with Databricks team. |
Describe the bug
BACKGROUND
I'm trying to run a simplified Flyte task using Databricks plugin.
PREREQUISITES:
STEPS:
pyflyte --verbose run --remote --destination-dir . dbx_simplified_example.py my_databricks_job
ISSUE:
Databricks job run triggered and failed with this error:
TypeError: loader must define exec_module()
ERROR LOG:
Expected behavior
Databricks job triggered, workflow successfully completed.
Additional context to reproduce
I suspect the entrypoint.py referred in Databricks Plugin Setup guide is not compatible with Flyte 1.7.0.
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: