module bbdevice.bb_api not found

Forums BB Series Discussions module bbdevice.bb_api not found

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #244100
    HDwi
    Participant

    I try to run sweep_plot.py from the example in linux 18.04 but i got error said ‘module bbdevice.bb_api not found. it was said to put bb_api.so in bbdevice folder but i couldn’t find it, i just found libbb_api.so.5.0.5 in the lib directory? I already tried this examples in windows platform and had no problem

    #244101
    HDwi
    Participant

    (f”{‘Error’ if status < 0 else ‘Warning’} {status}: {bb_get_error_string(status)} in {func.__name__}()”)

    and i got this error when i try to running bb_api.py

    #244103
    RogerRoger
    Moderator

    Hello, there are a few steps required for Linux use:

    1. Trim the version info off the shared object library file name, and place it in folder bbdevice/ along with libftd2xx.so.

    So, bbdevice/ should contain:

    – bb_api.py
    – libbb_api.so
    – libftd2xx.so

    2. Change the CDLL import line in bb_api.py to read:

    bblib = CDLL("bbdevice/libbb_api.so")

    3. Set the LD_LIBRARY_PATH to the bbdevice/ directory (since that’s where the ftdi library is):

    Run in terminal from the examples/python directory:

    export LD_LIBRARY_PATH="$(pwd)/bbdevice"

    Now the examples should be able to be run from the examples/python directory.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.