ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
830 stars 1.53k forks source link

udm_user imports deprecated stdlib library 'crypt' #4690

Open felixfontein opened 2 years ago

felixfontein commented 2 years ago

Summary

udm_user imports the deprecated stdlib library 'crypt'. See https://peps.python.org/pep-0594/#crypt for more information, that library is scheduled for removal from Python 3.13. The module has to be adjusted to work without this library.

Issue Type

Bug Report

Component Name

udm_user

Ansible Version

-

Community.general Version

-

Configuration

No response

OS / Environment

No response

Steps to Reproduce

-

Expected Results

-

Actual Results

No response

Code of Conduct

ansibullbot commented 2 years ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 2 years ago

cc @keachi click here for bot help

ansibullbot commented 2 years ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

felixfontein commented 1 year ago

This is still deprecated in Python 3.11, and will be removed in Python 3.12 - which will be released next year. If this isn't fixed by then, the module will stop working with new Python versions.

https://docs.python.org/3.12/library/crypt.html#module-crypt

felixfontein commented 5 months ago

Python 3.13 no longer supports crypt, so this module no longer supports Python 3.13 :-(