InvalidConfigurationError: You haven't configured the CLI yet! Please configure by entering ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2023 07:32 AM
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,'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2023 05:50 AM
Can you share the code snippet of the python function?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2023 08:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 02:05 AM
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.
![](/skins/images/8C2A30E5B696B676846234E4B14F2C7B/responsive_peak/images/icon_anonymous_message.png)
![](/skins/images/8C2A30E5B696B676846234E4B14F2C7B/responsive_peak/images/icon_anonymous_message.png)