openbci-archive / OpenBCI_Python

The Python software library designed to work with OpenBCI hardware.
MIT License
506 stars 207 forks source link

undefined symbol: lsl_library_info #122

Open JayroMartinez opened 5 years ago

JayroMartinez commented 5 years ago

When I execute the command python user.py -p /dev/ttyUSB0 I get the following error:

Traceback (most recent call last): File "user.py", line 66, in <module> import openbci.cyton as bci File "/home/pi/OpenBCI_Python/openbci/__init__.py", line 2, in <module> from .plugins import * File "/home/pi/OpenBCI_Python/openbci/plugins/__init__.py", line 3, in <module> from .streamer_lsl import * File "/home/pi/OpenBCI_Python/openbci/plugins/streamer_lsl.py", line 6, in <module> from pylsl import StreamInfo, StreamOutlet File "/home/pi/.local/lib/python2.7/site-packages/pylsl/__init__.py", line 2, in <module> from .pylsl import IRREGULAR_RATE, DEDUCED_TIMESTAMP, FOREVER, cf_float32,\ File "/home/pi/.local/lib/python2.7/site-packages/pylsl/pylsl.py", line 1206, in <module> lib.lsl_library_info.restype = c_char_p File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__ func = self.__getitem__(name) File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: /home/pi/.local/lib/python2.7/site-packages/pylsl/liblsl32.so: undefined symbol: lsl_library_info

I'm running the code over Raspberry Pi 3B+ & Raspbian GNU/Linux 9 (stretch). I've tried to replace the liblsl32.so file with the file compiled for ARM processor. I've also tried to compile the code on my own like in https://github.com/sccn/lsl_archived/issues/336

Any idea??