Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

[traceback] cryptography.exceptions.UnsupportedAlgorithm: Backend object does not implement PBKDF2HMACBackend in Python 3.6 #219

Open
stephendonner opened this issue Mar 15, 2018 · 5 comments

Comments

@stephendonner
Copy link
Contributor

/cc @davehunt

Just noticed this on https://travis-ci.org/mozilla/fxapom/jobs/353970801:

cryptography.exceptions.UnsupportedAlgorithm: Backend object does not implement PBKDF2HMACBackend

[gw0] [100%] PASSED tests/test_fxa_test_account.py::TestFxATestAccount::test_create_new_account[https://stable.dev.lcip.org/auth/] Exception ignored in: <bound method FxATestAccount.__del__ of <fxapom.fxapom.FxATestAccount object at 0x7fac9e55a0f0>>
Traceback (most recent call last):
  File "/src/fxapom/fxapom.py", line 66, in __del__
  File "/src/.tox/py36/lib/python3.6/site-packages/fxa/core.py", line 113, in destroy_account
  File "/src/.tox/py36/lib/python3.6/site-packages/fxa/core.py", line 104, in _get_stretched_password
  File "/src/.tox/py36/lib/python3.6/site-packages/fxa/crypto.py", line 58, in quick_stretch_password
  File "/src/.tox/py36/lib/python3.6/site-packages/cryptography/hazmat/primitives/kdf/pbkdf2.py", line 22, in __init__
cryptography.exceptions.UnsupportedAlgorithm: Backend object does not implement PBKDF2HMACBackend.
@davehunt
Copy link
Member

Did you retrigger the job? I don't see this exception when I follow your link.

@stephendonner
Copy link
Contributor Author

Probably; I haven't seen this since, either, I don't think. Maybe a fluke/blip on either Travis or FxA side(s).

@stephendonner
Copy link
Contributor Author

....and it's back: https://travis-ci.org/mozilla/fxapom/jobs/356282078

@stephendonner stephendonner reopened this Mar 21, 2018
@stephendonner
Copy link
Contributor Author

fxapom-travisci-log.txt

@davehunt
Copy link
Member

Did you retrigger the job again? It looks like this is an ignored exception from https://github.com/mozilla/PyFxA/blob/c4a70fa318c86ab4721a6e2d20318b139bbb3b2a/fxa/crypto.py#L53-L59 and is probably only shown when a test fails, but happens every time. Perhaps @rfk could confirm if this is something we need to look into.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants