Troubles with conflicting cryptography and cffi
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start by reproducing the reported command against the QGIS Earth Engine plugin with Bandit 1.9.1 on Python 3.14, then inspect Bandit's dependency constraints for cryptography and cffi. Determine whether a compatible combination avoids the macOS code-signature ImportError, and document the required constraints or the upstream coordination needed with cryptography, cffi, or google-auth.
Written by the indexing model from the issue text.
Description
Describe the bug
I'm adding a but to bandit as it is the reason for https://github.com/gee-community/qgis-earthengine-plugin/issues/439. bandit is flagging cryptography and cffi, but forcing them to be recent leads to this:
ImportError: dlopen(.../cryptography/hazmat/bindings/_[rust.abi3.so](http://rust.abi3.so/), ...):
code signature ... not valid for use in process:
mapping process and mapped file (non-platform) have different Team IDs
This likely needs to work from both https://github.com/pyca/cryptography and https://github.com/python-cffi/cffi. And possibly https://github.com/googleapis/google-cloud-python/tree/main/packages/google-auth
@zacdezgeo
Reproduction steps
Ran bandit on https://github.com/gee-community/qgis-earthengine-plugin
Expected behavior
Being able to specify a recent cryptography + cffi combination that doesn't have any issues.
Bandit version
1.9.1 (Default)
Python version
3.14 (Default)
Additional context
No response
- Dominant language
- Python
- Stars
- 8.3k
- Forks
- 836
- Avg merge
- 5d 3h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PyCQA/bandit
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Test issue Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100