sassoftware / sassoftware/python-swat
hash error when installing with poetry
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 159
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
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:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce poetry add swat@latest on Windows Server 2019 with Poetry 1.42 and swat 1.12.1, using the reported traceback in D:\miniconda\lib\hashlib.py as the starting point. Trace why installation requests the unsupported sha hash, and consider the issue done when the package installs without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100