いつもお世話になっております。
おおひらです。
一ヶ月ぐらい前からbitbucketへのアクセスが一部のマシンで abort: cannot import name HAS_TLSv1_3! というエラーになります。
現在問題が発生しているマシンも一ヶ月前ぐらいまでは問題なくアクセスできていたものです。
エラーを回避する方法はありませんでしょうか?
エラーになった例
[shin@faith] ~/hgflow% hg pull --update
abort: cannot import name HAS_TLSv1_3!
[shin@faith] ~/hgflow% python --version
Python 2.7.16
[shin@faith] ~/hgflow% hg version
Mercurial Distributed SCM (version 5.1)
Copyright (C) 2005-2019 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[shin@faith] ~/hgflow%
正常に動作した例
$ hg pull --update
searching for changes
no changes found
$
$ python --version
Python 2.7.15
$ hg version
Mercurial Distributed SCM (version 4.8.2)
Copyright (C) 2005-2018 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$
3.7で追加されたもののようです。
おそらくクライアント側のSSLのバージョンが古いのが原因なのかと思いますが、
SSLのバージョンを変更しないで回避できないものでしょうか?