-
Notifications
You must be signed in to change notification settings - Fork 133
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
Failed to install praat-parselmouth #508
Comments
Thanks for the report. I assume you mean praat-parselmouth the phonetics library, and not parselmouth the ad services library. This package isn't currently a priority, but I'll update this issue if we add it in the future. And if anyone else wants it too, please click the thumbs-up button above. |
The package build tool is now open-source, so if you'd like to try building this package 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. |
hello, i really need use praat-parselmouth and i was unable to build this package with the build tool that you developed. |
Please post the error message. |
when package is building with cmake i get this error: ../../../praat/sys/sendpraat.c:49:11: fatal error: 'X11/Xlib.h' file not found |
OK, please create a fork of this repository and push your meta.yaml file along with any patches, then post the link here. |
i didnt make any patches just the meta.yaml file |
There's no way that file could work, because there's no such thing as And make sure you're using the current version of the build tool, because it's had some fixes in the last few days. |
OK, I've reproduced your error with the recipe in #961:
I don't have time to look into this any further, but obviously there will be no X11 support on Android. So the first question to ask is whether X11 is a core part of this package's functionality, or if it's only included conditionally. If it is conditional, see if you can work out where that condition is being determined, and how it can be fixed to disable the X11 feature. Separately, the build failed on armeabi-v7a because of a missing |
is there any chance that you build this package in future? |
Only if someone provides a working recipe in a PR, but I don't have time to create one myself. See #961 for a starting point. |
I will continue this thread with what I have managed to do. Turns out you can just comment out the line "#include <X11/Xlib.h>" the code doesn't actually use Xlib if it is compiled with the nogui oprion, which it is. Of course then I ran into an issue with linking, it wasn't linking the python library, so I changed this line in setup.py: After fixing that there was an error that I fixed by changing line 190 of praat-parselmouth/build/0.4.2/cp38-cp38-android_21_arm64_v8a/env/lib/python3.8/site-packages/skbuild/utils/init.py from haven't actually tested to see if it works yet, but at least all the compile time errors are gone. I can't figure out how to turn this into a recipe, I've just been doing manual modifications to the files |
Can confirm the wheel does actually work. I 'll slowly work on figuring out how patches are supposed to be made and PR my horrible hacky solution |
To make a patch, see "If any changes are needed to make the build work" in the README. Patch files can be created with the |
Can be also fixed by installing the It doesn't have too many dependencies and it's a very painless solution |
That's unlikely to help, because there is no X11 support on Android. Even if you could compile it, you wouldn't be able to link it, and even if you could link it, you wouldn't be able to run it. To work on Android, packages which depend on X11 will have to be configured or modified to removed the dependency. |
Hello everyone
I will need to use a python script using the imports below.
import parselmouth from parselmouth.praat import call
I first use the code :
python { pip { install "parselmouth" } }
Then i understand that parselmouth is not in the list of possible imports by chaquopy that I found at this address :
https://chaquo.com/pypi-7.0/
Do you have a solution to help me solve this problem?
Thank you in advance for the attention paid to my request.
The text was updated successfully, but these errors were encountered: