Hello,
i faced some python errors when i want to retreive the omd status with omd status
Thats what i get:
/omd/versions/1.6.0p17.cee.demo/lib/python/OpenSSL/crypto.py:12: CryptographyDep recationWarning: Python 2 is no longer supported by the Python core team. Suppor t for it is now deprecated in cryptography, and will be removed in a future rele ase. from cryptography import x509 Traceback (most recent call last): File "/omd/sites/gvm/bin/omd", line 62, in <module> import omdlib.main File "/omd/versions/1.6.0p17.cee.demo/lib/python/omdlib/main.py", line 53, in <module> import omdlib.certs File "/omd/versions/1.6.0p17.cee.demo/lib/python/omdlib/certs.py", line 34, in <module> from OpenSSL import crypto File "/omd/versions/1.6.0p17.cee.demo/lib/python/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import crypto, SSL File "/omd/versions/1.6.0p17.cee.demo/lib/python/OpenSSL/crypto.py", line 12, in <module> from cryptography import x509 File "/omd/sites/gvm/local/lib/python/cryptography/x509/__init__.py", line 8, in <module> from cryptography.x509.base import ( File "/omd/sites/gvm/local/lib/python/cryptography/x509/base.py", line 23, in <module> from cryptography.x509.extensions import Extension, ExtensionType File "/omd/sites/gvm/local/lib/python/cryptography/x509/extensions.py", line 2 2, in <module> from cryptography.hazmat.primitives import constant_time, serialization File "/omd/sites/gvm/local/lib/python/cryptography/hazmat/primitives/serializa tion/__init__.py", line 22, in <module> from cryptography.hazmat.primitives.serialization.ssh import ( File "/omd/sites/gvm/local/lib/python/cryptography/hazmat/primitives/serializa tion/ssh.py", line 27, in <module> from bcrypt import kdf as _bcrypt_kdf File "/omd/sites/gvm/local/lib/python/bcrypt/__init__.py", line 57 def gensalt(rounds: int = 12, prefix: bytes = b"2b") -> bytes: ^ SyntaxError: invalid syntax
It seems its not using python3?
I have python version 3.8.2 but its using python 2.7.17 somehow
How can i solve this?
best regards,
alessio