labstreaminglayer / pylsl

Python bindings (pylsl) for liblsl
MIT License
142 stars 58 forks source link

util.find_library and CDLL do not use the same path --> library found but not loaded #48

Open cboulay opened 2 years ago

cboulay commented 2 years ago

I recently got bit by this bug.

I think maybe all we can do is update the error message for Linux users to include "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib"

xloem commented 2 years ago

Bumped into this. Noting that PYLSL_LIB can also be set in environment to specify library path. The change to LD_LIBRARY_PATH looks like something that would be resolved by running ldconfig after a manual install of lsl.

[EDIT: I posted I patched the code to work around this, but it turns out I did not actually need to do that. I was simply using an old version of pylsl. Updating to the latest was what resolved the issue for me.]