Omd status error python

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

I hope theres a solution, i dont want to set up a new check_mk

Hi,
check_mk using python2 for all calls. So, you must set the right environment to use the commands as root. With new version 1.7, cumming in the next weeks, python3 is supportet.

Cheers, Christian

The problem are these locally installed python libs.
For what script do you need this extra libs?

sorry, i noticed it is probably caused by forcing installing python3… wont do that again

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.