-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error for macOS<10.15 #41
Comments
The pylsl release is mostly independent from the liblsl release, so you can use pylsl 1.14 with another liblsl version. I haven't got a Mac, but @cboulay know everything there is to know about OS X peculiarities. |
Hi @tstenner thank you for the prompt reply. As I noted in my question, the binaries from the release page and building it myself (using the exact guide you linked to) both produce different errors due to what I believe might be missing files that are required by pip or cmake, namely a the cmake seems to be looking for a setup.py file or a cmakelist that are not provided. Considering the error I linked in the egg_error.txt and the discussion in this thread it might have to do with mismatch between the #egg= and the project name in metadata. This happens when I simply Thanks |
liblsl and liblsl-Python/pylsl are different projects. liblsl is a C++ library, and liblsl-Python/pylsl is a python wrapper that loads the liblsl binary. Your mac can't load the liblsl binary, so unless there's a simple fix I'm not aware of either you or someone else has to build liblsl. As I see you're using anaconda, you can try to let conda build it. In any, case, you need to get a copy of the liblsl repository. It's been a while since I have touched the python installer code, but from what I remember it produces |
Hi @sari-saba-sadiya , it would be good to know where you went astray so we could update the documentation to be clearer. As Tristan mentioned, liblsl and liblsl-Python are different things. But let me make it a bit clearer:
Everything that uses labstreaminglayer in some way, including liblsl-Python (the project containing So the simple solution is to replace¹ the .dylib file that comes with pylsl with a .dylib that is compatible with your system. This doesn't have to be an old version of liblsl. In fact, we would prefer if you use the latest version available. You can try the liblsl release page to see if you can find a dylib that works on your system. If you can't find one then you can build it yourself. Again, this doesn't have to be an old version of liblsl, please use the most recent! If you are still having trouble building the most recent version of liblsl then let us know and I'll try to build one for you. But I'm running MacOS 11.1 so it might take me some time to figure out how to cross-compile for an older version. ¹ - I suggest that in the end you place the correct dylib file inside the pylsl package directory in your Python environment. Until then, while testing, follow Tristan's advice and use the |
Try the attached file. I added |
Hi, Thank you both for your help. The liblsl1.14 did not work, namely I still got the Now it all seems to be working as it should! Regards, |
What do you mean by this? Did you try to build with cmake or another method?
Did you try the source for 1.14? Or just the precompiled 1.14? |
Hi, I tried the source code you provided, previously I also tried the precompiled 1.14. I ended up compiling liblsl 1.13 with conda and it worked (yes previously I just tried cmake). |
Hi
I am using conda with python 3.6.12 on macOS 10.13.6 (high sierra). I successfully installed pylsl via pip but when running
import pylsl
I got the error below. This is a known macOS compatibility issue as pre 10.15 versions can not work with____chkstk_darwin
.I tried downloading and building the 1.13.1 release with the macOS10.13 precompiled code but I get an egg error that I was unable to solve (see attached file), I think there might be a setup.py file missing? Finally I downloaded the zip from github and tried to follow the readthedocs guide but it doesn't seem to work for version 1.13 which doesn't have a cmakefilelist or setup files.
Could you please point me to where there are high sierra compatible files, or a guide on how to build from the 1.13 release?
Thanks,
Sari
egg_error.txt
The text was updated successfully, but these errors were encountered: