{"action":"created","issue":{"url":"https://api.github.com/repos/pywren/pywren/issues/239","repository_url":"https://api.github.com/repos/pywren/pywren","labels_url":"https://api.github.com/repos/pywren/pywren/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/pywren/pywren/issues/239/comments","events_url":"https://api.github.com/repos/pywren/pywren/issues/239/events","html_url":"https://github.com/pywren/pywren/issues/239","id":311495847,"number":239,"title":"No Credentials error","user":{"login":"Amandeep-singh11","id":33763251,"avatar_url":"https://avatars3.githubusercontent.com/u/33763251?v=4","gravatar_id":"","url":"https://api.github.com/users/Amandeep-singh11","html_url":"https://github.com/Amandeep-singh11","followers_url":"https://api.github.com/users/Amandeep-singh11/followers","following_url":"https://api.github.com/users/Amandeep-singh11/following{/other_user}","gists_url":"https://api.github.com/users/Amandeep-singh11/gists{/gist_id}","starred_url":"https://api.github.com/users/Amandeep-singh11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amandeep-singh11/subscriptions","organizations_url":"https://api.github.com/users/Amandeep-singh11/orgs","repos_url":"https://api.github.com/users/Amandeep-singh11/repos","events_url":"https://api.github.com/users/Amandeep-singh11/events{/privacy}","received_events_url":"https://api.github.com/users/Amandeep-singh11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-04-05T07:10:19Z","updated_at":"2018-04-09T00:25:14Z","closed_at":null,"author_association":"NONE","body":"I am getting below error , while I try to run the executor function\r\n\r\n**wrenexec = pywren.default_executor()**\r\n\r\n\r\n\r\n\r\nNoCredentialsError                        Traceback (most recent call last)\r\n<ipython-input-3-3a9b42562b70> in <module>()\r\n----> 1 wrenexec = pywren.default_executor()\r\n\r\n/usr/local/lib/python3.5/dist-packages/pywren/wren.py in default_executor(**kwargs)\r\n     19 \r\n     20     if executor_str == 'lambda':\r\n---> 21         return lambda_executor(**kwargs)\r\n     22     elif executor_str == 'remote' or executor_str == 'standalone':\r\n     23         return remote_executor(**kwargs)\r\n\r\n/usr/local/lib/python3.5/dist-packages/pywren/wren.py in lambda_executor(config, job_max_runtime)\r\n     35     invoker = invokers.LambdaInvoker(AWS_REGION, FUNCTION_NAME)\r\n     36 \r\n---> 37     return Executor(invoker, config, job_max_runtime)\r\n     38 \r\n     39 \r\n\r\n/usr/local/lib/python3.5/dist-packages/pywren/executor.py in __init__(self, invoker, config, job_max_runtime)\r\n     38         self.storage_config = wrenconfig.extract_storage_config(self.config)\r\n     39         self.storage = storage.Storage(self.storage_config)\r\n---> 40         self.runtime_meta_info = runtime.get_runtime_info(config['runtime'])\r\n     41 \r\n     42 \r\n\r\n/usr/local/lib/python3.5/dist-packages/pywren/runtime.py in get_runtime_info(runtime_config)\r\n      8     Download runtime information from storage at deserialize\r\n      9     \"\"\"\r\n---> 10     runtime_meta = storage.get_runtime_info(runtime_config)\r\n     11 \r\n     12     if not runtime_valid(runtime_meta):\r\n\r\n/usr/local/lib/python3.5/dist-packages/pywren/storage/storage.py in get_runtime_info(runtime_config)\r\n    110     if '.tar.gz' in key:\r\n    111         key = key.replace(\".tar.gz\", \".meta.json\")\r\n--> 112     json_str = handler.get_object(key)\r\n    113     runtime_meta = json.loads(json_str.decode(\"ascii\"))\r\n    114     return runtime_meta\r\n\r\n/usr/local/lib/python3.5/dist-packages/pywren/storage/s3_backend.py in get_object(self, key)\r\n     33         \"\"\"\r\n     34         try:\r\n---> 35             r = self.s3client.get_object(Bucket=self.s3_bucket, Key=key)\r\n     36             data = r['Body'].read()\r\n     37             return data\r\n\r\n/usr/local/lib/python3.5/dist-packages/botocore/client.py in _api_call(self, *args, **kwargs)\r\n    312                     \"%s() only accepts keyword arguments.\" % py_operation_name)\r\n    313             # The \"self\" in this scope is referring to the BaseClient.\r\n--> 314             return self._make_api_call(operation_name, kwargs)\r\n    315 \r\n    316         _api_call.__name__ = str(py_operation_name)\r\n\r\n/usr/local/lib/python3.5/dist-packages/botocore/client.py in _make_api_call(self, operation_name, api_params)\r\n    597         else:\r\n    598             http, parsed_response = self._endpoint.make_request(\r\n--> 599                 operation_model, request_dict)\r\n    600 \r\n    601         self.meta.events.emit(\r\n\r\n/usr/local/lib/python3.5/dist-packages/botocore/endpoint.py in make_request(self, operation_model, request_dict)\r\n    141         logger.debug(\"Making request for %s (verify_ssl=%s) with params: %s\",\r\n    142                      operation_model, self.verify, request_dict)\r\n--> 143         return self._send_request(request_dict, operation_model)\r\n    144 \r\n    145     def create_request(self, params, operation_model=None):\r\n\r\n/usr/local/lib/python3.5/dist-packages/botocore/endpoint.py in _send_request(self, request_dict, operation_model)\r\n    166     def _send_request(self, request_dict, operation_model):\r\n    167         attempts = 1\r\n--> 168         request = self.create_request(request_dict, operation_model)\r\n    169         success_response, exception = self._get_response(\r\n    170             request, operation_model, attempts)\r\n\r\n/usr/local/lib/python3.5/dist-packages/botocore/endpoint.py in create_request(self, params, operation_model)\r\n    150                 op_name=operation_model.name)\r\n    151             self._event_emitter.emit(event_name, request=request,\r\n--> 152                                      operation_name=operation_model.name)\r\n    153         prepared_request = self.prepare_request(request)\r\n    154         return prepared_request\r\n\r\n/usr/local/lib/python3.5/dist-packages/botocore/hooks.py in emit(self, event_name, **kwargs)\r\n    225                  handlers.\r\n    226         \"\"\"\r\n--> 227         return self._emit(event_name, kwargs)\r\n    228 \r\n    229     def emit_until_response(self, event_name, **kwargs):\r\n\r\n/usr/local/lib/python3.5/dist-packages/botocore/hooks.py in _emit(self, event_name, kwargs, stop_on_response)\r\n    208         for handler in handlers_to_call:\r\n    209             logger.debug('Event %s: calling handler %s', event_name, handler)\r\n--> 210             response = handler(**kwargs)\r\n    211             responses.append((handler, response))\r\n    212             if stop_on_response and response is not None:\r\n\r\n/usr/local/lib/python3.5/dist-packages/botocore/signers.py in handler(self, operation_name, request, **kwargs)\r\n     88         # this method is invoked to sign the request.\r\n     89         # Don't call this method directly.\r\n---> 90         return self.sign(operation_name, request)\r\n     91 \r\n     92     def sign(self, operation_name, request, region_name=None,\r\n\r\n/usr/local/lib/python3.5/dist-packages/botocore/signers.py in sign(self, operation_name, request, region_name, signing_type, expires_in, signing_name)\r\n    154                     raise e\r\n    155 \r\n--> 156             auth.add_auth(request)\r\n    157 \r\n    158     def _choose_signer(self, operation_name, signing_type, context):\r\n\r\n/usr/local/lib/python3.5/dist-packages/botocore/auth.py in add_auth(self, request)\r\n    418         self._region_name = signing_context.get(\r\n    419             'region', self._default_region_name)\r\n--> 420         super(S3SigV4Auth, self).add_auth(request)\r\n    421 \r\n    422     def _modify_request_before_signing(self, request):\r\n\r\n/usr/local/lib/python3.5/dist-packages/botocore/auth.py in add_auth(self, request)\r\n    350     def add_auth(self, request):\r\n    351         if self.credentials is None:\r\n--> 352             raise NoCredentialsError\r\n    353         datetime_now = datetime.datetime.utcnow()\r\n    354         request.context['timestamp'] = datetime_now.strftime(SIGV4_TIMESTAMP)\r\n\r\nNoCredentialsError: Unable to locate credentials"},"comment":{"url":"https://api.github.com/repos/pywren/pywren/issues/comments/379595318","html_url":"https://github.com/pywren/pywren/issues/239#issuecomment-379595318","issue_url":"https://api.github.com/repos/pywren/pywren/issues/239","id":379595318,"user":{"login":"Amandeep-singh11","id":33763251,"avatar_url":"https://avatars3.githubusercontent.com/u/33763251?v=4","gravatar_id":"","url":"https://api.github.com/users/Amandeep-singh11","html_url":"https://github.com/Amandeep-singh11","followers_url":"https://api.github.com/users/Amandeep-singh11/followers","following_url":"https://api.github.com/users/Amandeep-singh11/following{/other_user}","gists_url":"https://api.github.com/users/Amandeep-singh11/gists{/gist_id}","starred_url":"https://api.github.com/users/Amandeep-singh11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amandeep-singh11/subscriptions","organizations_url":"https://api.github.com/users/Amandeep-singh11/orgs","repos_url":"https://api.github.com/users/Amandeep-singh11/repos","events_url":"https://api.github.com/users/Amandeep-singh11/events{/privacy}","received_events_url":"https://api.github.com/users/Amandeep-singh11/received_events","type":"User","site_admin":false},"created_at":"2018-04-09T00:25:14Z","updated_at":"2018-04-09T00:25:14Z","author_association":"NONE","body":"It is giving me the same error\r\n\r\n**NameError: name 'pwex' is not defined**\r\n\r\nDoes pywren support jupyter notebook ?\r\nI guess this can be the only issue"}}
{"actor":{"display_login":"Amandeep-singh11"}}