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,'