Skip to content

ImportError: cannot import name 'int_from_bytes' from 'cryptography.utils'  #38

@virdb

Description

@virdb

Fresh new clone, added and activated fresh new venv, then pip install -r requirements_mac.txt.

>>> from chrome import Chrome
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/marco/repos/chrome_password_grabber/chrome.py", line 15, in <module>
    import secretstorage
  File "/home/marco/repos/chrome_password_grabber/env/lib/python3.12/site-packages/secretstorage/__init__.py", line 13, in <module>
    from secretstorage.collection import Collection, create_collection, \
  File "/home/marco/repos/chrome_password_grabber/env/lib/python3.12/site-packages/secretstorage/collection.py", line 21, in <module>
    from secretstorage.dhcrypto import Session
  File "/home/marco/repos/chrome_password_grabber/env/lib/python3.12/site-packages/secretstorage/dhcrypto.py", line 16, in <module>
    from cryptography.utils import int_from_bytes
ImportError: cannot import name 'int_from_bytes' from 'cryptography.utils' (/home/marco/repos/chrome_password_grabber/env/lib/python3.12/site-packages/cryptography/utils.py). Did you mean: 'int_to_bytes'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions