/var/opt/nydus/ops/mysql/ai/utils/__pycache__
Edit: /var/opt/nydus/ops/mysql/ai/utils/__pycache__/dependencies.cpython-312.pyc (2294B)
Nj
2 d Z ddlZddlmZ dee ddfdZy)zDependency checking utilities for AI features in MySQL Connector/Python.
Provides check_dependencies() to assert required optional packages are present
with acceptable minimum versions at runtime.
N)Listtasksreturnc t | }|j d dgg ddgd}g }|D ] }|j || t | }g }|D ]D \ }} t j j | } | |k }
|
s.|j | d| d F |r t d d
j | z dz y# t j j $ r d}
Y `w xY w)
a
Check required runtime dependencies and minimum versions; raise an error
if any are missing or version-incompatible.
This verifies the presence and minimum version of essential Python packages.
Missing or insufficient versions cause an ImportError listing the packages
and a suggested install command.
Args:
tasks (List[str]): Task types to check requirements for.
Raises:
ImportError: If any required dependencies are missing or below the
minimum version.
BASE)pandasz1.5.0)) langchain0.1.11)langchain_corer
)pydanticz1.10.0)zscikit-learnz1.3.0)r GENAIMLTz vz (or later)zPlease install z, .N)
setaddextend importlibmetadataversionPackageNotFoundErrorappendImportErrorjoin)r task_settask_to_requirementrequirementstaskrequirements_setproblemsnamemin_versioninstalled_versionerrors L/opt/nydus/tmp/pip-target-a90h98xg/lib/python/mysql/ai/utils/dependencies.pycheck_dependenciesr% ( s 5zHLL %%
)) L/56 <(H-k ) 2 2 : :4 @
&3E OOtfB{m;?@ . +dii.AACGHH !!66 E s $B==CC)__doc__importlib.metadatar typingr strr% r$
r, s, : 0Id3i 0ID 0Ir+