Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build wheel pysha3 extension #77

Open
robomotic opened this issue Nov 25, 2024 · 2 comments
Open

build wheel pysha3 extension #77

robomotic opened this issue Nov 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@robomotic
Copy link

Describe the bug

I am on Ubuntu 22.04 with UV package manager with Python 3.13.0 build with Clang 18.1.8 on a virtual environment.

To Reproduce (Example)

**I install the package with **

uv add merkly

And then get this Erro:

Resolved 70 packages in 33ms
error: Failed to prepare distributions
  Caused by: Failed to download and build `pysha3==1.0.2`
  Caused by: Build backend failed to build wheel through `build_wheel` (exit status: 1)

[stdout]
running bdist_wheel
running build
running build_py
copying sha3.py -> build/lib.linux-x86_64-cpython-313
running build_ext
building '_pysha3' extension
clang -pthread -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -fPIC -fPIC -DPY_WITH_KECCAK=1 -I/home/robomotic/.cache/uv/builds-v0/.tmppuDkyk/include -I/home/robomotic/.local/share/uv/python/cpython-3.13.0-linux-x86_64-gnu/include/python3.13 -c Modules/_sha3/sha3module.c -o build/temp.linux-x86_64-cpython-313/Modules/_sha3/sha3module.o

[stderr]
In file included from Modules/_sha3/sha3module.c:20:
Modules/_sha3/backport.inc:78:10: fatal error: 'pystrhex.h' file not found
#include "pystrhex.h"
         ^~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1

Anvironment (please complete the following information):

  • OS: Ubuntu 22.10
@robomotic robomotic added the bug Something isn't working label Nov 25, 2024
@robomotic
Copy link
Author

Seems to be related to: Polymarket/py-clob-client#82

@robomotic
Copy link
Author

Should we not move everything to hashlib since pysha3 is basically legacy now?
https://docs.python.org/3/library/hashlib.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant