nextcloud/llm

All tasks fail with error No module named 'langchain'

madmudklip opened this issue · 7 comments

Nextcould AIO latest docker instance with LIM installed, configuration showing good
Screenshot 2023-09-17 175612

Any task request through Nextcloud assistant results in the following error

<html>
<body>
<!--StartFragment-->

Traceback (most recent call last): File "/var/www/html/custom_apps/llm/src-py/index.py", line 3, in <module> from chains.formalize import FormalizeChain File "/var/www/html/custom_apps/llm/src-py/chains/formalize.py", line 2, in <module> from langchain import BasePromptTemplate, PromptTemplate ModuleNotFoundError: No module named 'langchain' |  
-- | --


<br class="Apple-interchange-newline"><!--EndFragment-->
</body>
</html>

I've confirmed that langchain is installed in the nextcloud container

Screenshot 2023-09-17 175810

I've confirmed that langchain is installed in the nextcloud container

The app creates a virtual environment in which it tries to install the modules upon app installation. Could you try running occ maintenance:repair and check the nextcloud log for errors?

Also, which version are you on (over here #912 people suggested a similar issue was fixed with the latest version)

@marcelklehr I'm on a fresh deployment of the latest version. Running maintenance:repair I'm seeing the follow error:

Screenshot 2023-09-17 211446

What architecture are you on? Which OS?

What architecture are you on? Which OS?

This is a AIO docker instance running on X86 Ubuntu Server 22.04.3 LTS

Seems its a limitation with the container running in Alpine Linux as doesn't seem gpt4all 1.0.7 is available