Closed intsco closed 5 years ago
@intsco do you get this error when trying to run this part more than once? please detail which parts raise this exception and when it works. it seems there is a problem with the api key for Object Storage
@omerb01 yes, it always works when I run it for the first time. I provided an example cell that triggers this error. What else would be useful to provide?
@intsco this is old PyWren version...we don't use "https://iam.ng.bluemix.net/" anymore
@intsco may be some issue with boto3...let me check this. It access wrong endpoint for some reason...we already fixed it, Are you sure this is most updated PyWren?
@gilv The installation script didn't really work for us. We ended up pulling the most recent changed from Github and installing PyWren
with pip locally. This seemed to solve most of the issues so far.
@intsco need to figure out what exactly failed...pip install -U didn't worked for you?
@intsco @gilv I finally found the source of the problem. To put you into context:
pw = pywren.ibm_cf_executor()
. Next times you create an executor, the first token is reused, as config dictionary is a mutable object, and all the changes within it are kept for the rest of the notebook (If you use config file, it does not happen).I'm almost sure that you leave the notebook open for more than an hour, and then you ran again that specific step (without restarting the notebook). It is for this reason that as the token expired, it raised an exception. Is for this that every time you restart the notebook, new token is requested and then it doesn't fail.
I added into PyWren a way to check if the token is expired or not, so this issue will never happen ;) It is fixed here: https://github.com/pywren/pywren-ibm-cloud/pull/120
When running some cell, e.g this one
I get this error. Only restarting notebook helps.