Forums › BB Series Discussions › module bbdevice.bb_api not found
- This topic has 2 replies, 2 voices, and was last updated 1 year, 7 months ago by
Roger.
- AuthorPosts
HDwiParticipantI 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
HDwiParticipant(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
RogerModeratorHello, 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.so2. 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.
- AuthorPosts
You must be logged in to reply to this topic.