microsoft / microsoft/PlanetaryComputerExamples

module 'pystac_client' has no attribute 'ItemCollection'

未關閉
#288 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Jupyter Notebook
星號
455
分支
225
PR 合併指標
30 天內沒有已合併 PR

描述

Hi

I run this example https://planetarycomputer.microsoft.com/docs/tutorials/cloudless-mosaic-sentinel2/
and i found following error:


AttributeError Traceback (most recent call last)
Cell In[23], line 1
----> 1 signed_items = pystac_client.ItemCollection([
2 planetary_computer.sign_assets(item) for item in items
3 ])
4 #print(signed_items)
5 data = (
6 stackstac.stack(
7 items,
(...)
13 .assign_coords(band=lambda x: x.common_name.rename("band")) # use common names
14 )

AttributeError: module 'pystac_client' has no attribute 'ItemCollection'

How to solve this problem?

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 issue 中連結的 cloudless mosaic Sentinel-2 教學,以及包含 pystac_client.ItemCollection 的 notebook 儲存格開始。檢查 notebook 的 imports 和已安裝套件的 API,以識別受支援的 ItemCollection 入口點,然後重新執行範例直到 stackstac 處理步驟,並確認 AttributeError 已消失。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
jupyter-notebook, python
領域
data, documentation
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。