Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'pystac_client' has no attribute 'ItemCollection' #288

Open
Rudigithub12345 opened this issue Dec 23, 2023 · 1 comment
Open

module 'pystac_client' has no attribute 'ItemCollection' #288

Rudigithub12345 opened this issue Dec 23, 2023 · 1 comment

Comments

@Rudigithub12345
Copy link

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?

@TomAugspurger
Copy link
Contributor

I don't see signed_items = pystac_client.ItemCollection(...) in the link you provided. Can you double check that your link is correct? You should also check that you have the latest version of the PlanetaryComputerExamples repository. pystac_client used to have an ItemCollection, before it was moved to pystac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants