Skip to content

pip install of geoip2 fails #108

@samer-faour-exa

Description

@samer-faour-exa

I am unable to install geoip2 with the following error:

Installing collected packages: multidict, async-timeout, typing-extensions, yarl, idna-ssl, aiohttp, geoip2
Running setup.py install for multidict ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-xd1kaob1/multidict/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-wsso88ig-record/install-record.txt --single-version-externally-managed --compile:
*********************
* Accelerated build *
*********************
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/multidict
copying multidict/init.py -> build/lib.linux-x86_64-3.6/multidict
copying multidict/_abc.py -> build/lib.linux-x86_64-3.6/multidict
copying multidict/_compat.py -> build/lib.linux-x86_64-3.6/multidict
copying multidict/_multidict_base.py -> build/lib.linux-x86_64-3.6/multidict
copying multidict/_multidict_py.py -> build/lib.linux-x86_64-3.6/multidict
running egg_info
writing multidict.egg-info/PKG-INFO
writing dependency_links to multidict.egg-info/dependency_links.txt
writing top-level names to multidict.egg-info/top_level.txt
reading manifest file 'multidict.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files found matching 'multidict/_multidict.html'
warning: no previously-included files found matching 'multidict/
.so'
warning: no previously-included files found matching 'multidict/.pyd'
warning: no previously-included files found matching 'multidict/
.pyd'
no previously-included directories found matching 'docs/_build'
writing manifest file 'multidict.egg-info/SOURCES.txt'
copying multidict/init.pyi -> build/lib.linux-x86_64-3.6/multidict
copying multidict/_multidict.c -> build/lib.linux-x86_64-3.6/multidict
copying multidict/py.typed -> build/lib.linux-x86_64-3.6/multidict
creating build/lib.linux-x86_64-3.6/multidict/_multilib
copying multidict/_multilib/defs.h -> build/lib.linux-x86_64-3.6/multidict/_multilib
copying multidict/_multilib/dict.h -> build/lib.linux-x86_64-3.6/multidict/_multilib
copying multidict/_multilib/istr.h -> build/lib.linux-x86_64-3.6/multidict/_multilib
copying multidict/_multilib/iter.h -> build/lib.linux-x86_64-3.6/multidict/_multilib
copying multidict/_multilib/pair_list.h -> build/lib.linux-x86_64-3.6/multidict/_multilib
copying multidict/_multilib/views.h -> build/lib.linux-x86_64-3.6/multidict/_multilib
running build_ext
building 'multidict._multidict' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/multidict
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 -I/usr/include/python3.6m -c multidict/_multidict.c -o build/temp.linux-x86_64-3.6/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic
multidict/_multidict.c:1:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1

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

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-xd1kaob1/multidict/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-wsso88ig-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-xd1kaob1/multidict/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions