<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Marcin,<div><br></div><div>After some quick googling I found that this error is caused when Python's built-in socket module wasn't compiled with SSL support. Here's a link to someone else having the same error with boto on stackoverflow:</div><div><br></div><div><a href="http://stackoverflow.com/questions/877072/httpsconnection-module-missing-in-python-2-6-on-centos-5-2">http://stackoverflow.com/questions/877072/httpsconnection-module-missing-in-python-2-6-on-centos-5-2</a></div><div><br></div><div>In short you basically need to recompile Python 2.6 with SSL support. Here's a link to a slightly older doc that does this for python 2.5 on CentOS 5.1:</div><div><br></div><div><a href="http://agiletesting.blogspot.com/2008/05/compiling-python-25-with-ssl-support.html">http://agiletesting.blogspot.com/2008/05/compiling-python-25-with-ssl-support.html</a></div><div><br></div><div>Unfortunately this is not something StarCluster or boto can fix by way of code. Either the Python install has SSL support or not. However, boto could do a better job of checking for SSL support and raising an exception with a better error message instructing the user of the *real* problem (Python install not compiled with SSL support). I've filed a bug report about this on boto's issue tracker:</div><div><br></div><div><a href="https://github.com/boto/boto/issues/249">https://github.com/boto/boto/issues/249</a></div><div><br></div><div>If I get some time I might try to hack this in myself.</div><div><br></div><div>Hope that helps,</div><div><br></div><div>~Justin</div><div><br></div><div><br><div><div>On Jul 5, 2011, at 6:58 PM, marcin joachimiak wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello,<br><br>I'm running into trouble when starting up the starcluster example. I<br>am running a custom x86_64 centOS AMI with Python 2.6.<br><br>Below is the command and output:<br><br>[marcin]#starcluster start mycluster<br>StarCluster - (<a href="http://web.mit.edu/starcluster">http://web.mit.edu/starcluster</a>) (v. 0.92rc2)<br>Software Tools for Academics and Researchers (STAR)<br>Please submit bug reports to <a href="mailto:starcluster@mit.edu">starcluster@mit.edu</a><br>Traceback (most recent call last):<br>File "build/bdist.linux-x86_64/egg/starcluster/cli.py", line 155, in main<br><span class="Apple-tab-span" style="white-space:pre">        </span>sc.execute(args)<br>File "build/bdist.linux-x86_64/egg/starcluster/commands/start.py",<br>line 143, in execute<br><span class="Apple-tab-span" style="white-space:pre">        </span>cluster_exists = self.cm.get_cluster_or_none(tag)<br>File "build/bdist.linux-x86_64/egg/starcluster/cluster.py", line 80,<br>in get_cluster_or_none<br><span class="Apple-tab-span" style="white-space:pre">        </span>return self.get_cluster(cluster_name)<br> File "build/bdist.linux-x86_64/egg/starcluster/cluster.py", line 42,<br>in get_cluster<br> group = self.ec2.get_security_group(clname) File<br>"build/bdist.linux-x86_64/egg/starcluster/awsutils.py", line 1043, in<br>get_security_group<br> groupname})[0]<br> File "build/bdist.linux-x86_64/egg/boto/ec2/connection.py", line<br>1658, in get_all_security_groups [('item', SecurityGroup)],<br>verb='POST')<br> File "build/bdist.linux-x86_64/egg/boto/connection.py", line 584, in get_list<br> response = self.make_request(action, params, path, verb)<br> File "build/bdist.linux-x86_64/egg/boto/connection.py", line 571, in<br>make_request<br> return self._send_http_request(http_request)<br> File "build/bdist.linux-x86_64/egg/boto/connection.py", line 527, in<br>_send_http_request<br> http_request.host, sender, override_num_retries)<br> File "build/bdist.linux-x86_64/egg/boto/connection.py", line 432, in _mexe<br> connection = self.get_http_connection(host, self.is_secure)<br> File "build/bdist.linux-x86_64/egg/boto/connection.py", line 329, in<br>get_http_connection<br> return self.new_http_connection(host, is_secure)<br> File "build/bdist.linux-x86_64/egg/boto/connection.py", line 343, in<br>new_http_connection<br> connection = httplib.HTTPSConnection(host)<br>AttributeError: 'module' object has no attribute 'HTTPSConnection'<br><br>!!! ERROR - Oops! Looks like you've found a bug in StarCluster<br>!!! ERROR - Debug file written to: /tmp/starcluster-debug-root.log<br>!!! ERROR - Look for lines starting with PID: 31121<br>!!! ERROR - Please submit this file, minus any private information,<br>!!! ERROR - to <a href="mailto:starcluster@mit.edu">starcluster@mit.edu</a><br><br><br>Any help would be greatly appreciated.<br><br>thanks,<br>marcin<br>_______________________________________________<br>StarCluster mailing list<br><a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>http://mailman.mit.edu/mailman/listinfo/starcluster<br></div></blockquote></div><br></div></body></html>