NC Assistant + LLM python venv issue
-
Hello.
I tried to install the Nextcloud Assistant app together with the LLM integration. It requires acces to some python environement which seems not to be available. Or at least the app cannot set up the environement. As the interface does not give away much I run
occ maintenance:repairwhere I saw the pyhton issue:# occ maintenance:repair ... - Install dependencies for llm app {"reqId":"dL8d7Onb88EjTGpwg1Qd","level":3,"time":"2024-01-23T21:06:35+00:00","remoteAddr":"","user":"--","app":"llm","method":"","url":"--","message":"Failed to create python venv: python3 -m venv ./python returned The virtual environment was not created successfully because ensurepip is not\navailable. On Debian/Ubuntu systems, you need to install the python3-venv\npackage using the following command.\n\n apt install python3.10-venv\n\nYou may need to use sudo with that command. After installing the python3-venv\npackage, recreate your virtual environment.\n\nFailing command: /app/data/apps/llm/python/bin/python3","userAgent":"--","version":"27.1.4.1","data":{"app":"llm"}} {"reqId":"dL8d7Onb88EjTGpwg1Qd","level":3,"time":"2024-01-23T21:06:35+00:00","remoteAddr":"","user":"--","app":"llm","method":"","url":"--","message":"Failed to install python dependencies: Failed to create python venv: python3 -m venv ./python returned The virtual environment was not created successfully because ensurepip is not\navailable. On Debian/Ubuntu systems, you need to install the python3-venv\npackage using the following command.\n\n apt install python3.10-venv\n\nYou may need to use sudo with that command. After installing the python3-venv\npackage, recreate your virtual environment.\n\nFailing command: /app/data/apps/llm/python/bin/python3","userAgent":"--","version":"27.1.4.1","exception":{"Exception":"Exception","Message":"Failed to create python venv: python3 -m venv ./python returned The virtual environment was not created successfully because ensurepip is not\navailable. On Debian/Ubuntu systems, you need to install the python3-venv\npackage using the following command.\n\n apt install python3.10-venv\n\nYou may need to use sudo with that command. After installing the python3-venv\npackage, recreate your virtual environment.\n\nFailing command: /app/data/apps/llm/python/bin/python3","Code":0,"Trace":[{"file":"/app/data/apps/llm/lib/Migration/InstallDeps.php","line":28,"function":"runPoetryInstall","class":"OCA\\Llm\\Migration\\InstallDeps","type":"->"},{"file":"/app/code/lib/private/Repair.php","line":127,"function":"run","class":"OCA\\Llm\\Migration\\InstallDeps","type":"->"},{"file":"/app/code/core/Command/Maintenance/Repair.php","line":123,"function":"run","class":"OC\\Repair","type":"->"},{"file":"/app/code/3rdparty/symfony/console/Command/Command.php","line":298,"function":"execute","class":"OC\\Core\\Command\\Maintenance\\Repair","type":"->"},{"file":"/app/code/3rdparty/symfony/console/Application.php","line":1040,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/app/code/3rdparty/symfony/console/Application.php","line":301,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/app/code/3rdparty/symfony/console/Application.php","line":171,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/app/code/lib/private/Console/Application.php","line":211,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/app/code/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/app/code/occ","line":11,"args":["/app/code/console.php"],"function":"require_once"}],"File":"/app/data/apps/llm/lib/Migration/InstallDeps.php","Line":43,"message":"Failed to install python dependencies: Failed to create python venv: python3 -m venv ./python returned The virtual environment was not created successfully because ensurepip is not\navailable. On Debian/Ubuntu systems, you need to install the python3-venv\npackage using the following command.\n\n apt install python3.10-venv\n\nYou may need to use sudo with that command. After installing the python3-venv\npackage, recreate your virtual environment.\n\nFailing command: /app/data/apps/llm/python/bin/python3","exception":{},"CustomMessage":"Failed to install python dependencies: Failed to create python venv: python3 -m venv ./python returned The virtual environment was not created successfully because ensurepip is not\navailable. On Debian/Ubuntu systems, you need to install the python3-venv\npackage using the following command.\n\n apt install python3.10-venv\n\nYou may need to use sudo with that command. After installing the python3-venv\npackage, recreate your virtual environment.\n\nFailing command: /app/data/apps/llm/python/bin/python3"}} {"reqId":"dL8d7Onb88EjTGpwg1Qd","level":3,"time":"2024-01-23T21:06:35+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Exception while executing repair step Install dependencies for llm app","userAgent":"--","version":"27.1.4.1","exception":{"Exception":"Exception","Message":"Failed to install python dependencies: Failed to create python venv: python3 -m venv ./python returned The virtual environment was not created successfully because ensurepip is not\navailable. On Debian/Ubuntu systems, you need to install the python3-venv\npackage using the following command.\n\n apt install python3.10-venv\n\nYou may need to use sudo with that command. After installing the python3-venv\npackage, recreate your virtual environment.\n\nFailing command: /app/data/apps/llm/python/bin/python3","Code":0,"Trace":[{"file":"/app/data/apps/llm/lib/Migration/InstallDeps.php","line":28,"function":"runPoetryInstall","class":"OCA\\Llm\\Migration\\InstallDeps","type":"->"},{"file":"/app/code/lib/private/Repair.php","line":127,"function":"run","class":"OCA\\Llm\\Migration\\InstallDeps","type":"->"},{"file":"/app/code/core/Command/Maintenance/Repair.php","line":123,"function":"run","class":"OC\\Repair","type":"->"},{"file":"/app/code/3rdparty/symfony/console/Command/Command.php","line":298,"function":"execute","class":"OC\\Core\\Command\\Maintenance\\Repair","type":"->"},{"file":"/app/code/3rdparty/symfony/console/Application.php","line":1040,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/app/code/3rdparty/symfony/console/Application.php","line":301,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/app/code/3rdparty/symfony/console/Application.php","line":171,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/app/code/lib/private/Console/Application.php","line":211,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/app/code/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/app/code/occ","line":11,"args":["/app/code/console.php"],"function":"require_once"}],"File":"/app/data/apps/llm/lib/Migration/InstallDeps.php","Line":74,"message":"Exception while executing repair step Install dependencies for llm app","exception":{},"CustomMessage":"Exception while executing repair step Install dependencies for llm app"}} - ERROR: Failed to install python dependencies: Failed to create python venv: python3 -m venv ./python returned The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. apt install python3.10-venv You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment. Failing command: /app/data/apps/llm/python/bin/python3 ...Thanks for any info to solve this

https://apps.nextcloud.com/apps/llm
https://apps.nextcloud.com/apps/assistant -
I don't fully understand the question. But there's a pissible alternative setup skipping the LLM integration:
- Nextcloud Assistant
- OpenAI/LocalAI integration
- LocalAI server (cloudron wishlist ?)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login