Comments (6)
I'm not sure what exactly you're doing but 1) there is no Cython involved 2) it looks like your method doesn't install the argon2-cffi-bindings
dependency (which uses cffi
).
from argon2-cffi.
OK I've added to my build env argon2-cffi-bindings
however looks like pytest is crashing python with SIGILL
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-argon2-cffi-21.2.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-argon2-cffi-21.2.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
Using --randomly-seed=1392831610
rootdir: /home/tkloczko/rpmbuild/BUILD/argon2-cffi-21.2.0, configfile: pyproject.toml, testpaths: tests
plugins: shutil-1.7.0, virtualenv-1.7.0, mock-3.6.1, cov-2.12.1, anyio-3.3.4, forked-1.3.0, xdist-2.3.0, flaky-3.7.0, tornasync-0.6.0.post2, console-scripts-1.2.0, trio-0.7.0, timeout-2.0.1, asyncio-0.16.0, freezegun-0.4.2, flake8-1.0.7, pyfakefs-4.5.3, benchmark-3.4.1, profiling-1.7.0, datadir-1.3.1, regressions-2.2.0, randomly-3.8.0, rerunfailures-9.1.1, yagot-0.5.0, requests-mock-1.9.3, subtests-0.5.0, easy-server-0.8.0, django-4.5.2, hypothesis-6.31.0
collected 67 items
tests/test_utils.py ............
tests/test_password_hasher.py Fatal Python error: Illegal instruction
Current thread 0x00007f2366f53740 (most recent call first):
File "/home/tkloczko/rpmbuild/BUILDROOT/python-argon2-cffi-21.2.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/argon2/low_level.py", line 116 in hash_secret
File "/home/tkloczko/rpmbuild/BUILDROOT/python-argon2-cffi-21.2.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/argon2/_password_hasher.py", line 157 in hash
File "/home/tkloczko/rpmbuild/BUILD/argon2-cffi-21.2.0/tests/test_password_hasher.py", line 99 in test_check_needs_rehash_no
File "/usr/lib/python3.8/site-packages/pytest_tornasync/plugin.py", line 45 in pytest_pyfunc_call
File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
File "/usr/lib/python3.8/site-packages/_pytest/python.py", line 1641 in runtest
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call
File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 255 in <lambda>
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 311 in from_call
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 254 in call_runtest_hook
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 133 in call_and_report
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 126 in runtestprotocol
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 109 in pytest_runtest_protocol
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 89 in pytest_runtest_protocol
File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 323 in _main
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 269 in wrap_session
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 162 in main
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 185 in console_main
File "/usr/bin/pytest", line 33 in <module>
/var/tmp/rpm-tmp.Z0JmwF: line 48: 3309842 Illegal instruction (core dumped) PATH="/home/tkloczko/rpmbuild/BUILDROOT/python-argon2-cffi-21.2.0-2.fc35.x86_64/usr/bin:$PATH" PYTHONDONTWRITEBYTECODE=1 SETUPTOOLS_SCM_PRETEND_VERSION=21.2.0 PYTHONPATH="${PYTHONPATH:-/home/tkloczko/rpmbuild/BUILDROOT/python-argon2-cffi-21.2.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-argon2-cffi-21.2.0-2.fc35.x86_64/usr/lib/python3.8/site-packages}" /usr/bin/pytest -ra
I'm not sure is it sometbing wrong in argon2-cffi-bindings
DSO or python.
I'm opened on any suggestions about what I can try to diagnose that issue.
from argon2-cffi.
Maybe it helps you: this morning I had (repeatable) issues installing argon2-cffi 21.3.0 with a subset of my projects, whereas 21.1.0 worked just fine. I fixed my problems by upgrading pip to version 21 (it was 19).
from argon2-cffi.
My pip version is
[tkloczko@ss-desktop SPECS]$ pip show pip| grep Version
Version: 21.3.1
from argon2-cffi.
I think your problems are unrelated indeed. The question is why kloczek's a2c-bindings is crashing which belongs to https://github.com/hynek/argon2-cffi-bindings/issues. It could be some cross-compilation weirdness.
from argon2-cffi.
In that case looks like python crashes with few modules loaded as DSOs.
I've been trying to at least encircle which one DSO it could be and I'm not 100% sure is it could be argon2-cffi-bindings :/
from argon2-cffi.
Related Issues (20)
- RFC is no longer a draft (RFC9106); default parameter choice out of date HOT 4
- 21.1.0: `notebook` test suite is crashing with SIGILL in _cffi_backend.cpython.*so DSO HOT 11
- Inconsistent advice for key derivation HOT 5
- How to avoid timing attacks? HOT 1
- hash function return + / verify issue with sqlite HOT 3
- Question: Can output from argon2.low_level.hash_secret_raw() → bytes directly used to derive aes key? HOT 3
- Associated data cannot be specified in the low_level functions HOT 10
- Support password verification without sending the password from client to server HOT 5
- Make hash verification return True or False HOT 4
- Second salt HOT 1
- hash() got an unexpected keyword argument 'salt' HOT 1
- would a python-3.9 wheel be possible ? HOT 13
- seems missing _ffi.abi3.so when pip installing in docker HOT 7
- Failed Source Build on Apple Silicon HOT 9
- Wheel support for linux aarch64 HOT 4
- Unable to install on Xavier NX HOT 1
- Fail to install by pip on macOS 11.0.1 Big Sur HOT 11
- 20.1.0: sphinx warnings HOT 4
- 20.1.0: pytest warnings HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argon2-cffi.