Loading...

报错内容

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(ab) (base) root@b11a13895df1:/cyb/LAVIS# bash run_scripts/blip2/train/pretrain_stage1.sh
Traceback (most recent call last):
File "/cyb/LAVIS/train.py", line 16, in <module>
import lavis.tasks as tasks
File "/cyb/LAVIS/lavis/__init__.py", line 15, in <module>
from lavis.datasets.builders import *
File "/cyb/LAVIS/lavis/datasets/builders/__init__.py", line 8, in <module>
from lavis.datasets.builders.base_dataset_builder import load_dataset_config
File "/cyb/LAVIS/lavis/datasets/builders/base_dataset_builder.py", line 18, in <module>
from lavis.processors.base_processor import BaseProcessor
File "/cyb/LAVIS/lavis/processors/__init__.py", line 10, in <module>
from lavis.processors.alpro_processors import (
File "/cyb/LAVIS/lavis/processors/alpro_processors.py", line 13, in <module>
from lavis.processors.randaugment import VideoRandomAugment
File "/cyb/LAVIS/lavis/processors/randaugment.py", line 8, in <module>
import cv2
File "/root/anaconda3/envs/ab/lib/python3.9/site-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/root/anaconda3/envs/ab/lib/python3.9/site-packages/cv2/__init__.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/root/anaconda3/envs/ab/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 15594) of binary: /root/anaconda3/envs/ab/bin/python


解决方法

1
pip install opencv-python-headless