Giter Club home page Giter Club logo

Comments (6)

cp2004 avatar cp2004 commented on May 23, 2024 1

Thanks for reporting the error @ElDavoo - I have reverted the changes. It may take a short while for caching to expire, the new script version is 2.1.16. Just in case you felt like using it again.

from octoprint-upgrade-to-py3.

cp2004 avatar cp2004 commented on May 23, 2024

Could you try running python3 -m venv test-venv and report the results?

from octoprint-upgrade-to-py3.

ElDavoo avatar ElDavoo commented on May 23, 2024

Creating new Python 3 environment...
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-get install python3-venv

You may need to use sudo with that command. After installing the python3-venv

package, recreate your virtual environment.

Failing command: ['/home/pi/oprint/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']


Soooooooooooo you need to install python3-venv and it will work.

I'm using latest octoprint and octopi 0.17.0.

Documentation should be updated.

from octoprint-upgrade-to-py3.

cp2004 avatar cp2004 commented on May 23, 2024

This was a recent change - #42 - I will revert it, the previous one worked on more systems apparently.

A smarter handling of the failures that made me want to switch it is probably smart.

from octoprint-upgrade-to-py3.

ElDavoo avatar ElDavoo commented on May 23, 2024

It's still installing plugins right now because of #44 :)

from octoprint-upgrade-to-py3.

discojon avatar discojon commented on May 23, 2024

I'm seeing this same issue today with the script. The output of

python3 -m venv test-venv

is

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-get install python3-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/home/pi/test-venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

Following that I run

sudo apt install python3-venv

and get

Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-venv is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

from octoprint-upgrade-to-py3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.