visual-chatgpt
visual-chatgpt copied to clipboard
Throwing error when running on Github Codespaces
ImportError: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0
Even i got one but different
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /workspaces/visual-chatgpt/visual_chatgpt.py:22 in
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
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