Skip to content

[Request] OctoPi image with Python3 out-of-the-box #604

@OutsourcedGuru

Description

@OutsourcedGuru

What were you doing?

Like many of us, I'm trying to work with Python 3 to make sure that my plugins will weather the test of time.

So I setup a standard OctoPi-imaged rig, then basically:

  1. mv ~/oprint ~/oprint.py2
  2. virtualenv -p python3 oprint
  3. source oprint/bin/activate
  4. pip install --upgrade pip
  5. pip install https://get.octoprint.org/latest
    ERROR: Package 'OctoPrint' requires a different Python: 3.7.3 not in '>=2.7.9,<3'

Interesting fact: For whatever reasons, I've gone through this routine perhaps five times already, testing different scenarios and saving each to their own microSD.

Request

What might be nice is a turnkey OctoPi image which pulls the latest Buster Lite as well as the latest OctoPrint 1.4rc_something_ from the devel branch. In theory, it would still have the classic ~/oprint as the virtual environment location, just with Python 3.7.3 instead of Py2 throughout. Kudos if it's Pi4-friendly.

So basically—and with some instructions for how to pull this—one would:

  1. Use Etcher to pull from some URL this IMG
  2. Do the standard /boot/octopi-wpa-supplicant.txt thing
  3. Boot it up

Remoting in would reveal a vanilla OctoPrint installation, just now Python 3—savvy.

I would suggest that this would benefit people in the plugin development space in the interim period before OP 1.4 is released.

What did you expect to happen?

I'd forgotten that we don't get Python 3 support until 1.4 which isn't released to master yet. But I suppose I naively expected this to work.

What happened instead?

The scenario requires the would-be tester to be able to install some as-yet-released OctoPrint version on the devel branch.

Did the same happen when running OctoPrint in safe mode?

N/A

Version of OctoPi

Presumably it would have been 1.3.11 at that point for OctoPrint and this would have been the daily build which includes Buster.

Printer model & used firmware incl. version

N/A

Screenshot(s)/video(s) showing the problem:

N/A

I have read the FAQ.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions