visual-chatgpt icon indicating copy to clipboard operation
visual-chatgpt copied to clipboard

Throwing error when running on Github Codespaces

Open shivay-fabric opened this issue 1 year ago • 3 comments

ImportError: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0

shivay-fabric avatar Mar 12 '23 17:03 shivay-fabric

Even i got one but different

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ /workspaces/visual-chatgpt/visual_chatgpt.py:22 in │ │ │ │ 19 import numpy as np │ │ 20 from omegaconf import OmegaConf │ │ 21 from transformers import pipeline, BlipProcessor, BlipForConditionalGeneration, BlipForQ │ │ ❱ 22 import cv2 │ │ 23 import einops │ │ 24 from pytorch_lightning import seed_everything │ │ 25 import random │ │ │ │ /opt/conda/envs/visgpt/lib/python3.8/site-packages/cv2/init.py:5 in │ │ │ │ 2 import os │ │ 3 import sys │ │ 4 │ │ ❱ 5 from .cv2 import * │ │ 6 from .data import * │ │ 7 │ │ 8 # wildcard import above does not import "private" variables like version │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ImportError: libGL.so.1: cannot open shared object file: No such file or directory

akashamar avatar Mar 12 '23 19:03 akashamar

Even i got one but different

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ /workspaces/visual-chatgpt/visual_chatgpt.py:22 in │ │ │ │ 19 import numpy as np │ │ 20 from omegaconf import OmegaConf │ │ 21 from transformers import pipeline, BlipProcessor, BlipForConditionalGeneration, BlipForQ │ │ ❱ 22 import cv2 │ │ 23 import einops │ │ 24 from pytorch_lightning import seed_everything │ │ 25 import random │ │ │ │ /opt/conda/envs/visgpt/lib/python3.8/site-packages/cv2/init.py:5 in │ │ │ │ 2 import os │ │ 3 import sys │ │ 4 │ │ ❱ 5 from .cv2 import * │ │ 6 from .data import * │ │ 7 │ │ 8 # wildcard import above does not import "private" variables like version │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ImportError: libGL.so.1: cannot open shared object file: No such file or directory

try this:

apt update
apt install libgl1-mesa-glx

Lua12138 avatar Mar 13 '23 01:03 Lua12138

If you search for ffi_type_uint32 among the issues: https://github.com/microsoft/visual-chatgpt/issues?q=ffi_type_uint32 you'll find several open issues and one closed. The closed one has the answer: conda install -c anaconda glib

jxtps avatar Mar 13 '23 04:03 jxtps