Skip to content

PyMySQL: "RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods" #1945

@mdmintz

Description

@mdmintz

PyMySQL: "RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods"

Solution: pip install cryptography - (https://stackoverflow.com/a/54586797/7058266)

Why I just started seeing this: I recently removed several required dependencies that I didn't think were required: bc6b0cf

Since PyMySQL needs cryptography, I can have it get installed as an optional dependency if using the SeleniumBase MySQL DB plugin.


Update: Installing PyMySQL[rsa] should be enough. (It includes the necessary dependencies.)

Metadata

Metadata

Assignees

Labels

bugUh oh... Something needs to be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions