Python support for SSL and HTTPS is not installed

I wanted to give Google’s new Go language a try which requires checking out the source code with Mercurial.

Mercurial was installed from ports on my Mac with

<br /> sudo port install mecurial<br />

But checking out the code threw an error.

<br /> Chill:~ rus$ hg clone -r release https://go.googlecode.com/hg/ $GOROOT<br /> abort: Python support for SSL and HTTPS is not installed<br /> Exception exceptions.AttributeError: "'httpsrepository' object has no attribute 'urlopener'" in > ignored<br />

After some hunting I found the answer is to install the python socket ssl library from ports

<br /> Chill:~ rus$ sudo port install py25-socket-ssl<br /> ---> Fetching py25-socket-ssl<br /> ---> Verifying checksum(s) for py25-socket-ssl<br /> ---> Extracting py25-socket-ssl<br /> ---> Configuring py25-socket-ssl<br /> ---> Building py25-socket-ssl<br /> ---> Staging py25-socket-ssl into destroot<br /> ---> Installing py25-socket-ssl @2.5.4_0<br /> ---> Activating py25-socket-ssl @2.5.4_0<br /> ---> Cleaning py25-socket-ssl<br />

Which then let me check out the source for Go!

<br /> Chill:~ rus$ hg clone -r release https://go.googlecode.com/hg/ $GOROOT<br /> requesting all changes<br /> adding changesets<br /> adding manifests<br /> adding file changes<br /> added 3976 changesets with 16799 changes to 2931 files<br /> updating working directory<br /> 1640 files updated, 0 files merged, 0 files removed, 0 files unresolved<br />

Now it’s time to compile 😀