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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

20reactions
leonardogmachadocommented, Jul 15, 2020

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

1reaction
dpgasparcommented, Apr 16, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip python-geohash problem during execution of command
just tried this... got: WARNING: Requirement 'python_geohash‑0.8.5‑cp37‑cp37m‑win_amd64.whl' looks like a filename, but the file does not exist ...
Read more >
Error with python-geohash installation while installing ...
Running setup.py install for python-geohash ... error ERROR: Command errored out with exit status 1: command: /Users/avkashchauhan/anaconda3/bin/ ...
Read more >
Apache Superset Windows 10 Installation fails. Using ...
Yes, I installed python-geohash, and I installed MSVSC++2015. I get the same errors as above. After much digging, Apache clearly states that ...
Read more >
python-geohash - PyPI
python -geohash 0.8. 5​​ 1 starts supporting python3k. work fine without C extension. Code is licensed under Apache License 2.0, MIT Licence and...
Read more >
Setup Guide - HERE Data SDK for Python - HERE Developer
While installing the SDK using the sdk_setup.py if you are facing any error like Python.exe - Entry Point not found , follow these...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found