Skip to content

SSL Certificate error while running cdlexample01.py #7

Description

@mahdipoor

I am trying to test run PyHSPF on my windows machine with Python 3.6. All the simple test examples are working, but some of the more sophisticated ones not. Currently I am getting this error while trying to run cdlexample01.py

`File "C:\Research\PyHSPF-master\examples\gis\cdlexample01.py", line 58, in
cdlextractor.download_data(state, years)
File "C:\Users\AmIn\AppData\Local\Programs\Python\Python36\Lib\site-packages\pyhspf\preprocessing\cdlextractor.py", line 733, in download_data
request.urlretrieve(url, local, self.report)
File "C:\Users\AmIn\AppData\Local\Programs\Python\Python36\Lib\urllib\request.py", line 248, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "C:\Users\AmIn\AppData\Local\Programs\Python\Python36\Lib\urllib\request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\AmIn\AppData\Local\Programs\Python\Python36\Lib\urllib\request.py", line 526, in open
response = self._open(req, data)
File "C:\Users\AmIn\AppData\Local\Programs\Python\Python36\Lib\urllib\request.py", line 544, in _open
'_open', req)
File "C:\Users\AmIn\AppData\Local\Programs\Python\Python36\Lib\urllib\request.py", line 504, in _call_chain
result = func(*args)
File "C:\Users\AmIn\AppData\Local\Programs\Python\Python36\Lib\urllib\request.py", line 1361, in https_open
context=self._context, check_hostname=self._check_hostname)
File "C:\Users\AmIn\AppData\Local\Programs\Python\Python36\Lib\urllib\request.py", line 1320, in do_open
raise URLError(err)

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)>`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions