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

Unrecognized STAC collection type <class 'pystac.item_collection.ItemCollection'> #179

Open
letmaik opened this issue Sep 20, 2022 · 4 comments

Comments

@letmaik
Copy link

letmaik commented Sep 20, 2022

I was following the basic example from the docs https://stackstac.readthedocs.io/en/latest/basic.html but it falls over at stackstac.stack(items):

TypeError: Unrecognized STAC collection type <class 'pystac.item_collection.ItemCollection'>: <pystac.item_collection.ItemCollection object at 0x000001C57CB0BCD0>

@gjoseph92
Copy link
Owner

Can you share the versions of stackstac and pystac you have installed?

@letmaik
Copy link
Author

letmaik commented Sep 22, 2022

stackstac==0.4.3
pystac==1.6.1
pystac-client==0.5.0

@rbavery
Copy link

rbavery commented Sep 22, 2022

With the following versions, the example works for me

stackstac==0.4.3
pystac==1.4.0
pystac-client==0.5.1

so it seems like it could be related to how the newest version of pystac returns an item collection with a different type

@scottyhq
Copy link
Contributor

Works fine for me with latest versions. This is a duplicate of #124. @letmaik it's likely older versions of pystac/stackstac that somehow are getting picked up in your environment. A full traceback or output of conda list would be helpful to know for sure...

%load_ext watermark
%watermark --iversions
pystac       : 1.6.1
pystac_client: 0.5.0
stackstac    : 0.4.3

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

4 participants