-
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
Failed to install av #1012
Comments
@mhsmith Can you help me with this issue? |
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. If anyone else wants this package too, let us know by clicking the thumbs-up button above. |
Originally posted by @sinabolouki in #1018 I'm trying to build the pyAV for Chaquopy but I face this error:
can anyone help fix this? |
If you're trying to build a Python library that depends on a non-Python library, you'll usually have to build the non-Python library first as a separate package, unless the Python library comes with a bundled copy. For example, see the packages chaquopy-libzmq and pyzmq, which are mentioned in the README. |
I found out that these libraries are from ffmpeg project. I tried to build the libraries using ffmpeg-android-maker. I created a directory called chaquopy-ffmpeg under packages. There are two files called
while
Can I fix this issue? |
I think that when you set the ANDROID_NDK_HOME variable, you accidentally included a literal I also notice that the ffmpeg-android-maker README says "The script expects to use at least Android NDK r23", so it would be a good idea to set ANDROID_NDK_HOME accordingly. |
I changed ANDROID_NDK_HOME to r23 but I still could not fix this issue. The new error:
|
The script's error handling isn't very good – it displays that error even if the compiler executable doesn't exist. You can install it by running Also, for convenience, I suggest adding the following lines to the top of build.sh: export ANDROID_SDK_HOME=$ANDROID_HOME
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/23.2.8568313 That way, you only need to set ANDROID_HOME. |
unfortunately, that did not fix the issue. Is there anyway I can find the real problem? like log or something |
Do you mean you've installed Or if you got a different error, please post it here. |
Chaquopy version
14.0.2
Relevant parts of your build.gradle file
app build.gradle:
Describe your issue
ERROR: Failed to install av from https://files.pythonhosted.org/packages/09/45/eb750ba15c44e8106f58a22e6789f5ddbe5584d9dcb4e755b08d47ed6261/av-10.0.0.tar.gz#sha256=8afd3d5610e1086f3b2d8389d66672ea78624516912c93612de64dcaa4c67e05.
build log (:app:generateDebugPythonRequirements):
I think the problem can be fixed by changing default Cython version. Is it possible?
The text was updated successfully, but these errors were encountered: