CAIDA / bgpstream

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

Python import issue: undefined symbol: bgpstream_stop #98

Open frankwxu opened 5 years ago

frankwxu commented 5 years ago

Use v2.

Python 2.7.16+ (default, Sep 4 2019, 08:19:57)
[GCC 9.2.1 20190827] on linux2 Type "help", "copyright", "credits" or "license" for more information.

from _pybgpstream import BGPStream, BGPRecord, BGPElem Traceback (most recent call last): File "", line 1, in ImportError: /usr/local/lib/python2.7/dist-packages/_pybgpstream.so: undefined symbol: bgpstream_stop

digizeph commented 5 years ago

Hi @frankwxu, Thank you for using bgpstream and bringing up this issue! Unfortunately, I am not able to reproduce this issue.

Here is a quick summary of my environment setup:

Output from the command:

Python 2.7.16 (default, Sep  2 2019, 11:59:44)
[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from _pybgpstream import BGPStream, BGPRecord, BGPElem
>>>

Could you try reinstall the libbgpstream and pybgpstream from source and retry? (Note: try to do a sudo ldconfig if you're on a linux environment, just in case the installed library was not registered by the system yet).