hash error when installing with poetry

オープン
#155 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
tooling

調査の方向性

Windows Server 2019 上で Poetry 1.42 および swat 1.12.1 を使って poetry add swat@latest を再現し、D:\miniconda\lib\hashlib.py にある報告された traceback を出発点にします。インストールがサポートされていない sha ハッシュを要求する理由を追跡し、そのエラーなしでパッケージをインストールできた時点で issue は完了とします。

索引モデルが issue の本文から書いたものです。

説明

Hi, I'm getting this error on Windows server 2019, latest poetry 1.42:

>poetry add swat@latest
Using version ^1.12.1 for swat

Updating dependencies
Resolving dependencies... Downloading https://files.pythonhosted.org/packages/3c/c8/5d6bb20ba20d8770e933d8c0fe956fdc11940af2c39f5b23e02196e0395c/swat-1.12.1-0-cp27-cp27m-macosx_10_9_x86_64.whl#sha256=30ad0ce7e69fa40e19433aa8327b55ae1c0f092fResolving dependencies... (1.6s)

Writing lock file

Package operations: 1 install, 0 updates, 0 removals

  • Installing swat (1.12.1): Failed

  ValueError

  unsupported hash type

  at D:\miniconda\lib\hashlib.py:157 in __hash_new
      153│         # It does neither support keyed blake2 nor advanced features like
      154│         # salt, personal, tree hashing or SSE.
      155│         return __get_builtin_constructor(name)(data, **kwargs)
      156│     try:
    → 157│         return _hashlib.new(name, data)
      158│     except ValueError:
      159│         # If the _hashlib module (OpenSSL) doesn't support the named
      160│         # hash, try using our builtin implementations.
      161│         # This allows for SHA224/256 and SHA384/512 support even though

The following error occurred when trying to handle this error:


  ValueError

  unsupported hash type sha

  at D:\miniconda\lib\hashlib.py:120 in __get_builtin_constructor
      116│     constructor = cache.get(name)
      117│     if constructor is not None:
      118│         return constructor
      119│
    → 120│     raise ValueError('unsupported hash type ' + name)
      121│
      122│
      123│ def __get_openssl_constructor(name):
      124│     if name in __block_openssl_constructor:
主要言語
Python
スター
159
フォーク
66
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sassoftware/python-swat のほかの issue

sassoftware/python-swat の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。