algorithm-nexus[product]==0.2.2 broken on fresh pip install: torchgeo 0.10.0 incompatibility
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
-
torchgeo 0.10.0 (released 2026-08-14) renamed
torchgeo.trainers→torchgeo.tasks(torchgeo PR #3887). Thetrainers.utilssubmodule was not shimmed with a deprecation alias — it was simply removed. -
terratorch 1.2.10 (the version pinned by algorithm-nexus) imports
from torchgeo.trainers import utilsin multiple files (timm_model_factory.py,cli_tools.py,base_task.py,reconstruction_tasks.py,wxc_downscaling_task.py). Itspyproject.tomldeclarestorchgeoas a dependency with no upper bound. -
algorithm-nexus 0.2.2 pins
terratorch[vllm]==1.2.10in the[product]extra but has no directtorchgeoversion constraint. Therequirements-product.txtlock file pinstorchgeo==0.9.0, but a barepip install algorithm-nexus[product]==0.2.2(without the lock file) lets pip resolvetorchgeo==0.10.0, which breaks the import.
Upstream Status
- terratorch PR #1222 (merged 2026-08-18 to
main) pinstorchgeo>=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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của IBM/algorithm-nexus
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
IBM/algorithm-nexus#159 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feat: enabling associating experiment results to a benchmark instance when number of instance properties exceeds experiment propertiesCó thể đã có người làm @christian-pinto đã nhận hôm nay. Đang mởenhancement
IBM/algorithm-nexus#282 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feat: allow specifying multiple values for properties in an instanceCó thể đã có người làm @christian-pinto đã nhận 1 ngày trước. Đang mởenhancement
IBM/algorithm-nexus#277 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs: improve readmeĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
IBM/algorithm-nexus#276 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
IBM/algorithm-nexus#254 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của IBM/algorithm-nexus
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
https://search.utilibre.orgĐang mởinstance instance add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
searxng/searx-instances#941 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
FluidNumerics/fluid-walk-blocker#89 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày