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

Running example throws exception #26

Closed
philvarner opened this issue Jan 23, 2023 · 3 comments
Closed

Running example throws exception #26

philvarner opened this issue Jan 23, 2023 · 3 comments

Comments

@philvarner
Copy link

Running the example in the README

aws s3 cp --request-payer requester s3://naip-analytic/va/2018/60cm/fgdc/37077/m_3707763_se_18_060_20180825.txt .
export AWS_REQUEST_PAYER='requester'
stac naip create-item --fgdc m_3707763_se_18_060_20180825.txt \
  VA 2018 s3://naip-analytic/va/2018/60cm/rgbir_cog/37077/m_3707763_se_18_060_20180825.tif \
  json-dest/

Throws the exception:

File "/Users/philvarner/.pyenv/versions/3.9.14/lib/python3.9/site-packages/stactools/naip/stac.py", line 105, in create_item
    fgdc_metadata_text = pystac.STAC_IO.read_text(fgdc_metadata_href)
AttributeError: module 'pystac' has no attribute 'STAC_IO'
@philvarner
Copy link
Author

Issue seems to be that the stactools-naip package was last published 1.5 years ago to pypi?

@geomatician
Copy link
Contributor

geomatician commented Feb 1, 2023

This issue can be closed as the package was updated to v 0.2.0 through PR #31

@gadomski
Copy link
Contributor

gadomski commented Feb 1, 2023

Confirmed, example works for me. Closing.

@gadomski gadomski closed this as completed Feb 1, 2023
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

3 participants