Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory #97

Open
loretoparisi opened this issue Jan 18, 2022 · 0 comments

Comments

@loretoparisi
Copy link

I'm getting this error recently:

import transformers
import more_itertools
from tqdm.auto import tqdm

from rudalle.pipelines import show, cherry_pick_by_clip
from rudalle import get_rudalle_model, get_tokenizer, get_vae, get_ruclip
from rudalle.utils import seed_everything, torch_tensors_to_pil_list

# prepare models:
device = 'cuda'
dalle = get_rudalle_model('Malevich', pretrained=True, fp16=True, device=device, cache_dir='./')

causes

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/tmp/ipykernel_209/2921329298.py in <module>
      3 from tqdm.auto import tqdm
      4 
----> 5 from rudalle.pipelines import show, cherry_pick_by_clip
      6 from rudalle import get_rudalle_model, get_tokenizer, get_vae, get_ruclip
      7 from rudalle.utils import seed_everything, torch_tensors_to_pil_list

~/.conda/envs/default/lib/python3.9/site-packages/rudalle/__init__.py in <module>
      6 from .ruclip import get_ruclip
      7 from .emojich_unet import get_emojich_unet
----> 8 from . import vae, dalle, tokenizer, realesrgan, pipelines, ruclip, image_prompts
      9 
     10 

~/.conda/envs/default/lib/python3.9/site-packages/rudalle/pipelines.py in <module>
      4 from os.path import join
      5 
----> 6 import cv2
      7 import torch
      8 import torchvision

~/.conda/envs/default/lib/python3.9/site-packages/cv2/__init__.py in <module>
      6 import sys
      7 
----> 8 from .cv2 import *
      9 from .cv2 import _registerMatType
     10 from . import mat_wrapper

ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

I cannot do any install since I'm running on Sagemaker Studio Lab (install with apt-get not supported apparently). This was not happening in the previous versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant