hash error when installing with poetry

未關閉
#155 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
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 雜湊,並在 package 能夠沒有該錯誤完成安裝時視為 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

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

sassoftware/python-swat 的其他 Issue

查看 sassoftware/python-swat 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。