From owner-freebsd-questions@FreeBSD.ORG Sun Nov 29 00:29:32 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A9E8106566B for ; Sun, 29 Nov 2009 00:29:32 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id 964228FC08 for ; Sun, 29 Nov 2009 00:29:31 +0000 (UTC) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 34E37EB4884; Sun, 29 Nov 2009 02:29:30 +0200 (EET) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 26649452FB; Sun, 29 Nov 2009 02:29:30 +0200 (EET) X-Virus-Scanned: amavisd-new at ceid.upatras.gr Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R7sUuhLIfpEv; Sun, 29 Nov 2009 02:29:30 +0200 (EET) Received: from kobe.laptop (ppp-94-64-203-204.home.otenet.gr [94.64.203.204]) by mail.ceid.upatras.gr (Postfix) with ESMTP id B8EE5452B6; Sun, 29 Nov 2009 02:29:29 +0200 (EET) Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id nAT0TS0t070339 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 29 Nov 2009 02:29:28 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id nAT0TSYS069874; Sun, 29 Nov 2009 02:29:28 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Ben Bullock References: <20091128182645.GA84615@orange.esperance-linux.co.uk> Date: Sun, 29 Nov 2009 02:29:26 +0200 In-Reply-To: <20091128182645.GA84615@orange.esperance-linux.co.uk> (Frank Shute's message of "Sat, 28 Nov 2009 18:26:45 +0000") Message-ID: <87ljhqxjfd.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: What port to use for python / https? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Nov 2009 00:29:32 -0000 On Sat, 28 Nov 2009 18:26:45 +0000, Frank Shute wrote: > On Sat, Nov 28, 2009 at 08:49:57PM +0900, Ben Bullock wrote: >> >> I am trying to install Mercurial on FreeBSD in order to install Go >> (programming language). I am running into a problem with Mercurial >> which looks like this: >> >> $ hg pull >> abort: could not import module thread! >> Exception AttributeError: "'httpsrepository' object has no attribute >> 'urlopener'" in > > ignored >> >> Googling turns up very little except the following: >> >> http://www.idimmu.net/2009/11/11/Python-support-for-SSL-and-HTTPS-is-not-installed > > security/py-openssl maybe? > Disclaimer: I don't use mercurial. The abort message does not refer to https/openssl but to a lack of the `thread' module. I think you should try to build Python with thread support instead and see how things work from there. The `keepalive.py' module of Mercurial tries to import the `thread' module: keramida@kobe:/hg/mercurial/crew$ fgrep thread mercurial/*py mercurial/keepalive.py:should be done with care when using multiple threads. mercurial/keepalive.py: * there is nothing that prevents another thread from creating new mercurial/keepalive.py:import thread mercurial/keepalive.py: self._lock = thread.allocate_lock() keramida@kobe:/hg/mercurial/crew$