getting this error
tony@ubuntu:~$ sudo pip install pykerberos [sudo] password for tony: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support WARNING: The directory '/home/tony/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting pykerberos Downloading pykerberos-1.2.1.tar.gz (24 kB) Building wheels for collected packages: pykerberos Building wheel for pykerberos (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sZaCg1/pykerberos/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sZaCg1/pykerberos/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-sAbKUA cwd: /tmp/pip-install-sZaCg1/pykerberos/ Complete output (14 lines): running bdist_wheel running build running build_ext building 'kerberos' extension creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/src x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-UKCoZ3/python2.7-2.7.17=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/kerberos.c -o build/temp.linux-x86_64-2.7/src/kerberos.o In file included from src/kerberos.c:19: src/kerberosbasic.h:17:10: fatal error: gssapi/gssapi.h: No such file or directory #include <gssapi/gssapi.h> ^~~~~~~~~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for pykerberos Running setup.py clean for pykerberos Failed to build pykerberos Installing collected packages: pykerberos Running setup.py install for pykerberos ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sZaCg1/pykerberos/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sZaCg1/pykerberos/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-EyqB2F/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python2.7/pykerberos cwd: /tmp/pip-install-sZaCg1/pykerberos/ Complete output (14 lines): running install running build running build_ext building 'kerberos' extension creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/src x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-UKCoZ3/python2.7-2.7.17=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/kerberos.c -o build/temp.linux-x86_64-2.7/src/kerberos.o In file included from src/kerberos.c:19: src/kerberosbasic.h:17:10: fatal error: gssapi/gssapi.h: No such file or directory #include <gssapi/gssapi.h> ^~~~~~~~~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sZaCg1/pykerberos/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sZaCg1/pykerberos/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-EyqB2F/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python2.7/pykerberos Check the logs for full command output. On Mon, May 25, 2020 at 3:21 PM Jordan Borean <[email protected]> wrote: > The error message is saying > > The python kerberos library is not installed >> > > Make sure you have installed pykerberos by running 'pip install > pykerberos' or if you are managing Python packages through your system > package manager 'apt install python-kerberos'. > > You can verify whether it is installed with 'python -c "import kerberos"'. > Make sure the Python you use to execute this check is the same Python that > Ansible runs with. > > Thanks > > Jordan > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/92b6295c-8117-4029-80c2-63a08b532cdc%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/92b6295c-8117-4029-80c2-63a08b532cdc%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CALmkhkrccuhmhuWPXRtoH6wSkR8W_F1qNfFSfufgaq9%3DtaobVA%40mail.gmail.com.
