cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
cancel
Showing results for 
Search instead for 
Did you mean: 

InvalidConfigurationError: You haven't configured the CLI yet! Please configure by entering ...

sqlshep
New Contributor III

Running a python function in the notebook, i am getting the following

InvalidConfigurationError: You haven't configured the CLI yet! Please configure by entering `/databricks/python_shell/scripts/db_ipykernel_launcher.py configure`

When i try to run the configure command in terminal i get the following

b_ipykernel_launcher.py: line 9: Entry point for launching an IPython kernel with databricks feature support.

This file is based on the kernel launcher from ipykernel[1]. In this launcher we initialize a

connection to spark to both be used by user code and by databricks feature, initialize databricks

setup that require setup on kernel start and launch the kernel app so the jupyter client can

connect.

[1] https://github.com/ipython/ipykernel/blob/v5.2.1/ipykernel_launcher.py

: File name too long

db_ipykernel_launcher.py: line 10: import: command not found

db_ipykernel_launcher.py: line 11: import: command not found

from: can't read /var/mail/dbruntime.AdviceGenerator

from: can't read /var/mail/dbruntime.CachingCompiler

from: can't read /var/mail/dbruntime.DatasetInfo

from: can't read /var/mail/dbruntime.IPythonShellHooks

from: can't read /var/mail/dbruntime.MLWorkloadsInstrumentation

from: can't read /var/mail/dbruntime.MlflowAutologging

db_ipykernel_launcher.py: line 19: syntax error near unexpected token `('

db_ipykernel_launcher.py: line 19: `from dbruntime.PythonPackageImportsInstrumentation import (set_up_package_imports_instrumentation,'

3 REPLIES 3

Anonymous
Not applicable

Can you share the code snippet of the python function?

sqlshep
New Contributor III
 

wicked-lion
New Contributor II

Facing the same issue

for me the error comes up when mlflow.get_experiment_by_name is called.

I am  running a custom docker image built on 

databricksruntime/standard:13.3-LTS

custom image so my packages are installed.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.