Skip to content
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

can't get audio stream from a server #683

Closed
Jackovic opened this issue Jun 20, 2018 · 1 comment
Closed

can't get audio stream from a server #683

Jackovic opened this issue Jun 20, 2018 · 1 comment

Comments

@Jackovic
Copy link

Hello,
I tried to use ffpyplayer to play an audio stream from a server on internet. (aac in mp4)
However if i specify requirements in buildozer.spec like this :
requirements = python3crystax==3.5,kivy,ffpyplayer
I get :

$ buildozer android debug deploy run
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Install platform
# Apache ANT found at /home/jack/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/jack/.buildozer/android/platform/android-sdk-20
# Android NDK found at /home/jack/crystax-ndk-10.3.2
# Check application requirements
# Check garden requirements
# Compile platform
# Command failed: /usr/bin/python3.6 -m pythonforandroid.toolchain create --dist_name=projet_discrepant --bootstrap=sdl2 --requirements=python3crystax==3.5,kivy,ffpyplayer --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/jack/projet_discrepant/.buildozer/android/platform/build
# 
# Buildozer failed to execute the last command
# If the error is not obvious, please raise the log_level to 2
# and retry the latest command.
# In case of a bug report, please add a full log with log_level = 2

My configuration :
Ubuntu 16.04
Buildozer 0.34
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v3.5.0 (default, Dec 24 2015, 05:56:40)
[GCC 5.3 20151204]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [Audio ] Providers: (audio_ffpyplayer, audio_sdl2 ignored)
[WARNING] [Audio ] Unable to find a loader for http://51.15.179.233/proj_disc/17seconds48000.mp4
...
AttributeError: 'NoneType' object has no attribute 'play'

Here the full log :

# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
b"Programme \xc2\xab\xc2\xa0dpkg\xc2\xa0\xc2\xbb de gestion de paquets Debian version 1.18.4 (amd64).\nCe programme est un logiciel libre\xc2\xa0; veuillez consulter la \xc2\xab\xc2\xa0GNU General\nPublic License\xc2\xa0\xc2\xbb version 2 ou sup\xc3\xa9rieure pour prendre connaissance des\nconditions de reproduction. AUCUNE garantie n'est offerte.\n"# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /home/jack/.local/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool
# Install platform
# Run 'pip install -q --user "appdirs" "colorama>=0.3.3" "sh>=1.10,<1.12.5" "jinja2" "six"'
# Cwd None
# Apache ANT found at /home/jack/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/jack/.buildozer/android/platform/android-sdk-20
# Android NDK found at /home/jack/crystax-ndk-10.3.2
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/usr/bin/python3.6 -m pythonforandroid.toolchain create --dist_name=projet_discrepant --bootstrap=sdl2 --requirements=python3crystax==3.5,kivy,ffpyplayer --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/jack/projet_discrepant/.buildozer/android/platform/build'
# Cwd /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Recipe python3crystax: version "3.5" requested
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI
[INFO]:    Available Android APIs are (19)
[INFO]:    Requested API target 19 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK
[INFO]:    Got NDK version from $ANDROIDNDKVER
[WARNING]: NDK version was set as r10.3.2, but checking the NDK dir claims it is 10.3.2.
[WARNING]: The build will try to continue, but it may fail and you should check that your setting is correct.
[WARNING]: If the NDK dir result is correct, you don't need to manually set the NDK ver.
[INFO]:    Using Crystax NDK r10.3.2
[INFO]:    Found virtualenv at /usr/bin/virtualenv
[INFO]:    Found the following toolchain versions: ['4.9', '5', 'clang3.6', 'clang3.7']
[INFO]:    Picking the latest gcc toolchain, here 5
[INFO]:    No existing dists meet the given requirements!
[INFO]:    No dist exists that meets your requirements, so one will be built.
[INFO]:    Found a single valid recipe set: ['hostpython3crystax', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python3crystax', 'sdl2', 'six', 'ffmpeg', 'pyjnius', 'ffpyplayer', 'kivy']
[INFO]:    The selected bootstrap is sdl2_gradle
[INFO]:    # Creating dist with sdl2_gradle bootstrap
[INFO]:    Dist will have name projet_discrepant and recipes (python3crystax, kivy, ffpyplayer)
[INFO]:    Dist will also contain modules () installed from pip
[INFO]:    -> running cp -r /home/jack/projet_discrepant/.buildozer/android/p...(and 192 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Recipe build order is ['hostpython3crystax', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python3crystax', 'sdl2', 'six', 'ffmpeg', 'pyjnius', 'ffpyplayer', 'kivy']
[INFO]:    # Downloading recipes 
[INFO]:    Downloading hostpython3crystax
[INFO]:    Skipping hostpython3crystax download as no URL is set
[INFO]:    Downloading sdl2_image
[INFO]:    -> running mkdir -p /home/jack/projet_discrepant/.buildozer/androi...(and 36 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/packages/sdl2_image
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/rele...(and 27 more)
[INFO]:    sdl2_image download already cached, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> running mkdir -p /home/jack/projet_discrepant/.buildozer/androi...(and 36 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/packages/sdl2_mixer
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/rele...(and 27 more)
[INFO]:    sdl2_mixer download already cached, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> running mkdir -p /home/jack/projet_discrepant/.buildozer/androi...(and 34 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/packages/sdl2_ttf
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release...(and 23 more)
[INFO]:    sdl2_ttf download already cached, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading python3crystax
[INFO]:    -> running mkdir -p /home/jack/projet_discrepant/.buildozer/androi...(and 40 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/packages/python3crystax
[INFO]:    -> running basename 
[INFO]:    -> running rm -f .mark-
[INFO]:    -> running touch .mark-
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading sdl2
[INFO]:    -> running mkdir -p /home/jack/projet_discrepant/.buildozer/androi...(and 30 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/packages/sdl2
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.4.tar.gz
[INFO]:    sdl2 download already cached, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading six
[INFO]:    -> running mkdir -p /home/jack/projet_discrepant/.buildozer/androi...(and 29 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/packages/six
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz
[INFO]:    six download already cached, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading ffmpeg
[INFO]:    -> running mkdir -p /home/jack/projet_discrepant/.buildozer/androi...(and 32 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/packages/ffmpeg
[INFO]:    -> running basename http://ffmpeg.org/releases/ffmpeg-3.3.3.tar.bz2
[INFO]:    ffmpeg download already cached, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading pyjnius
[INFO]:    -> running mkdir -p /home/jack/projet_discrepant/.buildozer/androi...(and 33 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/packages/pyjnius
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/master.zip
[INFO]:    pyjnius download already cached, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading ffpyplayer
[INFO]:    -> running mkdir -p /home/jack/projet_discrepant/.buildozer/androi...(and 36 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/packages/ffpyplayer
[INFO]:    -> running basename https://github.com/matham/ffpyplayer/archive/master.zip
[INFO]:    ffpyplayer download already cached, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading kivy
[INFO]:    -> running mkdir -p /home/jack/projet_discrepant/.buildozer/androi...(and 30 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/packages/kivy
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/1.10.0.zip
[INFO]:    kivy download already cached, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    # Building all recipes for arch armeabi-v7a
[INFO]:    # Unpacking recipes
[INFO]:    Unpacking hostpython3crystax for armeabi-v7a
[INFO]:    Skipping hostpython3crystax unpack as no URL is set
[INFO]:    Unpacking sdl2_image for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/rele...(and 27 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]:    sdl2_image is already unpacked, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking sdl2_mixer for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/rele...(and 27 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]:    sdl2_mixer is already unpacked, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking sdl2_ttf for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release...(and 23 more)
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]:    sdl2_ttf is already unpacked, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking python3crystax for armeabi-v7a
[INFO]:    -> running basename 
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/build/other_builds/python3crystax-version3.5/armeabi-v7a
[INFO]:    python3crystax is already unpacked, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking sdl2 for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.4.tar.gz
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]:    sdl2 is already unpacked, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking six for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/build/other_builds/six-python3crystax/armeabi-v7a
[INFO]:    six is already unpacked, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking ffmpeg for armeabi-v7a
[INFO]:    -> running basename http://ffmpeg.org/releases/ffmpeg-3.3.3.tar.bz2
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/build/other_builds/ffmpeg/armeabi-v7a
[INFO]:    ffmpeg is already unpacked, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking pyjnius for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/master.zip
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/build/other_builds/pyjnius-python3crystax-sdl2/armeabi-v7a
[INFO]:    pyjnius is already unpacked, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking ffpyplayer for armeabi-v7a
[INFO]:    -> running basename https://github.com/matham/ffpyplayer/archive/master.zip
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/build/other_builds/ffpyplayer-python3crystax/armeabi-v7a
[INFO]:    ffpyplayer is already unpacked, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking kivy for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/1.10.0.zip
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/build/other_builds/kivy-python3crystax-sdl2/armeabi-v7a
[INFO]:    kivy is already unpacked, skipping
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython3crystax for armeabi-v7a
[INFO]:    hostpython3crystax has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding sdl2_image for armeabi-v7a
[INFO]:    sdl2_image has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_image[armeabi-v7a]
[INFO]:    sdl2_image already patched, skipping
[INFO]:    Prebuilding sdl2_mixer for armeabi-v7a
[INFO]:    sdl2_mixer has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_mixer[armeabi-v7a]
[INFO]:    sdl2_mixer already patched, skipping
[INFO]:    Prebuilding sdl2_ttf for armeabi-v7a
[INFO]:    sdl2_ttf has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding python3crystax for armeabi-v7a
[INFO]:    python3crystax has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding sdl2 for armeabi-v7a
[INFO]:    sdl2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2[armeabi-v7a]
[INFO]:    sdl2 already patched, skipping
[INFO]:    Prebuilding six for armeabi-v7a
[INFO]:    six has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding ffmpeg for armeabi-v7a
[INFO]:    Applying patches for ffmpeg[armeabi-v7a]
[INFO]:    ffmpeg already patched, skipping
[INFO]:    Applying patches for ffmpeg[armeabi-v7a]
[INFO]:    ffmpeg already patched, skipping
[INFO]:    Prebuilding pyjnius for armeabi-v7a
[INFO]:    pyjnius has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for pyjnius[armeabi-v7a]
[INFO]:    pyjnius already patched, skipping
[INFO]:    Prebuilding ffpyplayer for armeabi-v7a
[INFO]:    ffpyplayer has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding kivy for armeabi-v7a
[INFO]:    kivy has no prebuild_armeabi_v7a, skipping
[INFO]:    # Building recipes
[INFO]:    Building hostpython3crystax for armeabi-v7a
[INFO]:    Building sdl2_image for armeabi-v7a
[INFO]:    Building sdl2_mixer for armeabi-v7a
[INFO]:    Building sdl2_ttf for armeabi-v7a
[INFO]:    Building python3crystax for armeabi-v7a
[INFO]:    Building sdl2 for armeabi-v7a
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]:    -> running ndk-build V=1
[INFO]:    <- directory context /home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Building six for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    six said it is already built, skipping
[INFO]:    Building ffmpeg for armeabi-v7a
[INFO]:    -> directory context /home/jack/projet_discrepant/.buildozer/android/platform/build/build/other_builds/ffmpeg/armeabi-v7a/ffmpeg
[INFO]:    -> running configure --disable-everything --enable-parser=aac,ac3,...(and 719 more)
b'\x1b[0m\r           working: SDL2_image-2.0.1.tar.gz                                                             'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: SDL2_mixer-2.0.1.tar.gz                                                             'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: SDL2_ttf-2.0.14.tar.gz                                                              'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: SDL2-2.0.4.tar.gz                                                                   'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: six-1.9.0.tar.gz                                                                    'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: ffmpeg-3.3.3.tar.bz2                                                                'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: master.zip                                                                          'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: master.zip                                                                          'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: 1.10.0.zip                                                                          'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: SDL2_image-2.0.1.tar.gz                                                             'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: SDL2_mixer-2.0.1.tar.gz                                                             'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: SDL2_ttf-2.0.14.tar.gz                                                              'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: SDL2-2.0.4.tar.gz                                                                   'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: six-1.9.0.tar.gz                                                                    'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: ffmpeg-3.3.3.tar.bz2                                                                'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: master.zip                                                                          'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: master.zip                                                                          'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: 1.10.0.zip                                                                          'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: rm -f /home/jack/projet_discrepant/.buildozer/android/platform/bu...(and 1018 more) 'b'\x1b[0m\r           working: rm -f /home/jack/projet_discrepant/.buildozer/android/platform/bu...(and 1034 more) 'b'\x1b[0m\r           working: rm -f /home/jack/projet_discrepant/.buildozer/android/platform/bu...(and 1034 more) 'b'\x1b[0m\r           working: [armeabi-v7a] Install        : libcrystax.so => libs/armeabi-v7a/libcrystax.so      \x1b[0m\r           working: install -p /home/jack/crystax-ndk-10.3.2/sources/crystax/libs/arme...(and 171 more) 'b'\x1b[0m\r           working: /home/jack/crystax-ndk-10.3.2/toolchains/arm-linux-androideabi-5/p...(and 213 more) 'b'\x1b[0m\r           working: [armeabi-v7a] Install        : libSDL2.so => libs/armeabi-v7a/libSDL2.so            \x1b[0m\r           working: install -p /home/jack/projet_discrepant/.buildozer/android/platfor...(and 231 more) 'b'\x1b[0m\r           working: /home/jack/crystax-ndk-10.3.2/toolchains/arm-linux-androideabi-5/p...(and 211 more) 'b'\x1b[0m\r           working: [armeabi-v7a] Install        : libSDL2_image.so => libs/armeabi-v7a/libSDL2_image.so\x1b[0m\r           working: install -p /home/jack/projet_discrepant/.buildozer/android/platfor...(and 243 more) 'b'\x1b[0m\r           working: /home/jack/crystax-ndk-10.3.2/toolchains/arm-linux-androideabi-5/p...(and 217 more) 'b'\x1b[0m\r           working: [armeabi-v7a] Install        : libSDL2_mixer.so => libs/armeabi-v7a/libSDL2_mixer.so'b'\x1b[0m\r           working: install -p /home/jack/projet_discrepant/.buildozer/android/platfor...(and 243 more) 'b'\x1b[0m\r           working: /home/jack/crystax-ndk-10.3.2/toolchains/arm-linux-androideabi-5/p...(and 217 more) 'b'\x1b[0m\r           working: [armeabi-v7a] Install        : libSDL2_ttf.so => libs/armeabi-v7a/libSDL2_ttf.so    \x1b[0m\r           working: install -p /home/jack/projet_discrepant/.buildozer/android/platfor...(and 239 more) 'b'\x1b[0m\r           working: /home/jack/crystax-ndk-10.3.2/toolchains/arm-linux-androideabi-5/p...(and 215 more) 'b'\x1b[0m\r           working: [armeabi-v7a] Install        : libmain.so => libs/armeabi-v7a/libmain.so            \x1b[0m\r           working: install -p /home/jack/projet_discrepant/.buildozer/android/platfor...(and 231 more) 'b'\x1b[0m\r           working: /home/jack/crystax-ndk-10.3.2/toolchains/arm-linux-androideabi-5/p...(and 211 more) 'b'\x1b[0m\r           working: [armeabi-v7a] Install        : libpython3.5m.so => libs/armeabi-v7a/libpython3.5m.so\x1b[0m\r           working: install -p /home/jack/projet_discrepant/.buildozer/android/platfor...(and 243 more) 'b'\x1b[0m\r           working: /home/jack/crystax-ndk-10.3.2/toolchains/arm-linux-androideabi-5/p...(and 217 more) 'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: tput: No value for $TERM and no -T specified                                        'b'\x1b[0m\r           working: tput: No value for $TERM and no -T specified                                        'b'\x1b[0m\r           working: install prefix            /home/jack/projet_discrepant/.buildozer/...(and 67 more)  'b'\x1b[0m\r           working: source path               .                                                         'b'\x1b[0m\r           working: C compiler                arm-linux-androideabi-gcc                                 'b'\x1b[0m\r           working: C library                 bionic                                                    'b'\x1b[0m\r           working: host C compiler           gcc                                                       'b'\x1b[0m\r           working: host C library            glibc                                                     'b'\x1b[0m\r           working: ARCH                      arm (armv7-a)                                             'b'\x1b[0m\r           working: big-endian                no                                                        '[INFO]:    -> running make -j4
b'\x1b[0m\r           working: runtime cpu detection     yes                                                       'b'\x1b[0m\r           working: ARMv5TE enabled           yes                                                       'b'\x1b[0m\r           working: ARMv6 enabled             yes                                                       'b'\x1b[0m\r           working: ARMv6T2 enabled           yes                                                       'b'\x1b[0m\r           working: VFP enabled               yes                                                       'b'\x1b[0m\r           working: NEON enabled              yes                                                       'b'\x1b[0m\r           working: THUMB enabled             yes                                                       'b'\x1b[0m\r           working: debug symbols             yes                                                       'b'\x1b[0m\r           working: strip symbols             yes                                                       'b'\x1b[0m\r           working: optimize for size         yes                                                       'b'\x1b[0m\r           working: optimizations             yes                                                       'b'\x1b[0m\r           working: static                    no                                                        'b'\x1b[0m\r           working: shared                    yes                                                       'b'\x1b[0m\r           working: postprocessing support    yes                                                       'b'\x1b[0m\r           working: network support           yes                                                       'b'\x1b[0m\r           working: threading support         pthreads                                                  'b'\x1b[0m\r           working: safe bitstream reader     yes                                                       'b'\x1b[0m\r           working: texi2html enabled         no                                                        'b'\x1b[0m\r           working: perl enabled              yes                                                       'b'\x1b[0m\r           working: pod2man enabled           yes                                                       'b'\x1b[0m\r           working: makeinfo enabled          no                                                        'b'\x1b[0m\r           working: makeinfo supports HTML    no                                                        'b'\x1b[0m\r           working: External libraries:                                                                 'b'\x1b[0m\r           working: iconv   xlib   zlib                                                                 'b'\x1b[0m\r           working: External libraries providing hardware acceleration:                                 'b'\x1b[0m\r           working: Libraries:                                                                          'b'\x1b[0m\r           working: avcodec   avformat  swresample                                                      \x1b[0m\r           working: avdevice  avutil   swscale                                                          'b'\x1b[0m\r           working: avfilter  postproc                                                                  'b'\x1b[0m\r           working: Programs:                                                                           'b'\x1b[0m\r           working: Enabled decoders:                                                                   'b'\x1b[0m\r           working: aac   h264   mpegvideo                                                              'b'\x1b[0m\r           working: h263   mpeg4                                                                        'b'\x1b[0m\r           working: Enabled encoders:                                                                   'b'\x1b[0m\r           working: Enabled hwaccels:                                                                   'b'\x1b[0m\r           working: Enabled parsers:                                                                    'b'\x1b[0m\r           working: aac   h263   mpegaudio                                                              'b'\x1b[0m\r           working: ac3   h264   mpegvideo                                                              'b'\x1b[0m\r           working: h261   mpeg4video  vc1                                                              'b'\x1b[0m\r           working: Enabled demuxers:                                                                   'b'\x1b[0m\r           working: aac   m4v   mpegvideo                                                               \x1b[0m\r           working: h264   mov   vc1                                                                    'b'\x1b[0m\r           working: Enabled muxers:                                                                     'b'\x1b[0m\r           working: h264   mp4   mpeg2video                                                             'b'\x1b[0m\r           working: mov                                                                                 'b'\x1b[0m\r           working: Enabled protocols:                                                                  'b'\x1b[0m\r           working: file   http   tcp                                                                   'b'\x1b[0m\r           working: Enabled filters:                                                                    'b'\x1b[0m\r           working: adelay   crop   volume                                                              'b'\x1b[0m\r           working: aresample                                                                           'b'\x1b[0m\r           working: Enabled bsfs:                                                                       'b'\x1b[0m\r           working: Enabled indevs:                                                                     'b'\x1b[0m\r           working: Enabled outdevs:                                                                    'b'\x1b[0m\r           working: License: GPL version 2 or later                                                     \x1b[0m\r           working: Creating configuration files ...                                                    'b'\x1b[0m\r           working: config.h is unchanged                                                               'b'\x1b[0m\r           working: libavutil/avconfig.h is unchanged                                                   'b'\x1b[0m\r           working: libavcodec/bsf_list.c is unchanged                                                  'b'\x1b[0m\r           working: libavformat/protocol_list.c is unchanged                                            \x1b[0m\r           working: WARNING: arm-linux-androideabi-pkg-config not found, library detection may fail.    'b'\x1b[0m\r                                                                                                        \r'b'\x1b[0m\r           working: CC libavformat/network.o                                                            'b'\x1b[0m\r           working: CC libavcodec/aac_parser.o                                                          'b'\x1b[0m\r           working: CC libavcodec/aacadtsdec.o                                                          'b'\x1b[0m\r           working: CC libavcodec/aacdec.o                                                              'b'\x1b[0m\r           working: In file included from libavformat/network.h:29:0,                                   'b'\x1b[0m\r           working:                  from libavformat/network.c:22:                                     'b'\x1b[0m\r           working: libavformat/os_support.h:67:32: error: expected declaration specifi...(and 29 more) 'b'\x1b[0m\r           working:  #  define lseek(f,p,w) lseek64((f), (p), (w))                                      'b'\x1b[0m\r           working:                                 ^                                                   'b'\x1b[0m\r           working: libavformat/os_support.h:67:37: error: expected declaration specifi...(and 29 more) 'Exception in thread background thread for pid 31907:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/home/jack/.local/lib/python3.6/site-packages/sh.py", line 2170, in background_thread
    handle_exit_code(exit_code)
  File "/home/jack/.local/lib/python3.6/site-packages/sh.py", line 1929, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/home/jack/.local/lib/python3.6/site-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2: 

  RAN: /usr/bin/make -j4

  STDOUT:
CC	libavformat/network.o
CC	libavcodec/aac_parser.o
CC	libavcodec/aacadtsdec.o
CC	libavcodec/aacdec.o
In file included from libavformat/network.h:29:0,
                 from libavformat/network.c:22:
libavformat/os_support.h:67:32: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                ^
libavformat/os_support.h:67:37: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                     ^
libavformat/os_support.h:67:42: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                          ^
common.mak:60: recipe for target 'libavformat/network.o' failed
make: *** [libavformat/network.o] Error 1
make: *** Waiting for unfinished jobs....


  STDERR:


Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 978, in <module>
    main()
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 975, in main
    ToolchainCL()
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 512, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 149, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 193, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/build.py", line 573, in build_recipes
    recipe.build_arch(arch)
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/recipes/ffmpeg/__init__.py", line 128, in build_arch
    shprint(sh.make, '-j4', _env=env)
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/logger.py", line 175, in shprint
    for line in output:
  File "/home/jack/.local/lib/python3.6/site-packages/sh.py", line 720, in next
    self.wait()
  File "/home/jack/.local/lib/python3.6/site-packages/sh.py", line 651, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/jack/.local/lib/python3.6/site-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2: 

  RAN: /usr/bin/make -j4

  STDOUT:
CC	libavformat/network.o
CC	libavcodec/aac_parser.o
CC	libavcodec/aacadtsdec.o
CC	libavcodec/aacdec.o
In file included from libavformat/network.h:29:0,
                 from libavformat/network.c:22:
libavformat/os_support.h:67:32: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                ^
libavformat/os_support.h:67:37: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                     ^
libavformat/os_support.h:67:42: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                          ^
common.mak:60: recipe for target 'libavformat/network.o' failed
make: *** [libavformat/network.o] Error 1
make: *** Waiting for unfinished jobs....


  STDERR:

Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 978, in <module>
    main()
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 975, in main
    ToolchainCL()
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 512, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 149, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 193, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/build.py", line 573, in build_recipes
    recipe.build_arch(arch)
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/recipes/ffmpeg/__init__.py", line 128, in build_arch
    shprint(sh.make, '-j4', _env=env)
  File "/home/jack/projet_discrepant/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/logger.py", line 175, in shprint
    for line in output:
  File "/home/jack/.local/lib/python3.6/site-packages/sh.py", line 720, in next
    self.wait()
  File "/home/jack/.local/lib/python3.6/site-packages/sh.py", line 651, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/jack/.local/lib/python3.6/site-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2: 

  RAN: /usr/bin/make -j4

  STDOUT:
CC	libavformat/network.o
CC	libavcodec/aac_parser.o
CC	libavcodec/aacadtsdec.o
CC	libavcodec/aacdec.o
In file included from libavformat/network.h:29:0,
                 from libavformat/network.c:22:
libavformat/os_support.h:67:32: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                ^
libavformat/os_support.h:67:37: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                     ^
libavformat/os_support.h:67:42: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                          ^
common.mak:60: recipe for target 'libavformat/network.o' failed
make: *** [libavformat/network.o] Error 1
make: *** Waiting for unfinished jobs....


  STDERR:

b'\x1b[0m\r           working:  #  define lseek(f,p,w) lseek64((f), (p), (w))                                      \x1b[0m\r           working:                                      ^                                              \x1b[0m\r           working: libavformat/os_support.h:67:42: error: expected declaration specifi...(and 29 more) \x1b[0m\r           working:  #  define lseek(f,p,w) lseek64((f), (p), (w))                                      \x1b[0m\r           working:                                           ^                                         'b"\x1b[0m\r           working: common.mak:60: recipe for target 'libavformat/network.o' failed                     "b'\x1b[0m\r           working: make: *** [libavformat/network.o] Error 1                                           'b'\x1b[0m\r           working: make: *** Waiting for unfinished jobs....                                           'b'\x1b[0m\r                                                                                                        \r'# Command failed: /usr/bin/python3.6 -m pythonforandroid.toolchain create --dist_name=projet_discrepant --bootstrap=sdl2 --requirements=python3crystax==3.5,kivy,ffpyplayer --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/jack/projet_discrepant/.buildozer/android/platform/build
# 
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2

Someone can tell me how to use ffpyplayer with my configuration ? Otherwise, what i have to setup to use ffpyplayer ?
For info : if i remove ffpyplayer for requirements, it compiles fine.
Thanx.

@inclement
Copy link
Member

Closing as stale, ffpyplayer should be working in p4a master, if not then please open a python-for-android issue about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants