Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. NC Assistant + LLM python venv issue

NC Assistant + LLM python venv issue

Scheduled Pinned Locked Moved Nextcloud
5 Posts 3 Posters 472 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mononym
    wrote on last edited by
    #1

    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:repair where 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

    1 Reply Last reply
    1
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      1
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #3

        Can you perhaps do it as a sidecar LAMP app for the extras you need?

        Conscious tech

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mononym
          wrote on last edited by
          #4

          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 ?)
          robiR 1 Reply Last reply
          0
          • M mononym

            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 ?)
            robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #5

            @mononym right use the LAMP app to install and integrate the parts you need. There's also n8n if needed.

            Conscious tech

            1 Reply Last reply
            1
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search