Error installing gevent via pip

6,049 views
Skip to first unread message

webwurst

unread,
Apr 9, 2011, 5:26:49 PM4/9/11
to gevent: coroutine-based Python network library
pip.log:

Downloading/unpacking gevent
Running setup.py egg_info for package gevent
running egg_info
writing requirements to pip-egg-info/gevent.egg-info/requires.txt
writing pip-egg-info/gevent.egg-info/PKG-INFO
writing top-level names to pip-egg-info/gevent.egg-info/
top_level.txt
writing dependency_links to pip-egg-info/gevent.egg-info/
dependency_links.txt
warning: manifest_maker: standard file '-c' not found

reading manifest file 'pip-egg-info/gevent.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pip-egg-info/gevent.egg-info/SOURCES.txt'
Downloading/unpacking greenlet (from gevent)
Running setup.py egg_info for package greenlet
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'repository'
warnings.warn(msg)
running egg_info
writing pip-egg-info/greenlet.egg-info/PKG-INFO
writing top-level names to pip-egg-info/greenlet.egg-info/
top_level.txt
writing dependency_links to pip-egg-info/greenlet.egg-info/
dependency_links.txt
warning: manifest_maker: standard file '-c' not found

reading manifest file 'pip-egg-info/greenlet.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pip-egg-info/greenlet.egg-info/SOURCES.txt'
Source in ./build/greenlet has version 0.3.1, which satisfies
requirement greenlet (from gevent)
Installing collected packages: gevent, greenlet
Running setup.py install for gevent
Running command /usr/bin/python -c "import setuptools;__file__='/
root/build/gevent/setup.py';execfile(__file__)" install --single-
version-externally-managed --record /tmp/pip-cZUS1W-record/install-
record.txt
running install
running build
running build_py
running build_ext
building 'gevent.core' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -
Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c gevent/core.c -o
build/temp.linux-x86_64-2.7/gevent/core.o
In file included from gevent/core.c:221:0:
gevent/libevent.h:9:19: fatal error: event.h: No such file or
directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import
setuptools;__file__='/root/build/gevent/setup.py';execfile(__file__)"
install --single-version-externally-managed --record /tmp/pip-cZUS1W-
record/install-record.txt:
running install

running build

running build_py

running build_ext

building 'gevent.core' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -
Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c gevent/core.c -o
build/temp.linux-x86_64-2.7/gevent/core.o

In file included from gevent/core.c:221:0:

gevent/libevent.h:9:19: fatal error: event.h: No such file or
directory

compilation terminated.

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/root/build/
gevent/setup.py';execfile(__file__)" install --single-version-
externally-managed --record /tmp/pip-cZUS1W-record/install-record.txt
failed with error code 1
Exception information:
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/pip/basecommand.py", line 130, in
main
self.run(options, args)
File "/usr/lib/pymodules/python2.7/pip/commands/install.py", line
228, in run
requirement_set.install(install_options, global_options)
File "/usr/lib/pymodules/python2.7/pip/req.py", line 1045, in
install
requirement.install(install_options, global_options)
File "/usr/lib/pymodules/python2.7/pip/req.py", line 560, in install
cwd=self.source_dir, filter_stdout=self._filter_install,
show_stdout=False)
File "/usr/lib/pymodules/python2.7/pip/__init__.py", line 249, in
call_subprocess
% (command_desc, proc.returncode))
InstallationError: Command /usr/bin/python -c "import
setuptools;__file__='/root/build/gevent/setup.py';execfile(__file__)"
install --single-version-externally-managed --record /tmp/pip-cZUS1W-
record/install-record.txt failed with error code 1


Can someone help out?

James Cooper

unread,
Apr 10, 2011, 12:43:55 AM4/10/11
to gev...@googlegroups.com
Hi,

Looks like you don't have libevent installed.  What Linux distro are you using?  On ubuntu you can do:

apt-get install libevent-dev

-- James
Reply all
Reply to author
Forward
0 new messages