Date: Sun, 29 Nov 2009 02:29:26 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Ben Bullock <benkasminbullock@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: What port to use for python / https? Message-ID: <87ljhqxjfd.fsf@kobe.laptop> In-Reply-To: <20091128182645.GA84615@orange.esperance-linux.co.uk> (Frank Shute's message of "Sat, 28 Nov 2009 18:26:45 %2B0000") References: <bea59c750911280349h48a63edcgcf2a0f27cf12c6fe@mail.gmail.com> <20091128182645.GA84615@orange.esperance-linux.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 28 Nov 2009 18:26:45 +0000, Frank Shute <frank@shute.org.uk> 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 <bound method httpsrepository.__del__ of >> <mercurial.httprepo.httpsrepository object at 0x2857882c>> 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$
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87ljhqxjfd.fsf>