Skip to content

Update Dockerfile to use Python 3.13#10

Merged
piiq merged 2 commits intomainfrom
dockerfile-patch
Mar 12, 2026
Merged

Update Dockerfile to use Python 3.13#10
piiq merged 2 commits intomainfrom
dockerfile-patch

Conversation

@piiq
Copy link
Owner

@piiq piiq commented Mar 12, 2026

This PR resolves deployment and runtime issues encountered after the Python 3.13 migration.

Key Changes:

  • Python 3.13 Migration: Updated the Dockerfile to use Python 3.13 in both builder and runtime stages.
  • Explicit packaging Dependency: Added packaging as a direct dependency. This resolves a ModuleNotFoundError: No module named 'packaging' encountered in production builds.
  • Async Generator Fix: Replaced a generator expression in allocator_bot/api.py with an explicit async generator function. This fixes a RuntimeError: async generator raised StopAsyncIteration that occurred in Python 3.13 when handling streaming SSE responses.

Verification:

  • Local Docker Build: Successfully built image allocator-bot:test.
  • Runtime Test: Verified that the container starts correctly and loads all modules.
  • Logic Test: Verified that the StopAsyncIteration error is resolved and streaming works correctly in Python 3.13.

@piiq piiq merged commit b83b6d4 into main Mar 12, 2026
1 check passed
@piiq piiq deleted the dockerfile-patch branch March 12, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant