Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Support Python 3.11 #30

Closed
Uxio0 opened this issue Oct 31, 2022 · 3 comments
Closed

Support Python 3.11 #30

Uxio0 opened this issue Oct 31, 2022 · 3 comments

Comments

@Uxio0
Copy link

Uxio0 commented Oct 31, 2022

Would it be possible to support Python 3.11? We currently get this error when installing pysha3 (no issues on Python 3.10):

  × Running setup.py install for pysha3 did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      running install
      /opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      copying sha3.py -> build/lib.linux-x86_64-cpython-311
      running build_ext
      building '_pysha3' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/Modules
      creating build/temp.linux-x86_64-cpython-311/Modules/_sha3
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_WITH_KECCAK=1 -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c Modules/_sha3/sha3module.c -o build/temp.linux-x86_64-cpython-311/Modules/_sha3/sha3module.o
      In file included from Modules/_sha3/sha3module.c:20:
      Modules/_sha3/backport.inc:78:10: fatal error: pystrhex.h: No such file or directory
         78 | #include "pystrhex.h"
            |          ^~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pysha3
@Uxio0
Copy link
Author

Uxio0 commented Oct 31, 2022

I see it was fixed already, @tiran would it be possible to release a 1.0.3 version including it?

@tiran
Copy link
Owner

tiran commented Oct 31, 2022

This package is unmaintainted and absolete since Python 3.6. Use sha3 from stdlib's hashlib module instead.

@tiran tiran closed this as not planned Won't fix, can't repro, duplicate, stale Oct 31, 2022
@Uxio0
Copy link
Author

Uxio0 commented Oct 31, 2022

This package is unmaintainted and absolete since Python 3.6. Use sha3 from stdlib's hashlib module instead.

Hi @tiran and thank you for your answer. Am I missing something or keccak256 is not available yet on python's stdlib?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants