Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

release_v2 requires python >= 3.10

Đang mở Phù hợp với người mới
#314 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
68/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
documentation

Hướng nghiên cứu

Đọc README trên các branch main và release_v2, bắt đầu với các tuyên bố hiện có về khả năng tương thích với Python. Cập nhật cả hai để yêu cầu Python 3.10 trở lên và giải thích rằng việc gửi training-job của release_v2 không thành công trên các phiên bản cũ hơn; hoàn thành có nghĩa là hướng dẫn về khả năng tương thích khớp với hành vi được báo cáo trên cả hai branch.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The readme states (in both main and release_v2) that python 3.8+ is compatible but with python < 3.10, submitting training jobs in the release_v2 branch fails with:

Traceback (most recent call last):
  File "/Users/njourdan/workspace/cli_test/.venv/bin/hyperpod", line 3, in <module>
    from hyperpod_cli.cli import cli
  File "/Users/njourdan/workspace/cli_test/sagemaker-hyperpod-cli/src/hyperpod_cli/cli.py", line 20, in <module>
    from hyperpod_cli.commands.job import (
  File "/Users/njourdan/workspace/cli_test/sagemaker-hyperpod-cli/src/hyperpod_cli/commands/job.py", line 90, in <module>
    from hyperpod_cli.validators.job_validator import (
  File "/Users/njourdan/workspace/cli_test/sagemaker-hyperpod-cli/src/hyperpod_cli/validators/job_validator.py", line 36, in <module>
    from hyperpod_cli.validators.recipe_models import HfRecipeSchema, NovaRecipeSchema, NeuronHfRecipeSchema, NovaEvaluationRecipeSchema
  File "/Users/njourdan/workspace/cli_test/sagemaker-hyperpod-cli/src/hyperpod_cli/validators/recipe_models/__init__.py", line 1, in <module>
    from hyperpod_cli.validators.recipe_models.hf.model import HfRecipeSchema
  File "/Users/njourdan/workspace/cli_test/sagemaker-hyperpod-cli/src/hyperpod_cli/validators/recipe_models/hf/model.py", line 15, in <module>
    class TrainerConfig(BaseModel):
  File "/Users/njourdan/workspace/cli_test/sagemaker-hyperpod-cli/src/hyperpod_cli/validators/recipe_models/hf/model.py", line 18, in TrainerConfig
    devices: Optional[int|str] = None
TypeError: unsupported operand type(s) for |: 'type' and 'type'

This must be stated in the readme to avoid confusion and delays. The error is non-descriptive regarding python version compatibility.

Ngôn ngữ chính
Python
Star
41
Fork
95
Merge trung bình
14 giờ 48 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aws/sagemaker-hyperpod-cli

Tất cả issue của aws/sagemaker-hyperpod-cli

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.