UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    venv installation

    Scheduled Pinned Locked Moved App Development
    5 Posts 3 Posters 2.5k Views 1 Watching
    Loading More Posts
    • 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.
    • C Offline
      chaospredictor
      last edited by chaospredictor

      I'm trying to install venv but getting errors, same happens with pip.

      phablet@ubuntu-phablet:~$ sudo apt-get install -y python3-venv
      [sudo] password for phablet:
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Package python3-venv is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source

      W: Not using locking for read only lock file /var/lib/dpkg/lock-frontend
      W: Not using locking for read only lock file /var/lib/dpkg/lock
      E: Package 'python3-venv' has no installation candidate
      phablet@ubuntu-phablet:~$ sudo apt-get install -y python3-pip
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      W: Not using locking for read only lock file /var/lib/dpkg/lock-frontend
      W: Not using locking for read only lock file /var/lib/dpkg/lock
      E: Unable to locate package python3-pip
      phablet@ubuntu-phablet:~$

      Any suggestions?

      lduboeufL Eric HE 2 Replies Last reply Reply Quote 0
      • lduboeufL Offline
        lduboeuf @chaospredictor
        last edited by

        @chaospredictor
        Maybe you can tell us what you are willing to do ?
        Here are some usefull informations: https://ubports.com/blog/ubports-news-1/how-ubuntu-touch-works-3896

        C 1 Reply Last reply Reply Quote 0
        • Eric HE Offline
          Eric H @chaospredictor
          last edited by Eric H

          @chaospredictor
          One option I've tested is to use Crackle to install the version of python you want
          After that, you can use pip and venv.

          Crackle : https://gitlab.com/tuxecure/crackle-apt/crackle

          • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
          • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
          1 Reply Last reply Reply Quote 2
          • C Offline
            chaospredictor @lduboeuf
            last edited by

            @lduboeuf I'm building some python web app with local server. I would like it to be deployed on Ubuntu touch. And now, I just tried to run it by installing required python frameworks.

            lduboeufL 1 Reply Last reply Reply Quote 0
            • lduboeufL Offline
              lduboeuf @chaospredictor
              last edited by

              @chaospredictor said in venv installation:

              @lduboeuf I'm building some python web app with local server. I would like it to be deployed on Ubuntu touch. And now, I just tried to run it by installing required python frameworks.

              i don't know if it is possible to embed a custom python version within your click package, also running a web app server will probably need unrestricted access policy, will be hard to share it on open store later.
              But someone with better knowledge need to answer

              1 Reply Last reply Reply Quote 0

              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
              • First post
                Last post