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

No module named 'git' #549

Open LMcontent opened 2 months ago

LMcontent commented 2 months ago

Expected Behavior

Starting lollms-webui 9.8 . (Win 10)

Current Behavior

error_1

Starting LOLLMS Web UI... By ParisNeo Traceback (most recent call last): File "C:\Lollms\lollms-webui\app.py", line 8, in from lollms.utilities import PackageManager File "c:\lollms\lollms-webui\lollms_core\lollms\utilities.py", line 36, in import git ModuleNotFoundError: No module named 'git'

error_2

Starting LOLLMS Web UI... By ParisNeo Checking ParisNeo libraries installation OK defusedxml is not installed. Installing.. Collecting defusedxml Downloading defusedxml-0.7.1-py2.py3-none-any.whl.metadata (32 kB) Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB) Installing collected packages: defusedxml Successfully installed defusedxml-0.7.1 Traceback (most recent call last): File "C:\Lollms\lollms-webui\app.py", line 53, in import psutil ModuleNotFoundError: No module named 'psutil'

Steps to Reproduce

  1. (I have a Anaconda for my projects)
  2. I create C:\Lollms.
  3. I start C:\Lollms\win_install.bat and see all installation.
  4. I'm launching C:\Lollms\win_run.bat and saw error - no have git module. error_1
  5. I add "GitPython" module in my Anaconda Navigator in enviroment "lollms_env"
  6. I retry launching win_install.bat and saw error - no have psutil module.error_2
  7. I add "psutil" module in my Anaconda Navigator in enviroment "lollms_env"
  8. I retry launching win_install.bat and all is starting OK.

Possible Solution

Maybe you make a new script for users Anaconda.

Context

If Anaconda is installed, then maybe it conflicts with Miniconda? I see in my Anaconda Navigator two environment: miniconda3 and lollms_env. It's probably can be problem for Anaconda's environment and Miniconda's environment.

Screenshots