Having trouble importing pylsl
Hi everyone, I having trouble importing pylsl. Everytime I try to import it I get:
Traceback (most recent call last):
File "C:/Users/computer/PycharmProjects/pythonProject1/MuseRead.py", line 33, in
File "C:\Users\computer\PycharmProjects\pythonProject1\venv\lib\site-packages\pylsl\pylsl.py", line 1217, in
I'm tried looking at the installation guide for pylsl and the only thing I can see is to use pip install pylsl which is what I used.
Thanks in advance to everyone that helps.
I am getting the same error.
Traceback (most recent call last):
File "time1.py", line 1, in
File "C:\Users\rakes\AppData\Local\Programs\Python\Python38\lib\site-packages\pylsl\pylsl.py", line 1217, in
Same goes here:
Traceback (most recent call last):
File "
File "C:\Users\user1\anaconda3\lib\site-packages\pylsl\pylsl.py", line 1217, in
@bboyalu I got my problem solved, I had a rogue DLL in my system. Add a print(libpath) immediately before the lib = CDLL(libpath) line and try to import pylsl again? The location should match with the python library location where pylsl is present.
@Rakesh420 Ah, yes, thank you so much! For some reason it was pointing to the Muse SDK installation folder, C:\Program Files (x86)\Muse\lsl.dll. I uninstalled the Muse SDK and now I can import pylsl without any issue.
I think this is the piece of code that does that, but Muse SDK's lsl.dll is not working in this situation.
path = util.find_library('lsl' + bitness + debugsuffix) or \ util.find_library('liblsl' + bitness + debugsuffix)
@bboylalu I had the same issue with the Muse SDK. I deleted the lsl.dll in the Muse folder. And when the printed the libpath, it showed in the proper directory. Now pylsl is working in my computer.
This repo should be archived. Please use https://github.com/labstreaminglayer/liblsl-Python