ethereum / blake2b-py Goto Github PK
View Code? Open in Web Editor NEWBlake2b hashing in Rust with Python bindings.
License: MIT License
Blake2b hashing in Rust with Python bindings.
License: MIT License
blake2b-py currently doesn't support compiling for pypy 3.7 without additional configuration (assuming rust is installed)
$ pip install blake2b-py
...bash
Building wheels for collected packages: blake2b-py
Building wheel for blake2b-py (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: ~/.pyenv/versions/pypy3.7-7.3.4/envs/ape-pypy/bin/pypy3 ~/.pyenv/versions/pypy3.7-7.3.4/envs/ape-pypy/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpkqxloceo
cwd: /tmp/pip-install-36bcisym/blake2b-py_5d24a7fa36444f4f9f3f16e5f806ed71
Complete output (47 lines):
Running `maturin pep517 build-wheel -i ~/.pyenv/versions/pypy3.7-7.3.4/envs/ape-pypy/bin/pypy3`
Compiling proc-macro2 v1.0.26
Compiling unicode-xid v0.2.2
Compiling syn v1.0.72
Compiling proc-macro-hack v0.5.19
Compiling serde_derive v1.0.125
Compiling memchr v2.4.0
Compiling ryu v1.0.5
Compiling serde v1.0.125
Compiling serde_json v1.0.64
Compiling itoa v0.4.7
Compiling autocfg v1.0.1
Compiling regex-syntax v0.6.25
Compiling version_check v0.9.3
Compiling libc v0.2.94
Compiling inventory v0.1.10
Compiling unindent v0.1.7
Compiling lazy_static v1.4.0
Compiling spin v0.5.2
Compiling num-traits v0.2.14
Compiling aho-corasick v0.7.18
Compiling quote v1.0.9
Compiling paste-impl v0.1.18
Compiling paste v0.1.18
Compiling regex v1.5.3
Compiling pyo3-derive-backend v0.8.5
Compiling ghost v0.1.2
Compiling inventory-impl v0.1.10
Compiling indoc-impl v0.3.6
Compiling ctor v0.1.20
Compiling pyo3cls v0.8.5
Compiling indoc v0.3.6
Compiling pyo3 v0.8.5
error: failed to run custom build command for `pyo3 v0.8.5`
Caused by:
process didn't exit successfully: `/tmp/pip-install-36bcisym/blake2b-py_5d24a7fa36444f4f9f3f16e5f806ed71/target/release/build/pyo3-412cf57dbee04baa/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Error: pyo3 requires a nightly or dev version of Rust.', ~/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.8.5/build.rs:542:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
๐ฅ maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit code: 101": `cargo rustc --message-format json --manifest-path Cargo.toml --release --lib --`
๐น Building a mixed python/rust project
๐ Found pyo3 bindings
๐ Found PyPy 3.7 at ~/.pyenv/versions/pypy3.7-7.3.4/envs/ape-pypy/bin/pypy3
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '~/.pyenv/versions/pypy3.7-7.3.4/envs/ape-pypy/bin/pypy3'] returned non-zero exit status 1
----------------------------------------
ERROR: Failed building wheel for blake2b-py
Failed to build blake2b-py
ERROR: Could not build wheels for blake2b-py which use PEP 517 and cannot be installed directly
Easy solution is to just release binary wheels for pypy (3.7 preferred, but 3.6 too maybe)
Hello there,
It would be great to have the support for Python 3.12. It would allow other projects to move forward too (for instance I am looking at adding Python 3.12 support for py-evm, but it is blocked as of now).
Hi, is there any plan to release a new version so blake2b-py can support python 3.10 by #10 ?
install instructions could be a bit more detailed. what are the requirements on Macos e.g.? for me install fails because I don't have gpg installed.
๐ It would be great to publish source tarball so that people can compile from the source code. Thanks!
Kind of similar issue as #7
Hi,
would it be possible to provide precompiled packages also for Raspberry Pi (armhf/aarch64)? Using the source distribution on Raspberry Pis is quite slow and does not succeed (at least for now, takes up to 15 minutes until an error occurs).
Im new into rust, so not sure how I can fix that. If any other people are in the same situation, maybe it helps them if a precompiled wheel is available.
Best regards
Matthias
Similar to #1, since 0.1.4 does not provide a source package, it cannot be installed on M1 MacBooks currently:
$ pip install 'blake2b-py==1.4.0'
ERROR: Could not find a version that satisfies the requirement blake2b-py==1.4.0
ERROR: No matching distribution found for blake2b-py==1.4.0
This is an issue, since it is a dependency of py-evm (specifically, >=1.4.0)
See my comment here: ethereum/web3.py#1774 (comment)
It looks like we might need a new build published to support python 3.9? Not 100% sure this is the problem but at first glance... ๐คท
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.