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

Databricks AutoML (Forecasting) Python SDK for Model Serving

Rajib_Kumar_De
New Contributor II

I am using Databricks AutoML ( Python SDK) to forecast bed occupancy. (Actually, Databricks used MLflow experiments for AutoML run). After training with different iterations, I registered the best model in the Databricks Model registry. Now I am trying to serve the register model and I have seen that it is always in the "Pending" stage and in the deployment log has an attached error message.

Can anyone please help me here?

Note: Model artifacts has been created automatically as its from AutoML run. I think I don't have control to add pip dependency and package version.

Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies.  Conda may not use the correct pip to install your packages, and they may end up in the wrong place.  Please add an explicit pip dependency.  I'm adding one for you, but still nagging you.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Pip subprocess error:
  error: subprocess-exited-with-error
  
  Ɨ python setup.py egg_info did not run successfully.
  ā”‚ exit code: 1
  ā•°ā”€> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-_4rq4zju/numba_f054bd7eb658421087c86678b088efff/setup.py", line 51, in <module>
          _guard_py_ver()
        File "/tmp/pip-install-_4rq4zju/numba_f054bd7eb658421087c86678b088efff/setup.py", line 48, in _guard_py_ver
          raise RuntimeError(msg.format(cur_py, min_py, max_py))
      RuntimeError: Cannot install on Python version 3.11.0; only versions >=3.7,<3.11 are supported.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
 
Ɨ Encountered error while generating package metadata.
ā•°ā”€> See above for output.
 
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

This issue I am facing only for Databricks AutoML forecasting, not getting this issue for Databricks AutoML for Regression and Classification.

4 REPLIES 4

Debayan
Esteemed Contributor III
Esteemed Contributor III

Hi,

The error says it only supports versions <3.11 , have you tried installing any version which is less than 3.11 and run?

Rajib_Kumar_De
New Contributor II

Hi Debayan - Thanks for your reply.

As mentioned, I used Databricks AutoML for forecasting. Env and dependencies created automatically. Although, In artifact path, after AutoML run, generates bellow config and there python version 3.9.5. But not sure in deployment log why it is trying to install Python 3.11.

artifact_path: model
databricks_runtime: 12.0.x-cpu-ml-scala2.12
flavors:
  python_function:
    cloudpickle_version: 2.0.0
    env:
      conda: conda.yaml
      virtualenv: python_env.yaml
    loader_module: mlflow.pyfunc.model
    python_model: python_model.pkl
    python_version: 3.9.5
mlflow_version: 2.0.1
model_uuid: f757b91f3a9f4fdd844b9bb9c8ef375c
run_id: 7a62921b7909443bb58b4563d974c84f
signature:
  inputs: '[{"name": "Date", "type": "datetime"}]'
  outputs: '[{"name": "yhat", "type": "double"}]'

Debayan
Esteemed Contributor III
Esteemed Contributor III

Hi, It can be a bug if the python version is 3.9.5 and still the error is on compatibility. Could you please raise a support case to look into it further?

Kaniz
Community Manager
Community Manager

Hi @Rajib Kumar Deā€‹(Customer)ā€‹ , We havenā€™t heard from you since the last response from @Debayan Mukherjeeā€‹ ā€‹ ā€‹, and I was checking back to see if his suggestions helped you.

Or else, If you have any solution, please do share that with the community as it can be helpful to others.

Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.

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.