8000 Update error message for cryptography package by srcole · Pull Request #769 · PyMySQL/PyMySQL · GitHub
[go: up one dir, main page]

Skip to content

Update error message for cryptography package #769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 7, 2019
Merged

Update error message for cryptography package #769

merged 3 commits into from
Jan 7, 2019

Conversation

srcole
Copy link
Contributor
@srcole srcole commented Jan 6, 2019

Issue #768:

I just downloaded mysql (v8.0.13) and pymysql (v0.9.3) on my Mac (OS v10.14). This newest version of mysql now suggests encrypting passwords with SHA256 by default.

I was trying to connect to a database in mysql using:

import pymysql
con = pymysql.connect('localhost', 'testuser', 'testpw', 'testdb')

And got the error: RuntimeError: cryptography is required for sha256_password or caching_sha2_password

It took me 10 minutes or so on Google, and going to where this error was encoded on this github, to figure out that "cryptography" is just a package I need to pip install.

I've reworded the error message:

RuntimeError: The python package, cryptography, is required for sha256_password or caching_sha2_password. Obtain this package by running `pip install cryptography` and retry.

@methane methane merged commit a3c0631 into PyMySQL:master Jan 7, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0