Open bhuffaker opened 4 years ago
Judging from your first quote block, you seems to be installing bgpstream version 1 using home brew. The pip version of pybgpstream (2.0) supports only libbgpstream v2 (see release note). You should try install v2 bgpstream then try again. Also, the homebrew version is not maintained by CAIDA (yet).
With that, I can't reproduce the issue on Mojave where I have libbgpstream v2 installed:
pip3 install --upgrade --force-reinstall pybgpstream
and import pybgpstream
on 10.14.5.Try this most recent release of libbgpstream v2 rc3 here: https://github.com/CAIDA/libbgpstream/releases/tag/v2.0-rc3
@bhuffaker were you able to fix the issue?
ping
no
On Mar 31, 2020, at 2:29 AM, Mingwei Zhang notifications@github.com wrote:
ping
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CAIDA/pybgpstream/issues/22#issuecomment-606135653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AECPT7LLJ2ZWYRBKKFJTPX3RKDJHZANCNFSM4LC2EHNQ.
I managed to successfully brew install bgpstream
and then pip install pybgpstream
on macOS 12.5 just now by setting C_INCLUDE_PATH
and LIBRARY_PATH
:
$ brew install bgpstream
...
==> Installing bgpstream
==> Pouring bgpstream--2.2.0.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/bgpstream/2.2.0: 47 files, 1.1MB
...
$ brew list bgpstream
/opt/homebrew/Cellar/bgpstream/2.2.0/bin/bgpreader
/opt/homebrew/Cellar/bgpstream/2.2.0/bin/parsebgp
/opt/homebrew/Cellar/bgpstream/2.2.0/include/ (33 files)
/opt/homebrew/Cellar/bgpstream/2.2.0/lib/libbgpstream.3.dylib
/opt/homebrew/Cellar/bgpstream/2.2.0/lib/libparsebgp.2.dylib
/opt/homebrew/Cellar/bgpstream/2.2.0/lib/ (4 other files)
$ C_INCLUDE_PATH=/opt/homebrew/Cellar/bgpstream/2.2.0/include LIBRARY_PATH=/opt/homebrew/Cellar/bgpstream/2.2.0/lib/ pip install pybgpstream
...
$ python
>>> import pybgpstream
>>> stream = pybgpstream.BGPStream(
collectors=["route-views.sg", "route-views.eqix"],
...
)
>>>
Note that Homebrew does now happily install libbgpstream 2. Maintainers, you may want to update the "Coming Soon" on https://bgpstream.caida.org/docs/install/bgpstream#osx to say that it works!
os: macOS 10.15.3 > python3 temp.py
> pip3 install --upgrade --force-reinstall pybgpstream
>>> import pybgpstream