Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 01:19 PM
java.lang.RuntimeException: Failed to execute python command for notebook '/Repos/cflowers@trend.community/treNLP/src/pipeline' with id RunnableCommandId(5385449474169222390) and error AnsiResult([0;31m---------------------------------------------------------------------------[0m
[0;31mModuleNotFoundError[0m Traceback (most recent call last)
File [0;32m<command--1>:5[0m
[1;32m 3[0m [38;5;28;01mimport[39;00m [38;5;21;01mdlt[39;00m
[1;32m 4[0m [38;5;28;01mfrom[39;00m [38;5;21;01mpyspark[39;00m[38;5;21;01m.[39;00m[38;5;21;01msql[39;00m [38;5;28;01mimport[39;00m SparkSession
[0;32m----> 5[0m [38;5;28;01mfrom[39;00m [38;5;21;01mclients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mpipeline_client[39;00m [38;5;28;01mimport[39;00m DatabricksPipelineClient
[1;32m 6[0m [38;5;28;01mfrom[39;00m [38;5;21;01mclients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mTreNLPModel[39;00m [38;5;28;01mimport[39;00m MLFlowModel
[1;32m 7[0m [38;5;28;01mfrom[39;00m [38;5;21;01mclients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdatabricks_client[39;00m [38;5;28;01mimport[39;00m DatabricksHttpClient
File [0;32m/databricks/python_shell/dbruntime/PythonPackageImportsInstrumentation/__init__.py:171[0m, in [0;36m_create_import_patch.<locals>.import_patch[0;34m(name, globals, locals, fromlist, level)[0m
[1;32m 166[0m thread_local[38;5;241m.[39m_nest_level [38;5;241m+[39m[38;5;241m=[39m [38;5;241m1[39m
[1;32m 168[0m [38;5;28;01mtry[39;00m:
[1;32m 169[0m [38;5;66;03m# Import the desired module. If you’re seeing this while debugging a failed import,[39;00m
[1;32m 170[0m [38;5;66;03m# look at preceding stack frames for relevant error information.[39;00m
[0;32m--> 171[0m original_result [38;5;241m=[39m [43mpython_builtin_import[49m[43m([49m[43mname[49m[43m,[49m[43m [49m[38;5;28;43mglobals[39;49m[43m,[49m[43m [49m[38;5;28;43mlocals[39;49m[43m,[49m[43m [49m[43mfromlist[49m[43m,[49m[43m [49m[43mlevel[49m[43m)[49m
[1;32m 173[0m is_root_import [38;5;241m=[39m thread_local[38;5;241m.[39m_nest_level [38;5;241m==[39m [38;5;241m1[39m
[1;32m 174[0m [38;5;66;03m# `level` represents the number of leading dots in a relative import statement.[39;00m
[1;32m 175[0m [38;5;66;03m# If it's zero, then this is an absolute import.[39;00m
[0;31mModuleNotFoundError[0m: No module named 'clients',None,Map(),Map(),List(),List(),Map())I actually don't think the accepted solution should be accepted as the problem involving DLT was not addressed.
I'm having a similar issue while trying to import from repos in a DLT pipeline.