ParisNeo / lollms-webui

Lord of Large Language Models Web User Interface
https://lollms.com
Apache License 2.0
4.27k stars 537 forks source link

Unable to run on Ubuntu 23 #459

Closed apstrom closed 9 months ago

apstrom commented 9 months ago

Expected Behavior

Run python app.py

Current Behavior

I have used the installer script to install LOLLMS. When I enter the conda environment and run python app.py.

The app runs; returns this error:

Traceback (most recent call last): File "/home/adam/lollms/lollms-webui/app.py", line 70, in from api.db import Discussion File "/home/adam/lollms/lollms-webui/api/init.py", line 23, in from lollms.media import WebcamImageSender, AudioRecorder File "/home/adam/lollms/lollms-webui/lollms_core/lollms/media.py", line 18, in import cv2 ImportError: libGL.so.1: cannot open shared object file: No such file or directory

Steps to Reproduce

Appears to be system-specific.

  1. Install using installer script or miniconda3.
  2. Enter conda environment.
  3. Change directory to app.py location.
  4. Run python app.py

Possible Solution

I'm puzzled--admittedly not a great coder. Excellent end-user, though.

Context

Fresh install of Ubuntu 23. Same issue on Debian 11. Running the installation in PVE container.

Screenshots

N/A

NeoPlayer13 commented 9 months ago

Same problem! Running in a VM with a fresh lunar-server-cloudimg-amd64-disk-kvm.img and jammy-server-cloudimg-amd64-disk-kvm.img. Used the linux_run.sh.

apstrom commented 9 months ago

I have also now tested a fresh Ubuntu 23 container using linux_run.sh. Same error.

JImRock33 commented 9 months ago

i jystr followed the new instructions...uo and running !!!!! just authorizze ur location when asked to. thank you Neo !

apstrom commented 9 months ago

i jystr followed the new instructions...uo and running !!!!! just authorizze ur location when asked to. thank you Neo !

Where are these instructions?

JImRock33 commented 9 months ago

the main page just changed 20 min utes ago

JImRock33 commented 9 months ago

just authorize git to use the repo (useur own path ): Lollms_core found in the app space. Pulling last lollms_core fatal: detected dubious ownership in repository at '/mnt/1F70BDBD2D31C071/lollms-webui/lollms_core' To add an exception for this directory, call:

git config --global --add safe.directory /mnt/1F70BDBD2D31C071/lollms-webui/lollms_core

safe_store_path found in the app space. Pulling last safe_store_path fatal: detected dubious ownership in repository at '/mnt/1F70BDBD2D31C071/lollms-webui/utilities/safe_store' To add an exception for this directory, call:

git config --global --add safe.directory /mnt/1F70BDBD2D31C071/lollms-webui/utilities/safe_store

Bindings zoo found in your personal space. Pulling last personalities zoo fatal: detected dubious ownership in repository at '/mnt/1F70BDBD2D31C071/lollms-webui/zoos/bindings_zoo' To add an exception for this directory, call:

git config --global --add safe.directory /mnt/1F70BDBD2D31C071/lollms-webui/zoos/bindings_zoo

Personalities zoo found in your personal space. Pulling last personalities zoo fatal: detected dubious ownership in repository at '/mnt/1F70BDBD2D31C071/lollms-webui/zoos/personalities_zoo' To add an exception for this directory, call:

git config --global --add safe.directory /mnt/1F70BDBD2D31C071/lollms-webui/zoos/personalities_zoo

Extensions zoo found in your personal space. Pulling last Extensions zoo fatal: detected dubious ownership in repository at '/mnt/1F70BDBD2D31C071/lollms-webui/zoos/extensions_zoo' To add an exception for this directory, call:

git config --global --add safe.directory /mnt/1F70BDBD2D31C071/lollms-webui/zoos/extensions_zoo

Models zoo found in your personal space. Pulling last Models zoo fatal: detected dubious ownership in repository at '/mnt/1F70BDBD2D31C071/lollms-webui/zoos/models_zoo' To add an exception for this directory, call:

git config --global --add safe.directory /mnt/1F70BDBD2D31C071/lollms-webui/zoos/models_zoo

Loading binding remote_lollms. Please

JImRock33 commented 9 months ago

just have a problem forcing me to reinstall env each time i add a binding cos Unable to locate package portaudio19-dev python3-pyaudio.. surelly nothing. it opens once in fact and then rebooting automatically when changing bindings doesn' t work and relauncching using python app.py is broken unless i repeat the whole process: /mnt/1F70BDBD2D31C071/lollms-webui$ python app.py Traceback (most recent call last): File "/mnt/1F70BDBD2D31C071/lollms-webui/app.py", line 22, in from flask import request, jsonify ModuleNotFoundError: No module named 'flask'

apstrom commented 9 months ago

The fix that was committed worked. I get a non-fatal error regarding pyaudio on start, but that is not a problem at the moment.

NeoPlayer13 commented 9 months ago

Tried with the Fedora cloud image. Same error! It throw off the system-specific theory. Solved using apt install install ffmpeg libsm6 libxext6. It will download nvidia-cuda, numba, triton and other dependencies. But it's fully working after that.

JImRock33 commented 9 months ago

can't relaunch in fact

Tried with the Fedora cloud image. Same error! It throw off the system-specific theory. Solved using apt install install ffmpeg libsm6 libxext6. It will download nvidia-cuda, numba, triton and other dependencies. But it's fully working after that.

in the new whole wokfloaw ? or as an indempndant cmd ? thx for u being on the topic !!!!

NeoPlayer13 commented 9 months ago

It's more like a workaround.

JImRock33 commented 9 months ago

so i do i run it please ? in the conda env ? thx

JImRock33 commented 9 months ago

t'es français hein ?

JImRock33 commented 9 months ago

kifkif bourricocotte

(base) dizux@dizux-CF:/mnt/1F70BDBD2D31C071/lollms-webui$ sudo apt install ffmpeg libsm6 libxext6 Reading package lists... Done Building dependency tree... Done Reading state information... Done ffmpeg is already the newest version (7:6.0-6ubuntu1). ffmpeg set to manually installed. libsm6 is already the newest version (2:1.2.3-1build2). libsm6 set to manually installed. libxext6 is already the newest version (2:1.3.4-1build1). libxext6 set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. (base) dizux@dizux-CF:/mnt/1F70BDBD2D31C071/lollms-webui$

NeoPlayer13 commented 9 months ago

t'es français hein ?

My native language is Spanish. It's a workaround for the original problem. ImportError: libGL.so.1: cannot open shared object file: No such file or directory

JImRock33 commented 9 months ago

doesn't work, everything already up to date///

NeoPlayer13 commented 9 months ago

Does it still returns the OP error message when you run linux_run.sh? Or you got a new one?

JImRock33 commented 9 months ago

don't use the script, doesn't work, using the condan env manuallly , just take 3 mn , ije=ust figured out that only reinstalling dependencies is enough to relaunch////