crate / cratedb-examples

A collection of clear and concise examples how to work with CrateDB.
Apache License 2.0
8 stars 7 forks source link

ML/AutoML: `ModuleNotFoundError: No module named 'crate.client.sqlalchemy'` #481

Closed amotl closed 2 weeks ago

amotl commented 2 weeks ago
2024/06/18 12:28:28 INFO mlflow: Amalgamating MLflow for CrateDB
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-c9198aa96905> in <cell line: 6>()
      4 import plotly
      5 import plotly.graph_objects as go
----> 6 import mlflow_cratedb  # Required to enable the CrateDB MLflow adapter.
      7 from dotenv import load_dotenv
      8 
3 frames
/usr/local/lib/python3.10/dist-packages/cratedb_toolkit/sqlalchemy/patch.py in patch_inspector()
     23         return schema_name
     24 
---> 25     from crate.client.sqlalchemy.dialect import CrateDialect
     26 
     27     get_table_names_dist = CrateDialect.get_table_names

ModuleNotFoundError: No module named 'crate.client.sqlalchemy'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
amotl commented 2 weeks ago

Fixed by downgrading to cratedb-toolkit==0.0.13.