# CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team

**URL:** <https://forum.ansible.com/t/cryptographydeprecationwarning-python-2-is-no-longer-supported-by-the-python-core-team/3968>\
**Category:** Get Help\
**Tags:** python, ansible\
**Created:** [February 21, 2024, 7:21am UTC](https://forum.ansible.com/t/cryptographydeprecationwarning-python-2-is-no-longer-supported-by-the-python-core-team/3968 "2024-02-21T07:21:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sayhello2abhi2003](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@sayhello2abhi2003](https://forum.ansible.com/u/sayhello2abhi2003)\
**Post date:** [February 21, 2024, 7:21am UTC](https://forum.ansible.com/t/cryptographydeprecationwarning-python-2-is-no-longer-supported-by-the-python-core-team/3968/1 "2024-02-21T07:21:55Z")

</div>

I do not want to print this message "CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team’ , How can we fix this?

Note: We can’t install PIP or upgrade Python

```auto
ansible -m shell -a "uptime" -i inventory server
/usr/lib/python2.7/site-packages/ansible/parsing/vault/ __init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
  from cryptography.exceptions import InvalidSignature
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
1.1.1.10 | CHANGED | rc=0 >>
 07:08:19 up 3 days, 13:04, 2 users, load average: 0.36, 0.60, 0.54
1.1.1.11 | CHANGED | rc=0 >>
 07:08:19 up 3 days, 12:05, 1 user, load average: 0.23, 0.47, 0.51

Ansible Version: 
  from cryptography.exceptions import InvalidSignature
ansible 2.10.7

python version = 2.7.5

```

- Set at least one tag (the experts follow the tags, so the right people will find you if you tag)
