jegonzal / PowerGraph

PowerGraph: A framework for large-scale machine learning and graph computation.
344 stars 518 forks source link

User Guide's EC2 deployment example getting error #165

Closed netmobile closed 10 years ago

netmobile commented 10 years ago

Using GraphLab V1.0.1, I'm following the User Guide's EC2 deployment example at: http://graphlab.com/learn/userguide/index.html#Deployment

Getting the error because 'conn' is None:

[INFO] Preparing using environment: ec2 [INFO] Beginning Job Validation.

[INFO] Validation complete. Job: 'ec2-exec' ready for execution

AttributeError Traceback (most recent call last)

in () 1 # spin up an EC2 instance to run this work 2 job_ec2 = gl.deploy.job.create(tasks_with_bindings, name='ec2-exec', ----> 3 environment=ec2) /Users/ttam/anaconda/lib/python2.7/site-packages/graphlab/deploy/job.pyc in create(tasks, name, environment, function, function_arguments, required_packages) 338 339 **LOGGER**.info("Validation complete. Job: '%s' ready for execution" % name) --> 340 job = env.run(_session, cloned_artifacts, name, environment) 341 _session.register(job) 342 job.save() # save the job once prior to returning. /Users/ttam/anaconda/lib/python2.7/site-packages/graphlab/deploy/_executionenvironment.pyc in run(self, session, tasks, name, environment) 66 """ 67 job = _job.Job(name, tasks=tasks, environment=environment) ---> 68 return self.run_job(job, session) 69 70 /Users/ttam/anaconda/lib/python2.7/site-packages/graphlab/deploy/_executionenvironment.pyc in run_job(self, job, session) 299 job._serialize(serialized_job_file_path) 300 --> 301 commander = Ec2ExecutionEnvironment._start_commander_host(job.environment, credentials) 302 post_url = "http://%s:9004/submit" % commander.public_dns_name 303 __LOGGER__.debug("Sending %s to %s" % (serialized_job_file_path, post_url)) /Users/ttam/anaconda/lib/python2.7/site-packages/graphlab/deploy/_executionenvironment.pyc in _start_commander_host(environment, credentials) 266 security_group_name = environment.security_group, 267 tags = environment.tags, user_data = user_data, --> 268 credentials = credentials) 269 return commander 270 /Users/ttam/anaconda/lib/python2.7/site-packages/graphlab/connect/aws/_ec2.pyc in _ec2_factory(instance_type, region, CIDR_rule, security_group_name, tags, user_data, credentials, ami_service_parameters, num_hosts) 419 # Does the security group already exist? 420 security_group = None --> 421 for sg in conn.get_all_security_groups(): 422 if(security_group_name == sg.name): 423 security_group = sg AttributeError: 'NoneType' object has no attribute 'get_all_security_groups'
dbickson commented 10 years ago

Hi, You opened this graphlab create issue on the github of powergraph, which is the older code. Please repost your question at our user forum: http://forum.graphlab.com and we would love to help ASAP.

netmobile commented 10 years ago

Posted: http://forum.graphlab.com/discussion/653/user-guides-ec2-deployment-example-getting-error?new=1