prestodb / presto-python-client

Python DB-API client for Presto
Apache License 2.0
239 stars 87 forks source link

presto python client not installing ubuntu 18.04.1 LTS #78

Open gigname opened 5 years ago

gigname commented 5 years ago
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

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-vgvza7_o/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-mplly6fm-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-vgvza7_o/pykerberos/ ankit@ankit:~$ python -V Python 3.6.7 ankit@ankit:~$ cls

Command 'cls' not found, but there are 17 similar ones.

ankit@ankit:~$ clr

Command 'clr' not found, did you mean:

command 'cwr' from snap cwr (0.4.2) command 'cyr' from deb console-cyrillic command 'clm' from deb mcl command 'clp' from deb coinor-clp command 'csr' from deb rheolef command 'lr' from deb lr command 'cpr' from deb node-cpr command 'cli' from deb mono-runtime command 'cl' from deb cl-launch command 'mlr' from deb miller command 'ccr' from deb codecrypt command 'car' from deb ucommon-utils command 'ctr' from deb containerd

See 'snap info ' for additional versions.

ankit@ankit:~$ clear

ankit@ankit:~$ sudo pip3 install presto-python-client The directory '/home/ankit/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/ankit/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting presto-python-client Requirement already satisfied: typing in /usr/local/lib/python3.6/dist-packages (from presto-python-client) Requirement already satisfied: ipaddress in ./.local/lib/python3.6/site-packages (from presto-python-client) Requirement already satisfied: future in ./.local/lib/python3.6/site-packages (from presto-python-client) Collecting requests-kerberos (from presto-python-client) Downloading https://files.pythonhosted.org/packages/ee/a2/866f2b9a60f75055137b9ad127033e397963b2c4769d4b5fab1c3c7e8be3/requests_kerberos-0.12.0-py2.py3-none-any.whl Requirement already satisfied: six in ./.local/lib/python3.6/site-packages (from presto-python-client) Requirement already satisfied: requests in ./.local/lib/python3.6/site-packages (from presto-python-client) Requirement already satisfied: click in ./.local/lib/python3.6/site-packages (from presto-python-client) Collecting pykerberos<2.0.0,>=1.1.8; sys_platform != "win32" (from requests-kerberos->presto-python-client) Downloading https://files.pythonhosted.org/packages/9a/b8/1ec56b6fa8a2e2a81420bd3d90e70b59fc83f6b857fb2c2c37accddc8be3/pykerberos-1.2.1.tar.gz Requirement already satisfied: cryptography>=1.3; python_version != "3.3" in ./.local/lib/python3.6/site-packages (from requests-kerberos->presto-python-client) Requirement already satisfied: idna<2.9,>=2.5 in ./.local/lib/python3.6/site-packages (from requests->presto-python-client) Requirement already satisfied: urllib3<1.25,>=1.21.1 in ./.local/lib/python3.6/site-packages (from requests->presto-python-client) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./.local/lib/python3.6/site-packages (from requests->presto-python-client) Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.6/site-packages (from requests->presto-python-client) Requirement already satisfied: asn1crypto>=0.21.0 in ./.local/lib/python3.6/site-packages (from cryptography>=1.3; python_version != "3.3"->requests-kerberos->presto-python-client) Requirement already satisfied: cffi!=1.11.3,>=1.8 in ./.local/lib/python3.6/site-packages (from cryptography>=1.3; python_version != "3.3"->requests-kerberos->presto-python-client) Requirement already satisfied: pycparser in ./.local/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.8->cryptography>=1.3; python_version != "3.3"->requests-kerberos->presto-python-client) Installing collected packages: pykerberos, requests-kerberos, presto-python-client Running setup.py install for pykerberos ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-fkmdrc57/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-ralm9n6m-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_ext building 'kerberos' extension creating build creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/src x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c src/kerberos.c -o build/temp.linux-x86_64-3.6/src/kerberos.o In file included from src/kerberos.c:19:0: 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

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-fkmdrc57/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-ralm9n6m-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-fkmdrc57/pykerberos/ ankit@ankit:~$

ggreg commented 5 years ago

Can you apt-get install libgssapi-dev and retry?

gigname commented 5 years ago

image

ggreg commented 5 years ago

libgssglue-dev looks OK. Otherwise you can try to install libkrb5-dev.

ggreg commented 5 years ago

presto-python-client 0.6.0 is now available and does not have the dependency to requests_kerberos. Do you need kerberos authentication or are you fine without it?

ggreg commented 5 years ago

Can you just retry pip install presto-python-client? It should install version 0.6.0 and not require kerberos development packages.

gigname commented 5 years ago

i dont need kerberos..fine without it..will try after office hours.will update u once done

gigname commented 5 years ago

can you help me in setting up this also? https://hub.docker.com/r/avapno/apache-phoenix/

im not able to access localhost:8765 maybe some kerberos isue.. please help