Closed ghost closed 8 years ago
Hello @lardconcepts thanks for reporting this!
It's a known issue - I'm going to release the lib in a few days and this is going to be fixed also
Thanks!
Fixed with 5c64a0436b5082eb140d9b31800431219bdc5d42
Fixed with 5c64a04
Hello I face the issue too, but I have the newest version of the library. Can you please help to deal with it.
@Dnatalyaalex I've just tested it, it's working. Probably the OWM API was unstable/crashed at the moment you've run your code Can you try again pls ?
@Dnatalyaalex I've just tested it, it's working. Probably the OWM API was unstable/crashed at the moment you've run your code Can you try again pls ?
Maybe you can help me... When I run script on my laptop it works, but when I use rundeck, it doesn't work. I noticed Rundeck uses Python 2.7 though I can run python 3.7 usin terminal. Could an error occur due to the wrong version of Python, and can I somehow indicate in the script which version it should use for this script? I have a lot of jobs on rundeck and I'm afraid that they will fall down after upgrading Pyton to 3.7 version. I installed urlib for python3.
Sorry for the primitive questions, I'm new to Python.
Pls post here the full error trace (the one you see printend in your logs or on-screen), so I can understand what happens
Also pls specify the version of PyOWM that you're currently usign (eg with
pip show pyowm
Have you tried calling any other PyOWM function (eg. retrieve observed or forecast weather) ? Do you get errors? Or is it only with is_API_online
function?
Pls post here the full error trace (the one you see printend in your logs or on-screen), so I can understand what happens
Also pls specify the version of PyOWM that you're currently usign (eg with
pip show pyowm
Have you tried calling any other PyOWM function (eg. retrieve observed or forecast weather) ? Do you get errors? Or is it only with
is_API_online
function?
Oh God I'm very sorry, I did not notice that this is a question on a specific function. I though just about urllib.error. Sorry that I spent your time
Anyway I post the trace, maybe somebody can help me
15:00:11 | | | File "/tmp/18444-76852-rundeck.dev-pro.net-dispatch-script.tmp.sh", line 26, in
15:00:11 | | | urllib2.HTTPError: HTTP Error 500: Internal Server Error
15:00:12 | | | Result: 1 15:00:12 | | | Failed: NonZeroResultCode: Result code was 1 15:00:12 | | | Execution failed: 76852 in project Redmine_Issue_Tracking: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [rundeck.dev-pro.net: NonZeroResultCode: Result code was 1 + {dataContext=MultiDataContextImpl(map={ContextView(step:1, node:rundeck.dev-pro.net)=BaseDataContext{{exec={exitCode=0}}}, ContextView(node:rundeck.dev-pro.net)=BaseDataContext{{exec={exitCode=0}}}}, base=null)} ]},
Node failures: {rundeck.dev-pro.net=[NonZeroResultCode: Result code was 1 + {dataContext=MultiDataContextImpl(map={ContextView(step:1, node:rundeck.dev-pro.net)=BaseDataContext{{exec={exitCode=0}}}, ContextView(node:rundeck.dev-pro.net)=BaseDataContext{{exec={exitCode=0}}}}, base=null)} ]}, status: failed]
Then sorry, but I don't understand what role PyOWM plays into this issue :-S
Your error log only tells me that you get a 500 error from the server, which is then not handled by urllib
Thanks for this great library. However, a couple of things:
For the code
I get
However, the rest works in that I can retrieve a valid weather forecast, apart from this other issue I just logged https://github.com/csparpa/pyowm/issues/132
Thanks!