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

"ConformanceError: API does not conform" #48

Closed
Holmes2020 opened this issue Jul 15, 2021 · 2 comments
Closed

"ConformanceError: API does not conform" #48

Holmes2020 opened this issue Jul 15, 2021 · 2 comments

Comments

@Holmes2020
Copy link

Hi,

I am new to EO data and have started following your 'Cloudless Mosaic' tutorial to familiarise myself with accessing satellite data through the api. I have pip installed the pystac_client, however when I run the following command:

stac = pystac_client.Client.open("https://planetarycomputer.microsoft.com/api/stac/v1")

I receive the error:

ConformanceError: API does not conform to {ConformanceClasses.STAC_API_CORE}. Must contain one of the following URIs to conform (preferably the first):
https://api.stacspec.org/v1.0.0-beta.1/core
http://stacspec.org/spec/api/1.0.0-beta.1/core.

Any help or guidance would be greatly appreciated. Thank you.

Ben

@TomAugspurger
Copy link
Contributor

Hi Ben,

Sorry about the disruption. As noted in our changelog our catalog is now STAC 1.0, but the fully-released pystac and pystac-client aren't yet compatible with that. Both those libraries have release candidates available, which you can install with

$ pip install --pre --upgrade pystac pystac-client

or you can use the docker images we use in our hub (which include those versions)

$ docker pull mcr.microsoft.com/planetary-computer/python

@Holmes2020
Copy link
Author

Hi Tom,

Brilliant, that fixed the problem! Really appreciate the quick response.

Best wishes,
Ben

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