<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[NC Assistant + LLM python venv issue]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">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 <code>occ maintenance:repair</code> where I saw the pyhton issue:</p>
<pre><code># 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":"-&gt;"},{"file":"/app/code/lib/private/Repair.php","line":127,"function":"run","class":"OCA\\Llm\\Migration\\InstallDeps","type":"-&gt;"},{"file":"/app/code/core/Command/Maintenance/Repair.php","line":123,"function":"run","class":"OC\\Repair","type":"-&gt;"},{"file":"/app/code/3rdparty/symfony/console/Command/Command.php","line":298,"function":"execute","class":"OC\\Core\\Command\\Maintenance\\Repair","type":"-&gt;"},{"file":"/app/code/3rdparty/symfony/console/Application.php","line":1040,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"-&gt;"},{"file":"/app/code/3rdparty/symfony/console/Application.php","line":301,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"-&gt;"},{"file":"/app/code/3rdparty/symfony/console/Application.php","line":171,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"-&gt;"},{"file":"/app/code/lib/private/Console/Application.php","line":211,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"-&gt;"},{"file":"/app/code/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"-&gt;"},{"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":"-&gt;"},{"file":"/app/code/lib/private/Repair.php","line":127,"function":"run","class":"OCA\\Llm\\Migration\\InstallDeps","type":"-&gt;"},{"file":"/app/code/core/Command/Maintenance/Repair.php","line":123,"function":"run","class":"OC\\Repair","type":"-&gt;"},{"file":"/app/code/3rdparty/symfony/console/Command/Command.php","line":298,"function":"execute","class":"OC\\Core\\Command\\Maintenance\\Repair","type":"-&gt;"},{"file":"/app/code/3rdparty/symfony/console/Application.php","line":1040,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"-&gt;"},{"file":"/app/code/3rdparty/symfony/console/Application.php","line":301,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"-&gt;"},{"file":"/app/code/3rdparty/symfony/console/Application.php","line":171,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"-&gt;"},{"file":"/app/code/lib/private/Console/Application.php","line":211,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"-&gt;"},{"file":"/app/code/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"-&gt;"},{"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
...
</code></pre>
<p dir="auto">Thanks for any info to solve this <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=fed68e33a46" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title="(:" alt="🙂" /></p>
<p dir="auto"><a href="https://apps.nextcloud.com/apps/llm" target="_blank" rel="noopener noreferrer nofollow ugc">https://apps.nextcloud.com/apps/llm</a><br />
<a href="https://apps.nextcloud.com/apps/assistant" target="_blank" rel="noopener noreferrer nofollow ugc">https://apps.nextcloud.com/apps/assistant</a></p>
]]></description><link>https://forum.cloudron.io/topic/10923/nc-assistant-llm-python-venv-issue</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 04:19:45 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/10923.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Jan 2024 21:19:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NC Assistant + LLM python venv issue on Thu, 25 Jan 2024 00:39:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mononym" aria-label="Profile: mononym">@<bdi>mononym</bdi></a> right use the LAMP app to install and integrate the parts you need. There's also n8n if needed.</p>
]]></description><link>https://forum.cloudron.io/post/81800</link><guid isPermaLink="true">https://forum.cloudron.io/post/81800</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Thu, 25 Jan 2024 00:39:29 GMT</pubDate></item><item><title><![CDATA[Reply to NC Assistant + LLM python venv issue on Thu, 25 Jan 2024 00:28:32 GMT]]></title><description><![CDATA[<p dir="auto">I don't fully understand the question. But there's a pissible alternative setup skipping the LLM integration:</p>
<ul>
<li>Nextcloud Assistant</li>
<li>OpenAI/LocalAI integration</li>
<li>LocalAI server (cloudron wishlist ?)</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/81799</link><guid isPermaLink="true">https://forum.cloudron.io/post/81799</guid><dc:creator><![CDATA[mononym]]></dc:creator><pubDate>Thu, 25 Jan 2024 00:28:32 GMT</pubDate></item><item><title><![CDATA[Reply to NC Assistant + LLM python venv issue on Wed, 24 Jan 2024 19:36:46 GMT]]></title><description><![CDATA[<p dir="auto">Can you perhaps do it as a sidecar LAMP app for the extras you need?</p>
]]></description><link>https://forum.cloudron.io/post/81789</link><guid isPermaLink="true">https://forum.cloudron.io/post/81789</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Wed, 24 Jan 2024 19:36:46 GMT</pubDate></item><item><title><![CDATA[Reply to NC Assistant + LLM python venv issue on Wed, 24 Jan 2024 08:13:13 GMT]]></title><description><![CDATA[<p dir="auto">Looks like it needs python and venv setup. This won't work in the Cloudron package. You can't install additional packages in the readonly filesystem.</p>
]]></description><link>https://forum.cloudron.io/post/81723</link><guid isPermaLink="true">https://forum.cloudron.io/post/81723</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 24 Jan 2024 08:13:13 GMT</pubDate></item></channel></rss>