ledatelescope / bifrost

A stream processing framework for high-throughput applications.
BSD 3-Clause "New" or "Revised" License
66 stars 29 forks source link

Problem with sudoer,ImportError: bifrost not found #134

Closed Leeying1235 closed 2 years ago

Leeying1235 commented 4 years ago

Hi,folks: When i use bifrost with root permission,i get problems as below:

  File "test_pcap.py", line 2, in <module>
  from code.file_write import FileWriteBlock
  File "/home/ubuntu/Desktop/python_script/final_code/code/file_write.py", line 1, in <module>
    from bifrost.pipeline import SinkBlock
  File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/__init__.py", line 34, in <module>
    import core, memory, affinity, ring, block, address, udp_socket
  File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/core.py", line 29, in <module>
    from libbifrost import _bf
  File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/libbifrost.py", line 38, in <module>
    import libbifrost_generated as _bf
  File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/libbifrost_generated.py", line 609, in <module>
    _libs["bifrost"] = load_library("bifrost")
  File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/libbifrost_generated.py", line 369, in load_library
    raise ImportError("%s not found." % libname)
ImportError: bifrost not found.

Any hints,and how to solve it? Thanks, Lee

jaycedowell commented 4 years ago

It sounds like a LD_LIBRARY_PATH problem as with #109. Have you tried updating this environment variable to include the installation path of libbifrost.so?

jaycedowell commented 2 years ago

Closing with the release of v0.10.0.