-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python Import issue undefined symbol: http_open_hdrs #105
Comments
I've just done a new install of Ubuntu 18.04.4 LTS and am experiencing the same issue. Mine is a fresh install and I encountered the issue running the test print script. Did this ever get resolved or anyone have any ideas?
|
My best guess is that the version of libwandio that you have installed is too old -- that function wasn't exported until 4.2.0. |
I went through the process listed out on the site at the two links below. Might better if I build a new VM and start over. I had hit a couple issues with dependencies along the way that I didn't document. https://bgpstream.caida.org/docs/install/bgpstream |
I am up and running now with a fresh install. It turns out that I missed an error on the bgpstream install. I detailed the process I went through should someone come across this.
This took me to Ubuntu 18.04.5 LTS
Lots of google to figure this out. Found someone that mentioned using aptitude to install a package to better determine the dependency issues.
I searched everywhere and tried many methods. No installation candidates could be found for librdkafka-dev & librdkafka1. I checked the Ubuntu packaged page and it referenced the package being in "Universe" I checked and Universe appears to be already set even though things were failing.
I added Universe anyways just to see.
This also installed librdkafka1.
After this I was able to install bgpstream
Then verified it was installed
From there I was able to successfully install Python bgpstream
And from there I was able to run the test command (note the switch to python3 from python)
Lots of output followed, omitted for brevity. |
@bkbristlin Thank you for posting your solution! This will be very helpful for people who encountered the similar problems. We do have limbo@debian-pkg:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
limbo@debian-pkg:~$ apt search librdkafka
Sorting... Done
Full Text Search... Done
golang-github-confluentinc-confluent-kafka-go-dev/bionic,bionic 0.11.0-2 all
Apache Kafka Golang client by Confluent
librdkafka++1/bionic 0.11.3-1build1 amd64
library implementing the Apache Kafka protocol (C++ bindings)
librdkafka-dev/bionic 0.11.3-1build1 amd64
library implementing the Apache Kafka protocol (development headers)
librdkafka1/bionic 0.11.3-1build1 amd64
library implementing the Apache Kafka protocol
python-confluent-kafka/bionic 0.11.0-1 amd64
Python client to interact with Kafka - Python 2.7
python3-confluent-kafka/bionic 0.11.0-1 amd64
Python client to interact with Kafka - Python 3.x |
Description: Ubuntu 18.04.4 LTS
i have followed the installation procedure and the dependencies installation procedures.
The test fails with ImportError: No module named _pybgpstream_caida
if I change the import line to "import pybgpstream as _pybgpstream" I then get an error which states ImportError: /usr/lib/x86_64-linux-gnu/libbgpstream.so.3: undefined symbol: http_open_hdrs
Also try from python interpreter below.
Python 2.7.17 (default, Nov 7 2019, 10:07:09)
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: