pinokiocomputer / pinokio

AI Browser
https://pinokio.computer
MIT License
3.88k stars 320 forks source link

Stable Cascade, Bria RMBG, and others failing during start - Ubuntu 22.04, Pinokio-1.1.0.AppImage #129

Open josephrocca opened 9 months ago

josephrocca commented 9 months ago

Reproduction steps:

  1. Fresh Ubuntu 22.04 install
  2. Download Pinokio-1.1.0.AppImage
  3. chmod +x Pinokio-1.1.0.AppImage
  4. ./Pinokio-1.1.0.AppImage
  5. I chose my computer's secondary SSD drive as 'home': /media/joe/extradrive1/pinokio (instead of /home/joe/pinokio) - not sure if this is the cause.
  6. Install Stable Cascade (or Bria) - install is successful.
  7. Click "start"
  8. See these logs:
    
    <<PINOKIO SHELL>> source /media/joe/extradrive1/pinokio/api/stablecascade.git/app/env/bin/activate /media/joe/extradrive1/pinokio/api/stablecascade.git/app/env && python app.py
    Traceback (most recent call last):
    File "/media/joe/extradrive1/pinokio/api/stablecascade.git/app/env/lib/python3.10/site-packages/torch/__init__.py", line 176, in _load_global_deps
    ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
    File "/media/joe/extradrive1/pinokio/bin/miniconda/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
    OSError: libcudart.so.12: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/media/joe/extradrive1/pinokio/api/stablecascade.git/app/app.py", line 6, in import torch File "/media/joe/extradrive1/pinokio/api/stablecascade.git/app/env/lib/python3.10/site-packages/torch/init.py", line 236, in _load_global_deps() File "/media/joe/extradrive1/pinokio/api/stablecascade.git/app/env/lib/python3.10/site-packages/torch/init.py", line 197, in _load_global_deps _preload_cuda_deps(lib_folder, lib_name) File "/media/joe/extradrive1/pinokio/api/stablecascade.git/app/env/lib/python3.10/site-packages/torch/init.py", line 162, in _preload_cuda_deps raise ValueError(f"{lib_name} not found in the system path {sys.path}") ValueError: libcublas.so.*[0-9] not found in the system path ['/media/joe/extradrive1/pinokio/api/stablecascade.git/app', '/media/joe/extradrive1/pinokio/bin/miniconda/lib/python310.zip', '/media/joe/extradrive1/pinokio/bin/miniconda/lib/python3.10', '/media/joe/extradrive1/pinokio/bin/miniconda/lib/python3.10/lib-dynload', '/media/joe/extradrive1/pinokio/api/stablecascade.git/app/env/lib/python3.10/site-packages'] (env) <> [Start proxy] Local Sharing {{input.event[0]}} Proxy Started

QuantumFlux21 commented 9 months ago

Same error Ubuntu 23.10 Intel 13900k , Nvidia 3070ti

<> source /home/user/pinokio/api/stablecascade.git/app/env/bin/activate /home/user/pinokio/api/stablecascade.git/app/env && python app.py Traceback (most recent call last): File "/home/user/pinokio/api/stablecascade.git/app/env/lib/python3.10/site-packages/torch/init.py", line 176, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/user/pinokio/bin/miniconda/lib/python3.10/ctypes/init.py", line 374, in init self._handle = _dlopen(self._name, mode) OSError: libcudart.so.12: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/user/pinokio/api/stablecascade.git/app/app.py", line 6, in import torch File "/home/user/pinokio/api/stablecascade.git/app/env/lib/python3.10/site-packages/torch/init.py", line 236, in _load_global_deps() File "/home/user/pinokio/api/stablecascade.git/app/env/lib/python3.10/site-packages/torch/init.py", line 197, in _load_global_deps _preload_cuda_deps(lib_folder, lib_name) File "/home/user/pinokio/api/stablecascade.git/app/env/lib/python3.10/site-packages/torch/init.py", line 162, in _preload_cuda_deps raise ValueError(f"{lib_name} not found in the system path {sys.path}") ValueError: libcublas.so.*[0-9] not found in the system path ['/home/user/pinokio/api/stablecascade.git/app', '/home/user/pinokio/bin/miniconda/lib/python310.zip', '/home/user/pinokio/bin/miniconda/lib/python3.10', '/home/user/pinokio/bin/miniconda/lib/python3.10/lib-dynload', '/home/user/pinokio/api/stablecascade.git/app/env/lib/python3.10/site-packages'] (env) <> [Start proxy] Local Sharing {{input.event[0]}} Proxy Started {"target":"{{input.event[0]}}","proxy":"http://192.168.88.99:8001"}

josephrocca commented 9 months ago

I saw that Pinokio-1.2.0.AppImage has released and just tried it - install is successful just like before, but once again I get the same error after clicking 'start' 😢 It happens with all apps. This time I tried DUSt3R:

<<PINOKIO SHELL>> source /home/joe/pinokio/api/dust3r.git/app/env/bin/activate /home/joe/pinokio/api/dust3r.git/app/env && python demo.py --device cuda --weights checkpoints/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth
Traceback (most recent call last):
  File "/home/joe/pinokio/api/dust3r.git/app/env/lib/python3.10/site-packages/torch/__init__.py", line 176, in _load_global_deps
    ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
  File "/home/joe/pinokio/bin/miniconda/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libcudart.so.12: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/joe/pinokio/api/dust3r.git/app/demo.py", line 11, in <module>
    import torch
  File "/home/joe/pinokio/api/dust3r.git/app/env/lib/python3.10/site-packages/torch/__init__.py", line 236, in <module>
    _load_global_deps()
  File "/home/joe/pinokio/api/dust3r.git/app/env/lib/python3.10/site-packages/torch/__init__.py", line 197, in _load_global_deps
    _preload_cuda_deps(lib_folder, lib_name)
  File "/home/joe/pinokio/api/dust3r.git/app/env/lib/python3.10/site-packages/torch/__init__.py", line 162, in _preload_cuda_deps
    raise ValueError(f"{lib_name} not found in the system path {sys.path}")
ValueError: libcublas.so.*[0-9] not found in the system path ['/home/joe/pinokio/api/dust3r.git/app', '/home/joe/pinokio/bin/miniconda/lib/python310.zip', '/home/joe/pinokio/bin/miniconda/lib/python3.10', '/home/joe/pinokio/bin/miniconda/lib/python3.10/lib-dynload', '/home/joe/pinokio/api/dust3r.git/app/env/lib/python3.10/site-packages']
(env) <<PINOKIO SHELL>> 
[Start proxy] Local Sharing {{input.event[0]}}
Proxy Started {"target":"{{input.event[0]}}","proxy":"http://10.0.0.15:8001"}

This time I chose /home/joe/pinokio as my data directory instead of a directory in my mounted SSD, so the issue isn't related to install location, it seems. Detailed reproduction steps in first post (but I'm not doing anything special here).

@cocktailpeanut Can you please test the AppImage files on Ubuntu 22.04 before release of next version? :pray: I'm using a plain/fresh install of Ubuntu 22.04 with an RTX 4090.

The-Nils commented 8 months ago

same for me on all apps using the Pinokio-1.2.49.AppImage file

QuantumFlux21 commented 8 months ago

Running Version 1.2.51 results in this error. I think they are making progress.

<> eval "$(conda shell.bash hook)" && conda deactivate && conda deactivate && conda deactivate && conda activate base && conda install -y cudnn -c conda-forge Error while loading conda entry point: conda-libmamba-solver (libarchive.so.19: cannot open shared object file: No such file or directory)

CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

(base) <> <> eval "$(conda shell.bash hook)" && conda deactivate && conda deactivate && conda deactivate && conda activate base && conda install -y cuda -c nvidia/label/cuda-12.1.0 Error while loading conda entry point: conda-libmamba-solver (libarchive.so.19: cannot open shared object file: No such file or directory)

CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

(base) <>

On Fri, Mar 22, 2024 at 12:59 PM The-Nils @.***> wrote:

same for me on all apps using the Pinokio-1.2.49.AppImage file

— Reply to this email directly, view it on GitHub https://github.com/pinokiocomputer/pinokio/issues/129#issuecomment-2015516588, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFU6EY4V3D4VU33DMU55JALYZRPPBAVCNFSM6AAAAABDQOKZ3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJVGUYTMNJYHA . You are receiving this because you commented.Message ID: @.***>

QuantumFlux21 commented 8 months ago

Pinokio 1.3 same cuda error

<> eval "$(conda shell.bash hook)" && conda deactivate && conda deactivate && conda deactivate && conda activate base && conda install -y cudnn -c conda-forge Error while loading conda entry point: conda-libmamba-solver (libarchive.so.19: cannot open shared object file: No such file or directory)

CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

(base) <> <> eval "$(conda shell.bash hook)" && conda deactivate && conda deactivate && conda deactivate && conda activate base && conda install -y cuda -c nvidia/label/cuda-12.1.0 Error while loading conda entry point: conda-libmamba-solver (libarchive.so.19: cannot open shared object file: No such file or directory)

CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

(base) <>

On Sun, Mar 24, 2024 at 1:54 PM Mike Famularo @.***> wrote:

Running Version 1.2.51 results in this error. I think they are making progress.

<> eval "$(conda shell.bash hook)" && conda deactivate && conda deactivate && conda deactivate && conda activate base && conda install -y cudnn -c conda-forge Error while loading conda entry point: conda-libmamba-solver (libarchive.so.19: cannot open shared object file: No such file or directory)

CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

(base) <> <> eval "$(conda shell.bash hook)" && conda deactivate && conda deactivate && conda deactivate && conda activate base && conda install -y cuda -c nvidia/label/cuda-12.1.0 Error while loading conda entry point: conda-libmamba-solver (libarchive.so.19: cannot open shared object file: No such file or directory)

CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

(base) <>

On Fri, Mar 22, 2024 at 12:59 PM The-Nils @.***> wrote:

same for me on all apps using the Pinokio-1.2.49.AppImage file

— Reply to this email directly, view it on GitHub https://github.com/pinokiocomputer/pinokio/issues/129#issuecomment-2015516588, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFU6EY4V3D4VU33DMU55JALYZRPPBAVCNFSM6AAAAABDQOKZ3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJVGUYTMNJYHA . You are receiving this because you commented.Message ID: @.***>