hynek / argon2-cffi-bindings Goto Github PK
View Code? Open in Web Editor NEWLow-level Python CFFI Bindings for Argon2
License: MIT License
Low-level Python CFFI Bindings for Argon2
License: MIT License
Hey,It is impossible to install because of the lack of support for FreeBSD, please upgrade to add support, because of this lack of support it is impossible to install my python package, I clearly do not want to modify my code as I am extremely dependent on your package, I look forward to future support for FreeBSD 12.
I have asked the developer of the flask_argon2 python package that depends on argon2_cffi and Argon2-cffi-bindings to try to do an update on his side to add support for FreeBSD
It remains to be seen
Afi.
I'm installing octoprint in OpenWRT, which depends on argon2-cffi-bindings
running pip install octoprint -v
or pip install argon2-cffi-bindings
in the target platform cause the same error:
Collecting argon2-cffi-bindings (from argon2-cffi<22,>=21.3.0->Octoprint)
Using cached argon2-cffi-bindings-21.2.0.tar.gz (1.8 MB)
Running command pip subprocess to install build dependencies
Collecting setuptools>=45
Using cached setuptools-68.2.2-py3-none-any.whl.metadata (6.3 kB)
Collecting setuptools_scm>=6.2
Using cached setuptools_scm-8.0.4-py3-none-any.whl.metadata (6.4 kB)
Collecting wheel
Using cached wheel-0.41.2-py3-none-any.whl.metadata (2.2 kB)
Collecting cffi>=1.0.1
Using cached cffi-1.16.0.tar.gz (512 kB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: still running...
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /simple/packaging/
Collecting packaging>=20 (from setuptools_scm>=6.2)
Using cached packaging-23.2-py3-none-any.whl.metadata (3.2 kB)
Collecting typing-extensions (from setuptools_scm>=6.2)
Using cached typing_extensions-4.8.0-py3-none-any.whl.metadata (3.0 kB)
Collecting pycparser (from cffi>=1.0.1)
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Using cached setuptools-68.2.2-py3-none-any.whl (807 kB)
Using cached setuptools_scm-8.0.4-py3-none-any.whl (42 kB)
Using cached wheel-0.41.2-py3-none-any.whl (64 kB)
Using cached packaging-23.2-py3-none-any.whl (53 kB)
Using cached typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Building wheels for collected packages: cffi
Building wheel for cffi (pyproject.toml): started
Building wheel for cffi (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for cffi (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [53 lines of output]
/tmp/pip-build-env-oxtk2sxd/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!
********************************************************************************
The license_file parameter is deprecated, use license_files instead.
By 2023-Oct-30, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
parsed = self.parsers.get(option_name, lambda x: x)(value)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-mips-cpython-311
creating build/lib.linux-mips-cpython-311/cffi
copying src/cffi/verifier.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/vengine_gen.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/vengine_cpy.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/setuptools_ext.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/recompiler.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/pkgconfig.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/model.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/lock.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/ffiplatform.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/error.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/cparser.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/commontypes.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/cffi_opcode.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/backend_ctypes.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/api.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/_shimmed_dist_utils.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/_imp_emulation.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/__init__.py -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/_cffi_include.h -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/parse_c_type.h -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/_embedding.h -> build/lib.linux-mips-cpython-311/cffi
copying src/cffi/_cffi_errors.h -> build/lib.linux-mips-cpython-311/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-mips-cpython-311
creating build/temp.linux-mips-cpython-311/src
creating build/temp.linux-mips-cpython-311/src/c
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc_musl/Python-3.11.6=Python-3.11.6 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc_musl/Python-3.11.6=Python-3.11.6 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include/fortify -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.11 -c src/c/_cffi_backend.c -o build/temp.linux-mips-cpython-311/src/c/_cffi_backend.o
src/c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
15 | #include <ffi.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: Failed building wheel for cffi
Failed to build cffi
ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /usr/bin/python3 /usr/lib/python3.11/site-packages/pip/__pip-runner__.py install --ignore-installed --no-user --prefix /tmp/pip-build-env-sne5wnme/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=45' 'setuptools_scm>=6.2' wheel 'cffi>=1.0.1'
cwd: [inherit]
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
The target has already installed libffi, python-cffi and python-cffi-src, but this installation doesn't detect them (installed with opkg command from openwrt)
I could try to cross compile (usual way for adding code for openWrt) but I can't find proper instructions to cross compile this repo, any help or directions ?
setuptools_scm 7.0.x, which was released last week, drops support of python 3.6
due to their use of annotations.
Because of this, argon2-cffi-bindings fails to install on python 3.6 because it will
use the latest version in their setup.
The workaround, I think, is to use --no-build-isolation, but a proper fix if 3.6 support
is desired is to pin setuptools_scm to the last 6.4 version (6.4.2).
I am not very sophisticated with the python packaging system so if there's some fix
I'm missing I apologize.
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.