[GH-ISSUE #269] [Bug]: Python 3.10 ImportError #168

Closed
opened 2026-05-06 12:26:38 +02:00 by BreizhHardware · 1 comment

Originally created by @stephenpapierski on GitHub (Feb 4, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/269

Originally assigned to: @maziggy on GitHub.

Bug Description

Requirements currently state "Python 3.10+ (3.11/3.12 recommended)", but trying to run on Python 3.10.12 results in

ImportError: cannot import name 'UTC' from 'datetime' (/usr/lib/python3.10/datetime.py)

Per https://docs.python.org/3/library/datetime.html#datetime.UTC, the UTC alias was added in version 3.11

Image

Expected Behavior

Run on Python 3.10, or docs to say Python 3.11+

Steps to Reproduce

Clone and setup

git clone https://github.com/maziggy/bambuddy.git
cd bambuddy
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Run

uvicorn backend.app.main:app --host 0.0.0.0 --port 8000

Printer Model

Not printer-related

Bambuddy Version

0.1.8b

Printer Firmware Version

N/A

Installation Method

Manual (git clone)

Operating System

Linux (Ubuntu/Debian)

Relevant Logs / Support Package


Screenshots

No response

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this bug hasn't already been reported
  • I am using the latest version of Bambuddy
  • My printer is set to LAN Only mode
Originally created by @stephenpapierski on GitHub (Feb 4, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/269 Originally assigned to: @maziggy on GitHub. ### Bug Description Requirements currently state "Python 3.10+ (3.11/3.12 recommended)", but trying to run on Python 3.10.12 results in ``` ImportError: cannot import name 'UTC' from 'datetime' (/usr/lib/python3.10/datetime.py) ``` Per https://docs.python.org/3/library/datetime.html#datetime.UTC, the UTC alias was added in version 3.11 <img width="818" height="101" alt="Image" src="https://github.com/user-attachments/assets/93483d97-3598-4b86-9897-adc44b18e6c4" /> ### Expected Behavior Run on Python 3.10, or docs to say Python 3.11+ ### Steps to Reproduce # Clone and setup git clone https://github.com/maziggy/bambuddy.git cd bambuddy python3 -m venv venv source venv/bin/activate pip install -r requirements.txt # Run uvicorn backend.app.main:app --host 0.0.0.0 --port 8000 ### Printer Model Not printer-related ### Bambuddy Version 0.1.8b ### Printer Firmware Version N/A ### Installation Method Manual (git clone) ### Operating System Linux (Ubuntu/Debian) ### Relevant Logs / Support Package ```shell ``` ### Screenshots _No response_ ### Additional Context _No response_ ### Checklist - [x] I have searched existing issues to ensure this bug hasn't already been reported - [x] I am using the latest version of Bambuddy - [x] My printer is set to LAN Only mode
BreizhHardware 2026-05-06 12:26:38 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@maziggy commented on GitHub (Feb 5, 2026):

Fixed in branch 0.1.8b.

<!-- gh-comment-id:3851382738 --> @maziggy commented on GitHub (Feb 5, 2026): Fixed in branch 0.1.8b.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy#168
No description provided.