-
Notifications
You must be signed in to change notification settings - Fork 132
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
Crash using pylsl #862
Comments
This package contains native components, so it would have to be built into a wheel file. If you'd like to try doing this yourself, follow the instructions here. And if you're successful, please make a pull request so we can add the package to the public repository. In this case, it looks like we'd need two wheels: one for pylsl and one for LSL itself. The relationship between these wheels would be similar to that between pyzmq and chaquopy-libzmq, as described in the instructions linked above. If anyone else wants this package too, let us know by clicking the thumbs-up button above. |
I try to add pylsl, but when i run the command
And after nothing, so i dont know how to build and add package |
Those appear to be VSCode messages (microsoft/vscode#179253). They have nothing to do with build-wheel, and I'm not even sure if they're errors. Notes:
|
Thanks for your help, I was able to make progress with this. So I have in /home/killian/chaquopy/android-sdk i have my SDK, maybe it's in wrong folder And for pylsl and LSL, i think pylsl has not dependecies on LSL, the module has all. But I'm not sure, did you know how can I be sure ? |
This sounds like you didn't go through the necessary steps in https://github.com/chaquo/chaquopy/blob/master/server/pypi/README.md. You need to download the appropriate targets and place them as mentioned in the Readme. |
Oh yes my folder is named 3.16.8... and its not shocked me...
|
Try with
|
@KyucraftV2: Please mark multi-line logs with triple backticks as shown here, otherwise they're impossible to read. The extra slash should probably be ignored, so I'm not sure what the problem is. How much of the path Maybe you interrupted it during a previous attempt to install the NDK, so the installation is incomplete. In that case, try deleting
As it says at https://pypi.org/project/pylsl/, the pylsl package only includes liblsl on Windows. On all other platforms, liblsl has to be installed separately. |
For the path who actually exists is And thanks for the remark on the backticks 👍 |
Hi, I add lsl like chaquopy-libzmq, but now, I understand I need to build lsl before pylsl so when i use this command :
But I dont understand why I have this. I have my ANDROID_HOME at if you want see my modifications for checking if Im not mistaken you can check commit at https://github.com/KyucraftV2/chaquopy/commits/master |
It looks like the NDK installation isn't happening for some reason. Try running this command:
And then run build-wheel again. EDIT: For further discussion of this issue, see #1084. |
Hi, thanks for this command with this, now i can run
But I dont understand because i have the same thing that This is the entire log of the execution :
|
Please post your meta.yaml and build.sh files for |
Ok no problem there are the two files :
And the meta.yaml
|
You've set the The process of building the source code may also be different from libzmq. For example, these instructions indicate that LSL uses CMake rather than a configure script. Search for "cmake" in the other recipes for examples of how to use it. |
Okey so now i change my
And there are my two files :
And my
|
Why have you added a Remove the clone command and edit the Also, notice that in all the existing build.sh scripts which contain a |
Ok, I try to copy the format of
And now, I run my
And I dont have no idea how to fix this |
Please post your current build.sh file. |
Ok :
I copy the |
It looks like this function was renamed in the past, but they missed one of the
And edit your build.sh file as follows:
For me, that was enough to fix the the x86_64 build. |
Hi, ok thanks for yout help but i copy and paste what you give. But now when I try to build wheel I have this error
|
Please create a fork of this repository containing all your current build.sh, meta.yaml and patch files, and post the link. |
There is my fork : https://github.com/KyucraftV2/chaquopy |
Sorry, it turns out netinterfaces.cpp contained tabs, so patches are difficult to copy and paste. Please use the files from this PR: #872. I've also renamed the package to chaquopy-liblsl, to follow the pattern of all our other non-Python packages. |
Ok thanks, now the building of CXX object works. I copy and paste your PR in my fork but now after the building I have an error type
I don't understand why the file |
@KyucraftV2 It seem you don't have patchelf installed. |
This is already mentioned in the README, so you should probably review that in case you missed anything else. |
Ok thanks, now I build
And if all is okay, can I merge request my fork ? |
Pylsl 1.10.4's setup.py script is unconditionally bundling pre-built Linux binaries of liblsl. It looks like this is fixed in the current version, 1.16.1, but there are no sdists for that version on PyPI. You can work around this by downloading the source code from GitHub, just as we did for liblsl:
|
Okey thanks a lot for your help, now im able to build |
See the README for how to use a package you built yourself. When using Briefcase, instead of editing the build.gradle file directly, you should do this:
Before you make a merge request, please check that the packages actually work, ideally by using the test harness. |
Hi, I trust your last message and I build four versions off .whl (one off each ABI) but i have this error :
Maybe I forgot something but i dont think so |
I've merged your fork into #872, built the packages myself, and uploaded them to https://chaquo.com/pypi-test/. I then built the pkgtest app with the arm64 Python 3.8 package, and I can successfully Please give these builds a try, and if you still have problems, let me know:
|
Ok thanks for the merge.
|
Well, I search why its not work, and I have an idea, when I build with command
So I think its not going to search in https://chaquo.com/pypi-test/ |
Okey, i found the problem, i need to specify the address in my |
Let's leave the issue open until I've added the packages to the main repository. |
Chaquopy version
Version 7.0
Relevant parts of your code
Describe your issue
I use beeware, when i build the app i have no problem but when i start the app, the app crashes.
The error
The text was updated successfully, but these errors were encountered: