microsoft / microsoft/PlanetaryComputerExamples

module 'pystac_client' has no attribute 'ItemCollection'

Open
#288 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
455
Forks
225
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the cloudless mosaic Sentinel-2 tutorial linked in the issue and the notebook cell containing pystac_client.ItemCollection. Check the notebook's imports and installed package APIs to identify the supported ItemCollection entry point, then rerun the example through the stackstac processing step and confirm the AttributeError is gone.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
data, documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.