[bitbucket] 最近https経由でのリポジトリへのアクセス(clone, pull...)が一部のマシンで abort: cannot import name HAS_TLSv1_3! 表示されるようになりました。

43 views
Skip to first unread message

ohira

unread,
Aug 23, 2019, 2:10:47 AM8/23/19
to mercurial-ja
いつもお世話になっております。
おおひらです。

一ヶ月ぐらい前から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)
(see https://mercurial-scm.org for more information)

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)
(see https://mercurial-scm.org for more information)

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のバージョンを変更しないで回避できないものでしょうか?



ohira

unread,
Aug 23, 2019, 2:18:09 AM8/23/19
to mercurial-ja
ググってみました。
関連ありそうなページ


2019年8月23日金曜日 15時10分47秒 UTC+9 ohira:
Reply all
Reply to author
Forward
0 new messages