jgrss / geowombat

GeoWombat: Utilities for geospatial data
https://geowombat.readthedocs.io
MIT License
184 stars 10 forks source link

Stac import #287

Closed mmann1123 closed 6 months ago

mmann1123 commented 11 months ago

I am getting an error when importing open_stac @jgrss

from geowombat.core.stac import open_stac
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mmann1123/miniconda3/envs/test/lib/python3.10/site-packages/geowombat/core/stac.py", line 117, in <module>
    class _STACCatalogOpeners:
  File "/home/mmann1123/miniconda3/envs/test/lib/python3.10/site-packages/geowombat/core/stac.py", line 118, in _STACCatalogOpeners
    element84 = _Client.open
NameError: name '_Client' is not defined
jgrss commented 11 months ago

I cannot reproduce this off of main. Did you install the 'stac' extra? I created a new venv and installed locally via pip install .[stac].

mmann1123 commented 11 months ago

Yeah I did the conda forge stac install. I will try pip, maybe I messed something up with the conda buid?