NREL / rex

REsource eXtraction Tool (rex)
https://nrel.github.io/rex
BSD 3-Clause "New" or "Revised" License
20 stars 10 forks source link

ValueError: no endpoint set #122

Closed fengcong1992 closed 2 years ago

fengcong1992 commented 2 years ago

Bug Description A clear and concise description of what the bug is.

Full Traceback Traceback (most recent call last): File "", line 1, in File "/Users/cfeng/Library/Python/3.7/lib/python/site-packages/rex/resource_extraction/resource_extraction.py", line 79, in init group=group, hsds=hsds, hsds_kwargs=hsds_kwargs) File "/Users/cfeng/Library/Python/3.7/lib/python/site-packages/rex/renewable_resource.py", line 381, in init group=group, hsds=hsds, hsds_kwargs=hsds_kwargs) File "/Users/cfeng/Library/Python/3.7/lib/python/site-packages/rex/resource.py", line 576, in init **hsds_kwargs) File "/Users/cfeng/Library/Python/3.7/lib/python/site-packages/h5pyd/_hl/files.py", line 217, in init api_key=api_key, use_session=use_session, use_cache=use_cache, use_shared_mem=use_shared_mem, logger=logger, retries=retries) File "/Users/cfeng/Library/Python/3.7/lib/python/site-packages/h5pyd/_hl/httpconn.py", line 195, in init raise ValueError(msg) ValueError: no endpoint set

Code Sample A copy-pastable example if possible

from rex import WindX
import h5pyd

wtk_file = '/nrel/wtk/conus/wtk_conus_2013.h5'
with WindX(wtk_file, hsds=True) as f:
    meta = f.meta
grantbuster commented 2 years ago

@fengcong1992 in order to use HSDS you need to configure your HSDS endpoint:

https://github.com/NREL/hsds-examples