cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
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.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group