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
Running on Windows fails silently due to certificate verification problem #21
Comments
Dear @bakunin75, thanks for writing in. We have been running dwdweather2 on Python 3.7.4 and it worked well so far, see #7 (comment). Invoking the command you outlined above gives us:
You might want to add the With kind regards, |
This observation could also indicate there might be network connectivity problems? |
Thanks for the replies. I'm curious, which OS are you running on? Upon further investigation, I tracked the problem to the following call: I created a minimal example (windows).
This one throws |
I am running macOS 10.13.6.
Strange thing. Maybe some CA certificates are not properly installed on your machine or it is really about connectivity woes on your side. Will you be able to check using a different internet uplink if you get the chance to?
If nothing helps for you or other users on Windows, I might actually consider this if nobody objects to it. |
I will try that, but probably don't get the chance until the weekend. It's possible that some company firewall/proxy or whatever is causing this problem. If not this issue may be linked to pyca/pyopenssl#823 (see first reply), but I can't work that into my minimal example. I wonder if anyone has ever run this module successfully on windows before? |
Btw the dwdbulk package mentioned in #22 (comment) suffers from the same SSL issue on windows (which is not supported anyways). I've tested both modules on a linux VM and both work fine. So probably won't investigate further on the windows front and just stick to linux.. |
Dear @bakunin75, thanks for your answer. While I was thinking about closing this issue, I believe we should keep it open for a while. This error really should not silently swallow the issue with certificate verification. For all others running the same thing: As
in order to work around that problem. With kind regards, |
All right, thanks! |
Trying to get dwdweather 0.11.1 running on Python 3.7.4.
Problem:
Issuing the command
dwdweather weather 02667 20190717T11 --resolution hourly --categories air_temperature
leads to
2020-01-07 16:33:48,803 [dwdweather.client ] INFO : Requesting https://opendata.dwd.de/climate_environment/CDC/observations_germany/climate/hourly/air_temperature/recent
2020-01-07 16:33:48,928 [dwdweather.client ] WARNING: Station "2667" has no data for category "air_temperature"
The issue is also present when importing DwdWeather in python using the minimal example in the readme.
I tracked the problem to the client.py. For some reason the
find_resource_file
function inget_measurements
gets stuck in the try block, but there is no Error raised.dwdweather2/dwdweather/client.py
Line 129 in 37426b8
The text was updated successfully, but these errors were encountered: