Traceback (most recent call last): File "yolo_debug.py", line 1, in <module> from ultralytics import YOLO File "/root/yolov8/ultralytics/__init__.py", line 5, in <module> from ultralytics.hub import start File "/root/yolov8/ultralytics/hub/__init__.py", line 5, in <module> from ultralytics.hub.auth import Auth File "/root/yolov8/ultralytics/hub/auth.py", line 5, in <module> from ultralytics.hub.utils import HUB_API_ROOT, PREFIX, request_with_credentials File "/root/yolov8/ultralytics/hub/utils.py", line 14, in <module> from ultralytics.yolo.utils import (ENVIRONMENT, LOGGER, ONLINE, RANK, SETTINGS, TESTS_RUNNING, TQDM_BAR_FORMAT, File "/root/yolov8/ultralytics/yolo/__init__.py", line 3, in <module> from . import v8 File "/root/yolov8/ultralytics/yolo/v8/__init__.py", line 3, in <module> from ultralytics.yolo.v8 import classify, detect, pose, segment File "/root/yolov8/ultralytics/yolo/v8/classify/__init__.py", line 3, in <module> from ultralytics.yolo.v8.classify.predict import ClassificationPredictor, predict File "/root/yolov8/ultralytics/yolo/v8/classify/predict.py", line 5, in <module> from ultralytics.yolo.engine.predictor import BasePredictor File "/root/yolov8/ultralytics/yolo/engine/predictor.py", line 33, in <module> import cv2 File "/usr/local/lib/python3.8/dist-packages/cv2/__init__.py", line 181, in <module> bootstrap() File "/usr/local/lib/python3.8/dist-packages/cv2/__init__.py", line 153, in bootstrap native_module = importlib.import_module("cv2") File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
import re dependencies = """ - krb5=1.20.1=h81ceb04_0 - krbalancing=0.0.5=py39h1f90b4d_7 """
pattern = r'^- (\w+)=([\d\.]+)=([\w\d]+)_(\d+)$'
for dep in dependencies.splitlines(): match = re.match(pattern, dep) if match: name, version, build, build_number = match.groups() print(f'mamba install -y {name}={version}')