Service 'ec2' not found in endpoints.

User 1274 | 2/11/2015, 8:11:46 PM

I install the latest version, python version is 2.7.8. when I started a demo recommend program, the following error happen: import graphlab as gl File "/root/mygraphlab/lib/python2.7/site-packages/graphlab/", line 7, in <module> import as aws File "/root/mygraphlab/lib/python2.7/site-packages/graphlab/connect/aws/", line 9, in <module> from ec2 import getcredentials, launchEC2, listinstances, setcredentials, status, terminateEC2 File "/root/mygraphlab/lib/python2.7/site-packages/graphlab/connect/aws/", line 33, in <module> VALIDREGIONS = [ for r in boto.ec2.getregions('ec2')] File "/root/mygraphlab/lib/python2.7/site-packages/boto/", line 129, in getregions "Service '%s' not found in endpoints." % service_name boto.exception.BotoClientError: BotoClientError: Service 'ec2' not found in endpoints.

so,could you please give me some suggestions?


User 92 | 2/13/2015, 4:17:56 AM

Hi Ken,

Does this repro every time? This seems like a temporary AWS issue to me.

Also can you tell a little bit more about the environment you are using? GraphLab Create version OS type and version


User 1274 | 2/13/2015, 4:10:45 PM

Hi, Yes, it does. The versions are create 1.2.1, and centos release 6.5.


User 16 | 2/16/2015, 9:10:20 PM

I think you may not have the right version of boto installed. Please let us know which version of boto you have installed. You can check this by running: "pip freeze | grep boto".

User 1274 | 2/17/2015, 3:58:11 PM


User 16 | 2/17/2015, 6:16:04 PM

That's likely the issue. We require 2.33.0. You have a newer version than that. Some other python package you are using most depend on this newer version, so it's getting used system wide.

In order to get the dependencies correct, I suggest you use a virtual environment. See the "Install in virtualenv" tab in step 2:

User 1274 | 2/19/2015, 3:00:57 PM


I was using the virtual environment.

I found that the same problem occurred when I just tried to create a connection to the EC2 service, like this:

import boto.ec2 conn = boto.ec2.connecttoregion("us-west-2", awsaccesskeyid='<aws access key>', awssecretaccesskey='<aws secret key>')

I have registered an aws account.

Any suggestions?

Best regards.

User 16 | 2/19/2015, 7:29:41 PM

Hi Ken,

This sounds like a boto issues. The boto code you gave works for me (in both boto version 2.33.0 and 2.36.0) on python 2.7.4. You may want to just revert back to a previous version of python. Sorry I couldn't be more helpful.