Skip to content
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

DeprecationWarning: 'crypt' is deprecated #721

Closed
phillipuniverse opened this issue Nov 26, 2023 · 1 comment
Closed

DeprecationWarning: 'crypt' is deprecated #721

phillipuniverse opened this issue Nov 26, 2023 · 1 comment

Comments

@phillipuniverse
Copy link

Here's the stack trace when importing. Specifically this happens when I run force_auto_coercion()

../../Library/Caches/pypoetry/virtualenvs/myproj-u2DHQYKX-py3.11/lib/python3.11/site-packages/sqlalchemy_utils/__init__.py:59: in <module>
    from .types import (  # noqa
../../Library/Caches/pypoetry/virtualenvs/myproj-u2DHQYKX-py3.11/lib/python3.11/site-packages/sqlalchemy_utils/types/__init__.py:20: in <module>
    from .password import Password, PasswordType  # noqa
../../Library/Caches/pypoetry/virtualenvs/myproj-u2DHQYKX-py3.11/lib/python3.11/site-packages/sqlalchemy_utils/types/password.py:13: in <module>
    from passlib.context import LazyCryptContext
../../Library/Caches/pypoetry/virtualenvs/myproj-u2DHQYKX-py3.11/lib/python3.11/site-packages/passlib/context.py:16: in <module>
    from passlib.registry import get_crypt_handler, _validate_handler_name
../../Library/Caches/pypoetry/virtualenvs/myproj-u2DHQYKX-py3.11/lib/python3.11/site-packages/passlib/registry.py:12: in <module>
    from passlib.ifc import PasswordHash
../../Library/Caches/pypoetry/virtualenvs/myproj-u2DHQYKX-py3.11/lib/python3.11/site-packages/passlib/ifc.py:10: in <module>
    from passlib.utils.decor import deprecated_method
../../Library/Caches/pypoetry/virtualenvs/myproj-u2DHQYKX-py3.11/lib/python3.11/site-packages/passlib/utils/__init__.py:854: in <module>
    from crypt import crypt as _crypt
../../.pyenv/versions/3.11.6/lib/python3.11/crypt.py:20: in <module>
    warnings._deprecated(__name__, remove=(3, 13))
../../.pyenv/versions/3.11.6/lib/python3.11/warnings.py:514: in _deprecated
    warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13
@phillipuniverse
Copy link
Author

After opening I discovered this is already tracked at #646

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant