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

help me building cryptography #646

Closed
rerefrancd opened this issue Apr 4, 2018 · 4 comments
Closed

help me building cryptography #646

rerefrancd opened this issue Apr 4, 2018 · 4 comments

Comments

@rerefrancd
Copy link

rerefrancd commented Apr 4, 2018

os ubuntu16.4

[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
[INFO]:    Using Google NDK r9c
[INFO]:    Found virtualenv at /usr/local/bin/virtualenv
[INFO]:    Found the following toolchain versions: ['4.6', '4.8', 'clang3.3']
[INFO]:    Picking the latest gcc toolchain, here 4.8
[INFO]:    No existing dists meet the given requirements!
[INFO]:    No dist exists that meets your requirements, so one will be built.
[INFO]:    Found multiple valid dependency orders:
[INFO]:        ['hostpython2', 'libffi', u'netaddr', 'openssl', u'plyer', u'psutil', u'pyuv', u'rpyc', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'tinyec', 'python2', 'ipaddress', 'pyasn1', u'pycrypto', 'sdl2', 'setuptools', 'six', 'enum34', 'idna', 'pycparser', u'pyjnius', 'cffi', u'cryptography']
[INFO]:        ['hostpython2', 'libffi', u'netaddr', 'openssl', u'plyer', u'psutil', u'pyuv', u'rpyc', u'tinyec', 'python2', 'genericndkbuild', 'ipaddress', 'pyasn1', u'pycrypto', 'setuptools', 'six', 'enum34', 'idna', 'pycparser', u'pyjnius', 'cffi', u'cryptography']
[INFO]:        ['hostpython2', 'libffi', u'netaddr', 'openssl', u'plyer', u'psutil', 'pygame_bootstrap_components', u'pyuv', u'rpyc', u'tinyec', 'python2', 'ipaddress', 'pyasn1', u'pycrypto', 'sdl', 'setuptools', 'six', 'enum34', 'idna', 'pycparser', u'pyjnius', 'cffi', u'cryptography']
[INFO]:    Using the first of these: ['hostpython2', 'libffi', u'netaddr', 'openssl', u'plyer', u'psutil', u'pyuv', u'rpyc', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'tinyec', 'python2', 'ipaddress', 'pyasn1', u'pycrypto', 'sdl2', 'setuptools', 'six', 'enum34', 'idna', 'pycparser', u'pyjnius', 'cffi', u'cryptography']
[INFO]:    The selected bootstrap is sdl2_gradle
[INFO]:    # Creating dist with sdl2_gradle bootstrap
[INFO]:    Dist will have name aaa and recipes (pycrypto, plyer, psutil, tinyec, netaddr, rpyc, pyjnius, pyuv, cryptography)
[INFO]:    Dist will also contain modules (rpyc, psutil, netaddr, plyer, tinyec, pyuv) installed from pip
[INFO]:    -> running cp -r /home/regubed/Desktop/pu...(and 252 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python2
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Recipe build order is ['hostpython2', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python2', 'ipaddress', 'pyasn1', u'pycrypto', 'sdl2', 'setuptools', 'six', 'enum34', 'idna', 'pycparser', u'pyjnius', 'cffi', u'cryptography']
[INFO]:    The requirements (netaddr, plyer, psutil, pyuv, rpyc, tinyec) were not found as recipes, they will be installed with pip.
[INFO]:    # Downloading recipes 
[INFO]:    Downloading hostpython2
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 83 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/hostpython2
[INFO]:    -> running basename https://python.org/ftp...(and 34 more)
[INFO]:    hostpython2 download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading libffi
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 78 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/libffi
[INFO]:    -> running basename https://github.com/atg...(and 30 more)
[INFO]:    libffi download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading openssl
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 79 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/openssl
[INFO]:    -> running basename https://www.openssl.or...(and 30 more)
[INFO]:    openssl download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading sdl2_image
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 82 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/sdl2_image
[INFO]:    -> running basename https://www.libsdl.or...(and 52 more)
[INFO]:    sdl2_image download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 82 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/sdl2_mixer
[INFO]:    -> running basename https://www.libsdl.or...(and 52 more)
[INFO]:    sdl2_mixer download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 80 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/sdl2_ttf
[INFO]:    -> running basename https://www.libsdl.org...(and 48 more)
[INFO]:    sdl2_ttf download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading python2
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 79 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/python2
[INFO]:    -> running basename https://python.org/ftp...(and 34 more)
     [INFO]:    python2 download already cached, skipping                      
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading ipaddress
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 81 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/ipaddress
[INFO]:    -> running basename https://pypi.python.o...(and 54 more)
[INFO]:    ipaddress download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading pyasn1
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 78 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/pyasn1
[INFO]:    -> running basename https://pypi.python.or...(and 46 more)
[INFO]:    pyasn1 download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading pycrypto
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 80 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/pycrypto
[INFO]:    -> running basename https://pypi.python.o...(and 51 more)
[INFO]:    pycrypto download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading sdl2
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 76 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/sdl2
[INFO]:    -> running basename https://www.libsdl.org...(and 26 more)
[INFO]:    sdl2 download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading setuptools
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 82 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/setuptools
[INFO]:    -> running basename https://pypi.python.o...(and 56 more)
[INFO]:    setuptools download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading six
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 75 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/six
[INFO]:    -> running basename https://pypi.python.or...(and 40 more)
           work[INFO]:    six download already cached, skipping                
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading enum34
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 78 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/enum34
[INFO]:    -> running basename https://pypi.python.or...(and 46 more)
[INFO]:    enum34 download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading idna
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 76 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/idna
[INFO]:    -> running basename https://pypi.python.or...(and 40 more)
[INFO]:    idna download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading pycparser
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 81 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/pycparser
[INFO]:    -> running basename https://pypi.python.o...(and 52 more)
[INFO]:    pycparser download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading pyjnius
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 79 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/pyjnius
[INFO]:    -> running basename https://github.com/kiv...(and 28 more)
[INFO]:    pyjnius download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading cffi
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 76 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/cffi
[INFO]:    -> running basename https://pypi.python.or...(and 42 more)
[INFO]:    cffi download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading cryptography
[INFO]:    -> running mkdir -p /home/regubed/Desktop...(and 84 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/packages/cryptography
[INFO]:    -> running basename https://github.com/pyc...(and 33 more)
           working: 1.3.t[INFO]:    cryptography download already cached, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    # Building all recipes for arch armeabi-v7a
[INFO]:    # Unpacking recipes
[INFO]:    Unpacking hostpython2 for armeabi-v7a
[INFO]:    -> running basename https://python.org/ftp...(and 34 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop
[INFO]:    hostpython2 is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking libffi for armeabi-v7a
[INFO]:    -> running basename https://github.com/atg...(and 30 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/libffi/armeabi-v7a
[INFO]:    libffi is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking openssl for armeabi-v7a
[INFO]:    -> running basename https://www.openssl.or...(and 30 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a
[INFO]:    openssl is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking sdl2_image for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.or...(and 52 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    sdl2_image is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking sdl2_mixer for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.or...(and 52 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    sdl2_mixer is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking sdl2_ttf for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org...(and 48 more)
           working: SDL2_ttf-2.0.14[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    sdl2_ttf is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking python2 for armeabi-v7a
[INFO]:    -> running basename https://python.org/ftp...(and 34 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/python2-openssl/armeabi-v7a
[INFO]:    python2 is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking ipaddress for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.o...(and 54 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/ipaddress/armeabi-v7a
[INFO]:    ipaddress is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking pyasn1 for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.or...(and 46 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/pyasn1/armeabi-v7a
[INFO]:    pyasn1 is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking pycrypto for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.o...(and 51 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/pycrypto/armeabi-v7a
[INFO]:    pycrypto is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking sdl2 for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org...(and 26 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    sdl2 is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking setuptools for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.o...(and 56 more)
           working: setuptools-18.3.1.tar.gz [INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/setuptools/armeabi-v7a
[INFO]:    setuptools is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking six for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.or...(and 40 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/six-python2/armeabi-v7a
[INFO]:    six is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking enum34 for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.or...(and 46 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/enum34/armeabi-v7a
[INFO]:    enum34 is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking idna for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.or...(and 40 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/idna-python2/armeabi-v7a
[INFO]:    idna is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking pycparser for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.o...(and 52 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/pycparser-python2/armeabi-v7a
[INFO]:    pycparser is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking pyjnius for armeabi-v7a
[INFO]:    -> running basename https://github.com/kiv...(and 28 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/pyjnius-python2-sdl2/armeabi-v7a
[INFO]:    pyjnius is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking cffi for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.or...(and 42 more)
           working: cffi-1.4.2.tar.gz                  [INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/cffi-python2/armeabi-v7a
[INFO]:    cffi is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking cryptography for armeabi-v7a
[INFO]:    -> running basename https://github.com/pyc...(and 33 more)
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/cryptography-python2/armeabi-v7a
[INFO]:    cryptography is already unpacked, skipping
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython2 for armeabi-v7a
[INFO]:    -> running cp /home/regubed/Desktop/pupy/...(and 275 more)
[INFO]:    Prebuilding libffi for armeabi-v7a
[INFO]:    libffi has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for libffi[armeabi-v7a]
[INFO]:    libffi already patched, skipping
[INFO]:    Prebuilding openssl for armeabi-v7a
[INFO]:    openssl 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 python2 for armeabi-v7a
[INFO]:    python2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for python2[armeabi-v7a]
[INFO]:    python2 already patched, skipping
[INFO]:    Prebuilding ipaddress for armeabi-v7a
[INFO]:    ipaddress has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding pyasn1 for armeabi-v7a
[INFO]:    pyasn1 has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding pycrypto for armeabi-v7a
[INFO]:    pycrypto has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for pycrypto[armeabi-v7a]
[INFO]:    pycrypto already patched, 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 setuptools for armeabi-v7a
[INFO]:    setuptools has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding six for armeabi-v7a
[INFO]:    six has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding enum34 for armeabi-v7a
[INFO]:    enum34 has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding idna for armeabi-v7a
[INFO]:    idna has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding pycparser for armeabi-v7a
[INFO]:    pycparser has no prebuild_armeabi_v7a, 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 cffi for armeabi-v7a
[INFO]:    cffi has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for cffi[armeabi-v7a]
[INFO]:    cffi already patched, skipping
[INFO]:    Prebuilding cryptography for armeabi-v7a
[INFO]:    cryptography has no prebuild_armeabi_v7a, skipping
[INFO]:    # Building recipes
[INFO]:    Building hostpython2 for armeabi-v7a
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2
[INFO]:    hostpython already exists, skipping build
[INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Building libffi for armeabi-v7a
[INFO]:    libffi said it is already built, skipping
[INFO]:    Building openssl for armeabi-v7a
[INFO]:    openssl said it is already built, skipping
[INFO]:    Building sdl2_image for armeabi-v7a
[INFO]:    Building sdl2_mixer for armeabi-v7a
[INFO]:    Building sdl2_ttf for armeabi-v7a
[INFO]:    Building python2 for armeabi-v7a
[INFO]:    Copying hostpython binary to targetpython folder
[INFO]:    -> running cp /home/regubed/Desktop/pupy/...(and 244 more)
[INFO]:    Building ipaddress for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    ipaddress said it is already built, skipping
[INFO]:    Building pyasn1 for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    pyasn1 said it is already built, skipping
[INFO]:    Building pycrypto for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    pycrypto said it is already built, skipping
[INFO]:    Building sdl2 for armeabi-v7a
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    -> running ndk-build V=1
 [INFO]:    <- directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Building setuptools for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    setuptools said it is already built, skipping
[INFO]:    Building six for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    six said it is already built, skipping
[INFO]:    Building enum34 for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    enum34 said it is already built, skipping
[INFO]:    Building idna for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    idna said it is already built, skipping
[INFO]:    Building pycparser for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    pycparser said it is already built, skipping
[INFO]:    Building pyjnius for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    pyjnius said it is already built, skipping
[INFO]:    Building cffi for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    cffi said it is already built, skipping
[INFO]:    Building cryptography for armeabi-v7a
[INFO]:    cryptography apparently isn't already in site-packages
[INFO]:    Building compiled components in cryptography
[INFO]:    -> directory context /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/cryptography-python2/armeabi-v7a/cryptography
[INFO]:    -> running hostpython setup.py build_ext -v
           working:   File "/home/regubed/DesktoException in thread background thread for pid 43611:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 2170, in background_thread
    handle_exit_code(exit_code)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 1929, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
ErrorReturnCode_1: 

  RAN: /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/hostpython setup.py build_ext -v

  STDOUT:
/home/regubed/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory
/home/regubed/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory
/home/regubed/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc
/home/regubed/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -ldl
collect2: error: ld returned 1 exit status
Note: will not use '__sync_synchronize()' in the C code
***** The above error message can be safely ignored.

c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
 #include <ffi.h>
                 ^
compilation terminated.
Traceback (most recent call last):
  File "setup.py", line 335, in <module>
    **keywords_with_side_effects(sys.argv)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/distutils/core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/dist.py", line 268, in __init__
    self.fetch_build_eggs(attrs['setup_requires'])
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
    replace_conflicting=True,
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/pkg_resources/__init__.py", line 836, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/pkg_resources/__init__.py", line 1081, in best_match
    return self.obtain(req, installer)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/pkg_resources/__init__.py", line 1093, in obtain
    return installer(requirement)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/dist.py", line 380, in fetch_build_egg
    return cmd.easy_install(req)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/command/easy_install.py", line 638, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/command/easy_install.py", line 668, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/command/easy_install.py", line 851, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/command/easy_install.py", line 1079, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/command/easy_install.py", line 1067, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command '/usr/bin/ccache' failed with exit status 1


  STDERR:


Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 978, in <module>
    main()
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 975, in main
    ToolchainCL()
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 512, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/home/regubed/Desktop/pupy/client/android_sources/.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/regubed/Desktop/pupy/client/android_sources/.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 "pythonforandroid/build.py", line 573, in build_recipes
  File "pythonforandroid/recipe.py", line 843, in build_arch
  File "pythonforandroid/recipe.py", line 855, in build_compiled_components
  File "pythonforandroid/logger.py", line 175, in shprint
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 720, in next
    self.wait()
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 651, in wait
    self.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/hostpython setup.py build_ext -v

  STDOUT:
/home/regubed/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory
/home/regubed/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory
/home/regubed/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc
/home/regubed/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -ldl
collect2: error: ld returned 1 exit status
Note: will not use '__sync_synchronize()' in the C code
***** The above error message can be safely ignored.

c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
 #include <ffi.h>
                 ^
compilation terminated.
Traceback (most recent call last):
  File "setup.py", line 335, in <module>
    **keywords_with_side_effects(sys.argv)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/distutils/core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/dist.py", line 268, in __init__
    self.fetch_build_eggs(attrs['setup_requires'])
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
    replace_conflicting=True,
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/pkg_resources/__init__.py", line 836, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/pkg_resources/__init__.py", line 1081, in best_match
    return self.obtain(req, installer)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/pkg_resources/__init__.py", line 1093, in obtain
    return installer(requirement)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/dist.py", line 380, in fetch_build_egg
    return cmd.easy_install(req)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/command/easy_install.py", line 638, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/command/easy_install.py", line 668, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/command/easy_install.py", line 851, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/command/easy_install.py", line 1079, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/home/regubed/Desktop/pupy/client/android_sources/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/Lib/site-packages/setuptools/command/easy_install.py", line 1067, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command '/usr/bin/ccache' failed with exit status 1


  STDERR:

# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=aaa --bootstrap=sdl2 --requirements=pycrypto,plyer,psutil,tinyec,netaddr,rpyc,pyjnius,pyuv,cryptography --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/regubed/Desktop/pupy/client/android_sources/.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
@fadymarkram
Copy link

same Error here is there any fix you did

@AndreMiras
Copy link
Member

c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
 #include <ffi.h>

This is because it's probably missing include flag to the libffi directory. Same thing also needs to be applied for linker flag.
You can try to see how it's being handled in other recipes, e.g. cffi https://github.com/kivy/python-for-android/blob/ccd5b59/pythonforandroid/recipes/cffi/__init__.py
As you can see it retrieves libffi include and library path and updates the env with it.

@inclement
Copy link
Member

Closing as stale, cryptography should currently be working on p4a master.

@AndreMiras
Copy link
Member

Yes I confirm it's working, last PR touched it kivy/python-for-android#1658 and the CI went green https://travis-ci.org/kivy/python-for-android/jobs/487622601

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

4 participants