superset: Running setup.py install for python-geohash ... error

Running setup.py install for python-geohash

... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nhtndi9s/python-geohash/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nhtndi9s/python-geohash/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-wzqmtao9/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m/python-geohash
         cwd: /tmp/pip-install-nhtndi9s/python-geohash/
    Complete output (16 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    copying geohash.py -> build/lib.linux-x86_64-3.6
    copying quadtree.py -> build/lib.linux-x86_64-3.6
    copying jpgrid.py -> build/lib.linux-x86_64-3.6
    copying jpiarea.py -> build/lib.linux-x86_64-3.6
    running build_ext
    building '_geohash' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/src
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYTHON_MODULE=1 -I/usr/include/python3.6m -c src/geohash.cpp -o build/temp.linux-x86_64-3.6/src/geohash.o
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nhtndi9s/python-geohash/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nhtndi9s/python-geohash/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-wzqmtao9/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m/python-geohash Check the logs for full command output.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 3
  • Comments: 16 (5 by maintainers)

Most upvoted comments

I got this error in CentOS and python 3.6

I solved this after installed the OS dependencies (changing to python3):

sudo yum install gcc gcc-c++ libffi-devel python3-devel python3-pip python3-wheel openssl-devel cyrus-sasl-devel openldap-devel

Highly recommend using docker-compose for dev and docker images in production. This shouldn’t be an issue in our official docker

I have such an error. This package uses codes from 10 years ago (python-geohash) !!!

Seems like you need gcc first:

unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1

https://superset.apache.org/installation.html#os-dependencies