Closed xloem closed 3 years ago
I see you're using python 3.8 but I need more detailed information.
Exactly what version of Python 3? What version of scikit-learn and how was it installed? How did you install pylsl? What version do you have?
Not that it's worth much, but I just did a quick test with python 3.8.5, scikit-learn 0.23.2, and the latest pylsl from github, ON WINDOWS, and I didn't encounter any problems. I don't have time to test in Ubuntu right now; maybe tomorrow.
I remembered I had a WSL2 Ubuntu 20.04 environment so I tested there quickly (this time pylsl from pypi) and also didn't have any problems.
(test_pylsl) chad@AAA:/mnt/c/Users/chad$ pip install pylsl
Collecting pylsl
Downloading pylsl-1.14.0-py2.py3-none-manylinux2010_x86_64.whl (815 kB)
|████████████████████████████████| 815 kB 3.2 MB/s
Installing collected packages: pylsl
Successfully installed pylsl-1.14.0
Python 3.8.5 (default, Sep 4 2020, 07:30:14)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import pylsl
In [2]: import sklearn
In [3]: exit()
I had set the packages up with pip3 install pylsl && pip3 install sklearn
. I'm using a git checkout of python3.8.
$ python3 --version
Python 3.8.7+
cpython]$ git describe
v3.8.7-3-g285b38c3a8
It will take me some time to test any further. I tried to install pylsl from git and I'm having some troubles setting it up; the setup isn't working right now anymore.
Okay, it looks like I had some old liblsl.so laying around that was causing the issue. Upgrading liblsl.so resolved it. Thanks for your patience.
To clarify, the resolution to this issue is from installing pylsl from git, not from the binary liblsl. After installing from git once, the .whl file gets cached and is reinstalled when outside git.
This happens only when pylsl is imported first: