-
Notifications
You must be signed in to change notification settings - Fork 12
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
SSL Cert Verification Error #150
Comments
Not sure that this is related to #153, but it might be worth updating Do the following to update: pip install -U hydrotools._restclient |
Thank you guys for checking on this. Let me try it. I will also try to have a new clean python installation. |
I was unable to duplicate this issue using the latest version of |
That's good to hear @jarq6c. @amaes3owp, are you still facing an issue? Or can this be closed? |
I need a little more time to test. |
Here is my code: import os Import Hydrotools modulefrom hydrotools.nwis_client.iv import IVDataService def read_nwis_client():
--------------- MAIN --------------------if name == 'main': precip = read_nwis_client() print('Program completed successfully') I am still getting the error. I am reinstalling miniconda again and see if the problem goes away. |
This snippet worked for me. import os
import pandas as pd
from hydrotools.nwis_client.iv import IVDataService
def read_nwis_client():
print("Reading ")
service = IVDataService()
df = service.get(sites='01646500', startDT='2021-01-01', endDT='2021-02-01')
print(df.head())
return df
if __name__ == "__main__":
precip = read_nwis_client()
print('Program completed successfully') |
Good - We can close this ticket. Thanks! |
Good morning Jason -
I moved my evaluations from one machine to another during the weekend and was able to run some evaluations. When using the nwis client I got the following error.
ERROR: Unable to retrieve observations... EXITING: Cannot connect to host waterservices.usgs.gov:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)')]
I can not send you the exact code but it was a simple call like the following:
Any suggestions?
Thanks!
Alex
The text was updated successfully, but these errors were encountered: