hash error when installing with poetry
还没有人认领这个 Issue。
评估
调研方向
在 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sassoftware/python-swat 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 30/100
sassoftware/python-swat#191 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
sassoftware/python-swat#183 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
sassoftware/python-swat#180 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
sassoftware/python-swat#178 ·
-
难度 4/5 3-5 天 新手友好度 25/100
sassoftware/python-swat#177 · 1 条评论 ·
查看 sassoftware/python-swat 的全部 Issue
相似的 Issue
-
community enhancement good first issue
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
Hochfrequenz/sapgui.mcp#1039 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
didi/helixharness#18 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
dataforgoodfr/democracy-watch#46 · 1 个 reaction ·