Closed 2Bornot2BequalsFF closed 1 year ago
Have the same problem - use nextcloud docker compose for apache (Nextcloud Hub 6 (27.1.1)) Try to installing langchain via pip3 install langchain which fails and complain "This environment is externally managed..."
thanks best regards Jochen
Which docker container are you using? You do need python-venv in the container, which may not be there in the default images. I've just successfully installed the app on the 27.1.1-apache container with
apt update && apt install python3.11-venv
php occ app:enable llm
on the alpine things inevitably fail, for lots of reasons. (one of them being that poetry wants to build some native python modules)
thx for your reply
my dockerfile is based on nextcloud:27-apache which has installed NEXTCLOUD_VERSION 27.1.1
FROM nextcloud:27-apache
RUN apt-get update && apt-get install -y procps smbclient && rm -rf /var/lib/apt/lists/ RUN echo '0 4 php -f /var/www/html/occ preview:pre-generate' >> /var/spool/cron/crontabs/www-data
COPY mpm_prefork.conf /etc/apache2/mods-enabled/
COPY my.cnf /etc/mysql/
I will add python3.11-venv to the image and redeploy - let's see...
worked thanks
Yay, glad it works now :)
⚠️ This issue respects the following points: ⚠️
Bug description
Starting Nextcloud Assistent with local LLM installed (Status: Model downloaded successfully, App installed, selected Model Llama2 7B; Python executable executed successfully and setip works) Enter a free prompt
Every job fails.
System log entry:
Traceback (most recent call last): File "/var/www/html/nextcloud/apps/llm/src-py/index.py", line 3, in from chains.formalize import FormalizeChain File "/var/www/html/nextcloud/apps/llm/src-py/chains/formalize.py", line 2, in from langchain import BasePromptTemplate, PromptTemplate ModuleNotFoundError: No module named 'langchain'
Nextcloud release: 27.1.2 RC1
Steps to reproduce
Expected behavior
Jobs should finish correctly
Installation method
Community Manual installation with Archive
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Nextcloud 27.1.2 RC 1