error trying to clone

9 views
Skip to first unread message

John Cremona

unread,
Oct 21, 2010, 4:37:33 AM10/21/10
to psage
When I try to make a new clone I get this message:

jec@fermat%hg clone https://purplesage.googlecode.com/hg/ purplesage
abort: could not import module _ssl!

The hg version is 1.3.1, and the same occurs with "sage -hg". I tried
googling for the error message and found some references, though
nothing I could understand well enough to provide a solution.

John

Robert Miller

unread,
Oct 21, 2010, 8:01:15 AM10/21/10
to ps...@googlegroups.com
John,

This looks like SSL is a dependency of mercurial (at least if you're
pushing and pulling across https) and it might not be installed on
your machine...

--
Robert L. Miller
http://www.rlmiller.org/

John Cremona

unread,
Oct 21, 2010, 8:10:34 AM10/21/10
to ps...@googlegroups.com
Do you mean that it's a firewall issue? Mercurial is certainly
installed and there is lots of stuff in /usr/lib/*ssl*

John

Robert Miller

unread,
Oct 21, 2010, 8:18:52 AM10/21/10
to ps...@googlegroups.com
Well, since it's an import error, it seems like a local dependency
issue. I found mention of one or two missing dependencies for
mercurial while googling.

Although hg is not installed on selmer directly, I got the same
behavior using sage -hg.

I tried the command from my flat just now, and it worked fine. So it
is not a Warwick-wide firewall issue, at least.

John Cremona

unread,
Oct 21, 2010, 8:56:58 AM10/21/10
to ps...@googlegroups.com
On Thu, Oct 21, 2010 at 1:18 PM, Robert Miller <r...@rlmiller.org> wrote:
> Well, since it's an import error, it seems like a local dependency
> issue. I found mention of one or two missing dependencies for
> mercurial while googling.
>
> Although hg is not installed on selmer directly, I got the same
> behavior using sage -hg.

Me too. And I was doing this on fermat where hg is installed (and is
the same version as in Sage, namely 1.3.1).

>
> I tried the command from my flat just now, and it worked fine. So it
> is not a Warwick-wide firewall issue, at least.

Do you mean from your laptop? There may be other firewall issues with
selmer and fermat (you can ssh to them but not get to port 8000, for
example, without doing ssh tunnelling).

Any further ideas welcome.

John

William Stein

unread,
Oct 22, 2010, 11:33:07 AM10/22/10
to ps...@googlegroups.com
On Thu, Oct 21, 2010 at 1:37 AM, John Cremona <john.c...@gmail.com> wrote:
> When I try to make a new clone I get this message:
>
> jec@fermat%hg clone https://purplesage.googlecode.com/hg/ purplesage
> abort: could not import module _ssl!

Your hg is built without openssl support, probably because your Python
is built without ssl support.
But you can just do:

hg clone http://purplesage.googlecode.com/hg/ purplesage

and it should get psage without using ssl.

This library though has basically 1 test function right now and that
is it! Most of the work has
gone into stripping packages out of Sage, which is what you get when
you grab the source from:

http://purple.sagemath.org/source/?C=N;O=D

William

John Cremona

unread,
Oct 22, 2010, 11:43:29 AM10/22/10
to ps...@googlegroups.com
Thanks, that worked. I should have thought of that!

John

Reply all
Reply to author
Forward
0 new messages