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

algorithm-nexus[product]==0.2.2 broken on fresh pip install: torchgeo 0.10.0 incompatibility

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
build-system

Hướng nghiên cứu

Kiểm tra khai báo dependency của [product] và requirements-product.txt, sau đó tái hiện lỗi bằng pip install sạch và lệnh import terratorch. So sánh việc phân giải các dependency chưa được khóa với workaround torchgeo<0.10 đang hoạt động và trạng thái tương thích upstream. Được xem là hoàn tất khi một lượt cài đặt mới algorithm-nexus[product]==0.2.2 hoàn thành và các import của plugin vLLM cùng phần đăng ký Terratorch đều thành công.

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

Mô tả

Summary

A fresh pip install algorithm-nexus[product]==0.2.2 fails at runtime because pip resolves torchgeo==0.10.0, which is incompatible with the pinned terratorch[vllm]==1.2.10.

Error

ImportError: cannot import name 'utils' from 'torchgeo.trainers'
(/opt/vllm/lib64/python3.12/site-packages/torchgeo/trainers/__init__.py)

This breaks both the terratorch_fix vLLM plugin and the Terratorch model architecture registration, making geospatial models (e.g. ibm-nasa-geospatial/Prithvi-EO-2.0-300M-TL-Sen1Floods11) unservable via vLLM.

Root Cause

  1. torchgeo 0.10.0 (released 2026-08-14) renamed torchgeo.trainers → torchgeo.tasks (torchgeo PR #3887). The trainers.utils submodule was not shimmed with a deprecation alias — it was simply removed.

  2. terratorch 1.2.10 (the version pinned by algorithm-nexus) imports from torchgeo.trainers import utils in multiple files (timm_model_factory.py, cli_tools.py, base_task.py, reconstruction_tasks.py, wxc_downscaling_task.py). Its pyproject.toml declares torchgeo as a dependency with no upper bound.

  3. algorithm-nexus 0.2.2 pins terratorch[vllm]==1.2.10 in the [product] extra but has no direct torchgeo version constraint. The requirements-product.txt lock file pins torchgeo==0.9.0, but a bare pip install algorithm-nexus[product]==0.2.2 (without the lock file) lets pip resolve torchgeo==0.10.0, which breaks the import.

Upstream Status

  • terratorch PR #1222 (merged 2026-08-18 to main) pins torchgeo>=0.9.0,<0.10 — but this fix is not in any release. Latest release is still v1.2.10 (2026-07-15), which predates the fix.
  • terratorch PR #1221 (open) does a full API migration to support torchgeo 0.10.

Reproduction

# In a clean environment or container (e.g. quay.io/vllm/automation-vllm:cuda-*)
pip install algorithm-nexus[product]==0.2.2

# This fails:
python -c "from terratorch.vllm.plugins.general import register_terratorch_fix"
# ImportError: cannot import name 'utils' from 'torchgeo.trainers'

# Workaround:
pip install "torchgeo<0.10"
# Now the import succeeds
Ngôn ngữ chính
Python
Star
3
Fork
7
Merge trung bình
15 giờ 34 phút
Pull request đã merge (30 ngày)
18

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 IBM/algorithm-nexus

Tất cả issue của IBM/algorithm-nexus

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.