pyIncore is a component of IN-CORE. It is a python package consisting of two primary components: 1) a set of service classes to interact with the IN-CORE web services, and 2) IN-CORE analyses . The pyIncore allows users to apply various hazards to infrastructure in selected areas, propagating the effect of physical infrastructure damage and loss of functionality to social and economic impacts.
Mozilla Public License 2.0
25
stars
7
forks
source link
499 Client Error: status code 499 for url on Joplin_testbed.ipynb #540
Prior to this error I had gotten:
ERROR 1: PROJ: proj_create_from_database: Open of /opt/conda/share/proj failed
Connection successful to IN-CORE services. pyIncore version detected: 1.17.0
right after I had done the client = InCoreClient() part.
However the sections after that for doing the visualization of buildings by archetype and tornado path worked as well as calculating the fragility curves.
The code block that I got the error on was this:
bldg_dmg.run_analysis() # Run the building damage module to get building damage results for Joplin in a .csv file format.
# The building damage results herein are referred to fragilities at three damage states (moderate,
# heavy, complete) for 28152 buildings located in Joplin that fall within the tornado path or not.
building_dmg_result = bldg_dmg.get_output_dataset('ds_result')
# Convert dataset to Pandas DataFrame
df_bldg_dmg = building_dmg_result.get_dataframe_from_csv()
# Display top 5 rows of output data
df_bldg_dmg.head()
I tried shutting down Jupyter and killing the kernel as well as redownloading the .ipynb but the error persisted. Additionally I tried checking the version of pyproject
import pyproj
print(pyproj.__version__)` and setting the environment `import os
os.environ['PROJ_LIB'] = '/opt/conda/share/proj'
print('done')
which got rid of the ERROR 1 but as I continued on with the code it still broke at hte point mentioned above. Attached is the full error in case that is helpful:
Thank you very much for your time and help!
Thanks for reporting this. I'm going to close this issue since it's a networking issue that is being investigated. If you are on the IN-CORE mailing list you should get a notification when the issue is resolved.
Hi I was running this notebook fine yesterday and the day before https://incore.ncsa.illinois.edu/doc/incore/notebooks/Joplin_testbed/Joplin_testbed.html
But today I keep getting this error: HTTPError: 499 Client Error: status code 499 for url: https://incore.ncsa.illinois.edu/hazard/api/tornadoes/5d07cbeab9219c065b080930/values
Prior to this error I had gotten: ERROR 1: PROJ: proj_create_from_database: Open of /opt/conda/share/proj failed Connection successful to IN-CORE services. pyIncore version detected: 1.17.0 right after I had done the client = InCoreClient() part.
However the sections after that for doing the visualization of buildings by archetype and tornado path worked as well as calculating the fragility curves.
The code block that I got the error on was this:
I tried shutting down Jupyter and killing the kernel as well as redownloading the .ipynb but the error persisted. Additionally I tried checking the version of pyproject
which got rid of the ERROR 1 but as I continued on with the code it still broke at hte point mentioned above. Attached is the full error in case that is helpful: Thank you very much for your time and help!