PBKDF2HMAC missing 1 required positional argument #4

Closed
opened 2025-11-20 22:10:32 +00:00 by berkersal · 0 comments
berkersal commented 2025-11-20 22:10:32 +00:00 (Migrated from github.com)

Hello,

I've installed the app on my Volla Phone Quintus with Ubuntu Touch 20.04 (20.04 OTA-10) (installed by multiboot, I cannot update the OS). And when I try to log in, it fails. I've installed LogViewer and uploaded the apps logs to dpaste and I see the following error:

[20/11/2025 22:04] "PyOtherSide error: Traceback (most recent call last):

  File \"/opt/click.ubuntu.com/sealed.brennoflavio/251115213354/src/ut_components/crash.py\", line 138, in wrapper
    return func(*args, **kwargs)

  File \"/opt/click.ubuntu.com/sealed.brennoflavio/251115213354/src/ut_components/utils.py\", line 166, in wrapper
    response = func(*args, **kwargs)

  File \"/opt/click.ubuntu.com/sealed.brennoflavio/251115213354/src/main.py\", line 122, in login
    key = generate_key_from_password(password)

  File \"/opt/click.ubuntu.com/sealed.brennoflavio/251115213354/src/encryption.py\", line 40, in generate_key_from_password
    kdf = PBKDF2HMAC(
TypeError: __init__() missing 1 required positional argument: 'backend'
"

After some research I've found that the missing backend argument is expected on cryptography library prior to version 3.2 (link to the documentation of 3.1.1). I don't know how the build system works on UT and I couldn't find anywhere that defines the version of the said library.

I can help with troubleshooting deeper and I'm also okay with compiling my own version.

Hello, I've installed the app on my Volla Phone Quintus with Ubuntu Touch 20.04 (20.04 OTA-10) (installed by multiboot, I cannot update the OS). And when I try to log in, it fails. I've installed `LogViewer` and uploaded the apps logs to dpaste and I see the following error: ``` [20/11/2025 22:04] "PyOtherSide error: Traceback (most recent call last): File \"/opt/click.ubuntu.com/sealed.brennoflavio/251115213354/src/ut_components/crash.py\", line 138, in wrapper return func(*args, **kwargs) File \"/opt/click.ubuntu.com/sealed.brennoflavio/251115213354/src/ut_components/utils.py\", line 166, in wrapper response = func(*args, **kwargs) File \"/opt/click.ubuntu.com/sealed.brennoflavio/251115213354/src/main.py\", line 122, in login key = generate_key_from_password(password) File \"/opt/click.ubuntu.com/sealed.brennoflavio/251115213354/src/encryption.py\", line 40, in generate_key_from_password kdf = PBKDF2HMAC( TypeError: __init__() missing 1 required positional argument: 'backend' " ``` After some research I've found that the missing `backend` argument is expected on `cryptography` library prior to version **3.2** ([link to the documentation of 3.1.1](https://cryptography.io/en/3.1.1/hazmat/primitives/key-derivation-functions/)). I don't know how the build system works on UT and I couldn't find anywhere that defines the version of the said library. I can help with troubleshooting deeper and I'm also okay with compiling my own version.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
brennoflavio/sealed#4
No description provided.