On Sat, 28 Nov 2009 18:26:45 +0000, Frank Shute <[email protected]> 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:
keram...@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()
keram...@kobe:/hg/mercurial/crew$
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"