Skip to content

Conversation

@rajjainl
Copy link
Owner

This pull request was generated by @kiro-agent 👻

Comment with /kiro fix to address specific feedback or /kiro all to address everything.
Learn about Kiro autonomous agent


Summary

This PR migrates the backend from Python 3.9 to Python 3.11 by updating the Dockerfile and dependency versions in requirements.txt.

Changes

Dockerfile Updates

  • Updated Python version from 3.9.23 to 3.11.9
  • Updated all python3.9 command references to python3.11
  • Updated libpython3.9.so.1.0 search patterns to libpython3.11.so.1.0

Dependencies Updated (requirements.txt)

Package Old Version New Version Reason
scikit-learn 1.0.2 1.3.2 Required for Python 3.11 support (min 1.1.0)
pyyaml 5.4.1 6.0.1 Better Python 3.11 compatibility
numpy 1.24.3 1.26.4 Optimized for Python 3.11
grpcio-tools 1.51.1 1.56.2 Aligned with grpcio version

Packages Requiring Manual Verification

  • dlr (Neo DLR) v1.10.0: May need custom build for Python 3.11 - verify wheel availability with AWS
  • Jetson.GPIO v2.0.21: Verify compatibility with Python 3.11 on your Jetson device

Testing Recommendations

  1. Build the Docker image and verify it completes successfully
  2. Run the backend application and verify all imports work
  3. Test DLR model loading functionality
  4. If using Jetson hardware, test GPIO functionality

Files Modified

  • src/backend/Dockerfile
  • src/backend/requirements.txt

## Dockerfile Changes:
- Updated Python version from 3.9.23 to 3.11.9
- Updated all python3.9 references to python3.11
- Updated libpython search patterns

## requirements.txt Changes:
- scikit-learn: 1.0.2 → 1.3.2 (required for Python 3.11 support)
- pyyaml: 5.4.1 → 6.0.1 (better Python 3.11 compatibility)
- numpy: 1.24.3 → 1.26.4 (optimized for Python 3.11)
- grpcio-tools: 1.51.1 → 1.56.2 (aligned with grpcio version)
- Added notes for dlr and Jetson.GPIO regarding Python 3.11 verification

## Packages requiring manual verification:
- dlr (Neo DLR): May need custom build for Python 3.11
- Jetson.GPIO: Verify compatibility on your Jetson device

Co-authored-by: rajjainl <182391521+rajjainl@users.noreply.github.com>
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.

3 participants