Skip to content

Instantly share code, notes, and snippets.

@aodhan-domhnaill
Last active January 17, 2018 21:27
Show Gist options
  • Save aodhan-domhnaill/7eb7ba7402790b61596938b5cbf605b6 to your computer and use it in GitHub Desktop.
Save aodhan-domhnaill/7eb7ba7402790b61596938b5cbf605b6 to your computer and use it in GitHub Desktop.
INFO:sagemaker:Creating model with name: sagemaker-mxnet-py2-cpu-2018-01-17-20-52-52-599
---------------------------------------------------------------------------
ClientError Traceback (most recent call last)
<ipython-input-11-40815f86459d> in <module>()
----> 1 predictor = m.deploy(initial_instance_count=1, instance_type='ml.m4.xlarge')
~/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/sagemaker/estimator.py in deploy(self, initial_instance_count, instance_type, endpoint_name, **kwargs)
183 instance_type=instance_type,
184 initial_instance_count=initial_instance_count,
--> 185 endpoint_name=endpoint_name)
186
187 @property
~/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/sagemaker/model.py in deploy(self, initial_instance_count, instance_type, endpoint_name)
87 container_def = self.prepare_container_def(instance_type)
88 model_name = self.name or name_from_image(container_def['Image'])
---> 89 self.sagemaker_session.create_model(model_name, self.role, container_def)
90 production_variant = sagemaker.production_variant(model_name, instance_type, initial_instance_count)
91 self.endpoint_name = endpoint_name or model_name
~/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/sagemaker/session.py in create_model(self, name, role, primary_container)
269 self.sagemaker_client.create_model(ModelName=name,
270 PrimaryContainer=primary_container,
--> 271 ExecutionRoleArn=role)
272
273 return name
~/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/botocore/client.py in _api_call(self, *args, **kwargs)
315 "%s() only accepts keyword arguments." % py_operation_name)
316 # The "self" in this scope is referring to the BaseClient.
--> 317 return self._make_api_call(operation_name, kwargs)
318
319 _api_call.__name__ = str(py_operation_name)
~/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/botocore/client.py in _make_api_call(self, operation_name, api_params)
613 error_code = parsed_response.get("Error", {}).get("Code")
614 error_class = self.exceptions.from_code(error_code)
--> 615 raise error_class(parsed_response, operation_name)
616 else:
617 return parsed_response
ClientError: An error occurred (ValidationException) when calling the CreateModel operation: Could not find model data at s3://sagemaker-us-west-2-01234567890/sagemaker-mxnet-py2-cpu-2018-01-17-20-52-52-599/output/model.tar.gz.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment