-
Notifications
You must be signed in to change notification settings - Fork 131
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
support of audioread/librosa package #21
Comments
[EDIT 2018-08: All pure-Python packages can now be installed directly, including sdists. Packages with native components, including external non-Python libraries, still need to be cross-compiled by us and added to the repository.] This is the case with audioread, which (like many Python audio decoding libraries) depends on FFmpeg (#143). If you only need to read uncompressed audio files, it looks like it'll still work. [EDIT 2018-08: It can now be installed with the current version of Chaquopy.] Otherwise, you'll have to use a different approach. The obvious way would be to use Chaquopy to access the Android MediaCodec API from Python, though that looks pretty unfriendly. As for librosa, we unfortunately can't yet build that because it depends on SciPy, which is difficult for other reasons (#15). The current version also depends on LLVM, though it looks this could be avoided by using an older version. We are definitely considering making our package build system open-source so the community can help with porting packages. Please subscribe to #175 for updates on that. |
Sorry for asking, but I wonder is librosa available now? |
The current version of librosa (0.6.1) still can't be installed because it depends on numba (#139) and llvmlite. However, you should be able to install the older version 0.4.2, which doesn't have those dependencies. I'm not familiar with librosa so I haven't tested whether it works: please give it a try and report back. |
Hi, I include This is my app graddle
I get the error after sucessfully built librosa:
It's a little bit strange. I cleaned the project. I restarted android studio as administrator (I'm developing my app in windows) Can you help me ? Must I open a new issue? Thanks |
This is probably caused by the Windows filename length limit of 260 characters (pypa/pip#6279). Try moving your project to a location with a shorter path. |
Yes, this was the problem. I didn't realized. Thanks! Now, I get a new error, but I think it is a problem with python. py = Python.getInstance(); Do i make an incorrect call to import the librosa lib, or is a problem of my python instalation? In latter, can you say me where I must ask for them? I can't find a solution googling. I've only found this link termux/termux-packages#570 where someone say that "Android does not support sem_open() or related functions", and I'm developing an Android App Thanks in advance. |
|
Despite the message, it appears that the current version of joblib (0.13.0) does not actually manage to fall back to serial mode (joblib/joblib#825). Try installing an older version by adding the following line in build.gradle, at the top of the
When I did that, I still received some warnings, but the librosa import completed successfully. |
Thanks, give some days to check it. On Monday i'll give you some response |
Finally, I found the librosa MFCC features extraction programmed on Java, which were the functionality I needed from librosa in my Android app. So, I didn't test whether your last solution could solve my problem. Thanks a lot, I hope it will resolve the problem to other programmers! |
The current version of librosa can now be installed with Chaquopy 7.0.2. To upgrade, edit your app's top-level build.gradle file and change the version number of Please review the release notes, especially the point about most native packages having been upgraded. |
Hello, I've tried to use Chaquopy 7.0.2 and 7.0.3 but still couldn't get it works. A
|
Please post:
By the way, the note in #185 is out of date: you can now use any version of librosa. However, you may still need to use joblib 0.11.0, or the workaround at joblib/joblib#825 (comment). |
This comment has been minimized.
This comment has been minimized.
I just realize what does "The python section of your build.gradle file" mean, and I did miss this section. Now everything works. |
I've just learned that although the current version of librosa can be installed with Chaquopy, it still fails to import. This will be fixed in the next version of Chaquopy. |
This issue is fixed in Chaquopy 8.0.1. If you're using that version or later, there's no longer any need to use old versions of librosa or joblib. To upgrade, edit your app's top-level build.gradle file and change the version number of |
[Moved to #527] |
Got error when trying to pip install these two packages with this:
The error message is:
Looking at the past feature requests, I have an impression that the python packages need to be manually ported to be available through Chaquopy, it is the case? If so, I am wondering if there's a way for community to help porting them?
Thanks.
The text was updated successfully, but these errors were encountered: