CAIDA / bgpstream

BGP measurement analysis for the masses
GNU General Public License v2.0
108 stars 44 forks source link

Problem Installing pybgpstream #21

Closed wicaksana closed 8 years ago

wicaksana commented 8 years ago

I tried to install pybgpstream on a virtual env of Python 3.5 on Ubuntu 16.04 64-bit. I have successfully installed BGPStream. When I installed using pip (pip install pybgpstream), I got the following error:

(omitted) src/_pybgpstream_bgpstream.c:439:37: note: (near initialization for ‘BGPStreamType’) src/_pybgpstream_bgpstream.c:481:15: warning: function declaration isn’t a prototype [-Wstrict-prototypes] PyTypeObject *_pybgpstream_bgpstream_get_BGPStreamType() ^ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Command "/home/arif/Github/anycast-dns-monitoring-framework/env/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-zh56p_38/pybgpstream/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-41tnpipb-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/arif/Github/anycast-dns-monitoring-framework/env/include/site/python3.5/pybgpstream" failed with error code 1 in /tmp/pip-build-zh56p_38/pybgpstream/

From my search in google, similar problem is usually caused by the absence of python-dev. However, I have already installed the latest python3-dev (Python 3.5).

What could be the possible cause of my problem?

Update: I am able to install it on Python 2.7, but I would like to use Python 3.5 if it is possible.

alistairking commented 8 years ago

This is because the currently released version of PyBGPStream does not support Python 3. This has been fixed by PR #11, so if you can, please install pybgpstream from the master branch of this repo, otherwise, we expect to have make a new release in the next few weeks.