Skip to content

Attribute error connections.py trying to use an inexisting method #1000

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

Closed
DiegoMagg opened this issue Aug 27, 2021 · 1 comment
Closed

Attribute error connections.py trying to use an inexisting method #1000

DiegoMagg opened this issue Aug 27, 2021 · 1 comment

Comments

@DiegoMagg
Copy link

Import error
cannot import name 'scramble_old_password' from 'pymysql._auth'

To Reproduce

from pymysql import _auth
_auth.scramble_old_password()

Hi, I had a problem with pymysql generating an attribute error in a service running on docker. Looking at the code I noticed that there is a call to a method that doesn't exist in the "_auth" file.

        elif plugin_name == b"mysql_old_password":
            data = (
                _auth.scramble_old_password(self.password, auth_packet.read_all())
                + b"\0"
            )

https://github.com/PyMySQL/PyMySQL/blob/main/pymysql/connections.py line 966.

scramble_old_password doesn't exist on _auth file anymore.

@DiegoMagg DiegoMagg changed the title Attribute error connections.py triyng to use an inexisting method Attribute error connections.py trying to use an inexisting method Aug 27, 2021
@methane
Copy link
Member

methane commented Aug 28, 2021

Thank you for reporting. But this is duplicate of #981.

@methane methane closed this as completed Aug 28, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants