cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

You haven't configured the CLI yet

ram0021
New Contributor II

I have coded pyfunc model code in Databricks notebook and deployed and served thr model thr endpoint. I tried to query the endpoint thr databricks notebook itself through below code but getting CLI error. Not sure why i am getting this error since I am querying thr code in databricks notebook itself.

{"error_code": "BAD_REQUEST", "message": "Encountered an unexpected error while evaluating the model. Error 'You haven't configured the CLI yet! Please configure by entering `/opt/conda/envs/mlflow-env/bin/gunicorn configure`'",/site-packages/mlflow/legacy_databricks_cli/configure/provider.py\", line 137, in get_config\n raise InvalidConfigurationError.for_profile(None)\nmlflow.legacy_databricks_cli.configure.provider.InvalidConfigurationError: You haven't configured the CLI yet! Please configure by entering `/opt/conda/envs/mlflow-env/bin/gunicorn configure`\n"}

2 REPLIES 2

ram0021
New Contributor II

I have even used %pip but still same error.

john_smith
New Contributor II

Try this article which seems to have worked for most such use cases:
https://medium.com/featurepreneur/solving-the-cli-configuration-error-in-databricks-d0462a96449f

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now