Closed lekshmanmj closed 7 months ago
cffi
is a native package, it has parts in C:
https://flet.dev/docs/guides/python/packaging-app-for-distribution#native-python-packages .
See this on how to build native packages for this purpose: https://github.com/flet-dev/serious-python?tab=readme-ov-file#android
And by the way, your requirements file should be handpicked with just the direct dependencies.
And by the way, your requirements file should be handpicked with just the direct dependencies.
Yes Initially I tried with hand picked requirements only ...but later used pip freeze while continuing to troubleshoot the issue. These are my direct dependencies flet pyotp pycryptodome tinyec eciespy requests
cffi
is a native package, it has parts in C: https://flet.dev/docs/guides/python/packaging-app-for-distribution#native-python-packages .See this on how to build native packages for this purpose: https://github.com/flet-dev/serious-python?tab=readme-ov-file#android
I'll try the steps, incase of any hurdles, I'll get back here for seeking your help.
Did it work for you?
sudo apt install autoconf automake autoconf-archive
p4a create --requirements eciespy --arch arm64-v8a --arch armeabi-v7a --arch x86_64 --sdk-dir $ANDROID_SDK_ROOT --ndk-dir $ANDROID_SDK_ROOT/ndk/$NDK_VERSION --dist-name mydist
got this error
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[INFO]: Will compile for the following archs: armeabi-v7a, x86_64, arm64-v8a
[INFO]: Android API target was not set manually, using the default of 33
[INFO]: Available Android APIs are (31, 33, 34)
[INFO]: Requested API target 33 is available, continuing.
[INFO]: Getting NDK dir from from user argument
[INFO]: Found NDK version 25c
[WARNING]: NDK API target was not set manually, using the default of 21 = min(android-api=33, default ndk-api=21)
[INFO]: ccache is missing, the build will not be optimized in the future.
[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: ['eciespy']
[INFO]: Trying to find a bootstrap that matches the given recipes.
[INFO]: Found 4 acceptable bootstraps: ['webview', 'service_library', 'service_only', 'sdl2']
[INFO]: Using the highest ranked/first of these: service_only
[INFO]: Found a single valid recipe set: ['eciespy', 'hostpython3', 'libffi', 'openssl', 'sqlite3', 'python3', 'genericndkbuild', 'setuptools', 'six', 'pyjnius', 'android']
[INFO]: The selected bootstrap is service_only
[INFO]: # Creating dist with service_only bootstrap
[INFO]: Dist will have name mydist and requirements (eciespy)
[INFO]: Dist contains the following requirements as recipes: ['hostpython3', 'libffi', 'openssl', 'sqlite3', 'python3', 'genericndkbuild', 'setuptools', 'six', 'pyjnius', 'android']
[INFO]: Dist will also contain modules (eciespy) installed from pip
[INFO]: Dist will be build in mode debug
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/bootstrap_builds/service_only
[INFO]: <- directory context /home/lekshman
[INFO]: Recipe build order is ['hostpython3', 'libffi', 'openssl', 'sqlite3', 'python3', 'genericndkbuild', 'setuptools', 'six', 'pyjnius', 'android']
[INFO]: The requirements (eciespy) were not found as recipes, they will be installed with pip.
[INFO]: # Downloading recipes
[INFO]: Downloading hostpython3
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/hostpython3
[INFO]: -> running basename https://www.python.org...(and 36 more)
[INFO]: hostpython3 download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading libffi
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/libffi
[INFO]: -> running basename https://github.com/lib...(and 32 more)
[INFO]: libffi download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading openssl
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/openssl
[INFO]: -> running basename https://www.openssl.or...(and 30 more)
[INFO]: openssl download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading sqlite3
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/sqlite3
[INFO]: -> running basename https://www.sqlite.org...(and 37 more)
[INFO]: sqlite3 download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading python3
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/python3
[INFO]: -> running basename https://www.python.org...(and 36 more)
[INFO]: python3 download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading genericndkbuild
[INFO]: Skipping genericndkbuild download as no URL is set
[INFO]: Downloading setuptools
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/setuptools
[INFO]: -> running basename https://pypi.python.o...(and 56 more)
[INFO]: setuptools download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading six
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/six
[INFO]: -> running basename https://pypi.python.or...(and 41 more)
[INFO]: six download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading pyjnius
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/pyjnius
[INFO]: -> running basename https://github.com/kiv...(and 27 more)
[INFO]: pyjnius download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading android
[INFO]: Skipping android download as no URL is set
[INFO]: # Building all recipes for arch armeabi-v7a
[INFO]: # Unpacking recipes
[INFO]: Unpacking hostpython3 for armeabi-v7a
[INFO]: -> running basename https://www.python.org...(and 36 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/hostpython3/desktop
[INFO]: hostpython3 is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking libffi for armeabi-v7a
[INFO]: -> running basename https://github.com/lib...(and 32 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a__ndk_target_21
[INFO]: libffi is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking openssl for armeabi-v7a
[INFO]: -> running basename https://www.openssl.or...(and 30 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/openssl/armeabi-v7a__ndk_target_21
[INFO]: openssl is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking sqlite3 for armeabi-v7a
[INFO]: -> running basename https://www.sqlite.org...(and 37 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/sqlite3/armeabi-v7a__ndk_target_21
[INFO]: sqlite3 is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking python3 for armeabi-v7a
[INFO]: -> running basename https://www.python.org...(and 36 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/python3/armeabi-v7a__ndk_target_21
[INFO]: python3 is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking genericndkbuild for armeabi-v7a
[INFO]: Skipping genericndkbuild unpack as no URL is set
[INFO]: Unpacking setuptools for armeabi-v7a
[INFO]: -> running basename https://pypi.python.o...(and 56 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/setuptools/armeabi-v7a__ndk_target_21
[INFO]: setuptools is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking six for armeabi-v7a
[INFO]: -> running basename https://pypi.python.or...(and 41 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/six/armeabi-v7a__ndk_target_21
[INFO]: six is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking pyjnius for armeabi-v7a
[INFO]: -> running basename https://github.com/kiv...(and 27 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/pyjnius-genericndkbuild/armeabi-v7a__ndk_target_21
[INFO]: pyjnius is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: -> running cp -a /home/lekshman/.venv/lib...(and 187 more)
[INFO]: # Prebuilding recipes
[INFO]: Prebuilding hostpython3 for armeabi-v7a
[INFO]: hostpython3 has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for hostpython3[armeabi-v7a]
[INFO]: hostpython3 already patched, skipping
[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 sqlite3 for armeabi-v7a
[INFO]: sqlite3 has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding python3 for armeabi-v7a
[INFO]: python3 has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for python3[armeabi-v7a]
[INFO]: python3 already patched, skipping
[INFO]: Prebuilding genericndkbuild for armeabi-v7a
[INFO]: genericndkbuild has no prebuild_armeabi_v7a, 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 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 android for armeabi-v7a
[INFO]: android has no prebuild_armeabi_v7a, skipping
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/android-genericndkbuild/armeabi-v7a__ndk_target_21/android
[INFO]: <- directory context /home/lekshman
[INFO]: # Building recipes
[INFO]: Building hostpython3 for armeabi-v7a
[INFO]: hostpython3 said it is already built, skipping
[INFO]: Building libffi for armeabi-v7a
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi
[INFO]: -> running autoreconf -vif
working: autoreconf: error: /usr/bin/autoconf faile...(and 21 more) Exception in thread background thread for pid 21074:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 1641, in wrap
fn(*rgs, **kwargs)
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 2569, in background_thread
handle_exit_code(exit_code)
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 2269, in fn
return self.command.handle_command_exit_code(exit_code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /usr/bin/autoreconf -vif
STDOUT:
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /usr/bin/autoconf --force
configure.ac:8: warning: The macro `AC_CANONICAL_SYSTEM' is obsolete.
configure.ac:8: You should run autoupdate.
./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from...
configure.ac:8: the top level
configure.ac:74: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:74: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:3: AC_FUNC_MMAP_BLACKLIST is expanded from...
configure.ac:74: the top level
configure.ac:91: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:91: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:91: the top level
configure.ac:118: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:118: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/asmcfi.m4:1: GCC_AS_CFI_PSEUDO_OP is expanded from...
configure.ac:118: the top level
configure.ac:122: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:122: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
configure.ac:122: the top level
configure.ac:138: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:138: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
configure.ac:138: the top level
configure.ac:185: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:185: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
configure.ac:185: the top level
configure.ac:310: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:310: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:310: the top level
configure.ac:418: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:418: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
acinclude.m4:353: LIBFFI_ENABLE_SYMVERS is expanded from...
configure.ac:418: the top level
configure.ac:418: warning: AC_PROG_LD is m4_require'd but not m4_defun'd
acinclude.m4:251: LIBFFI_CHECK_LINKER_FEATURES is expanded from...
acinclude.m4:353: LIBFFI_ENABLE_SYMVERS is expanded from...
configure.ac:418: the top level
configure.ac:418: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:418: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
acinclude.m4:251: LIBFFI_CHECK_LINKER_FEATURES is expanded from...
acinclude.m4:353: LIBFFI_ENABLE_SYMVERS is expanded from...
configure.ac:418: the top level
configure.ac:418: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:418: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
acinclude.m4:353: LIBFFI_ENABLE_SYMVERS is expanded from...
configure.ac:418: the top level
configure.ac:41: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:8529: error: possibly undefined macro: AC_PROG_LD
autoreconf: error: /usr/bin/autoconf failed with exit status: 1
STDERR:
Traceback (most recent call last):
File "/home/lekshman/.venv/bin/p4a", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/toolchain.py", line 685, in __init__
getattr(self, command)(args)
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/toolchain.py", line 104, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/toolchain.py", line 163, in build_dist_from_args
build_recipes(build_order, python_modules, ctx,
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/build.py", line 504, in build_recipes
recipe.build_arch(arch)
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/recipes/libffi/__init__.py", line 29, in build_arch
shprint(sh.Command('autoreconf'), '-vif', _env=env)
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/logger.py", line 167, in shprint
for line in output:
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 915, in next
self.wait()
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 845, in wait
self.handle_command_exit_code(exit_code)
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /usr/bin/autoreconf -vif
STDOUT:
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /usr/bin/autoconf --force
configure.ac:8: warning: The macro `AC_CANONICAL_SYSTEM' is obsolete.
configure.ac:8: You should run autoupdate.
./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from...
configure.ac:8: the top level
configure.ac:74: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:74: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:3: AC_FUNC_MMAP_BLACKLIST is expanded from...
configure.ac:74: the top level
configure.ac:91: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:91: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:91: the top level
configure.ac:118: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:118: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/asmcfi.m4:1: GCC_AS_CFI_PSEUDO_OP is expanded from...
configure.ac:118: the top level
configure.ac:122: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:122: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
configure.ac:122: the top level
configure.ac:138: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:138: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
configure.ac:138: the top level
configure.ac:185: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:185: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
configure.ac:185: the top level
configure.ac:310: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:310: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:310: the top level
configure.ac:418: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:418: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
acinclude.m4:353: LIBFFI_ENABLE_SYMVERS is expanded from...
configure.ac:418: the top level
configure.ac:418: warning: AC_PROG_LD is m4_require'd but not m4_defun'd
acinclude.m4:251: LIBFFI_CHECK_LINKER_FEATURES is expanded from...
acinclude.m4:353: LIBFFI_ENABLE_SYMVERS is expanded from...
configure.ac:418: the top level
configure.ac:418: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:418: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
acinclude.m4:251: LIBFFI_CHECK_LINKER_FEATURES is expanded from...
acinclude.m4:353: LIBFFI_ENABLE_SYMVERS is expanded from...
configure.ac:418: the top level
configure.ac:418: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:418: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
acinclude.m4:353: LIBFFI_ENABLE_SYMVERS is expanded from...
configure.ac:418: the top level
configure.ac:41: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:8529: error: possibly undefined macro: AC_PROG_LD
autoreconf: error: /usr/bin/autoconf failed with exit status: 1
STDERR:
Did it work for you?
Sorry, Just now saw your comment while coming back here to reopen the issue. I got the above posted error.
After the above posted error,
I executed sudo apt install libtool
now i understood it need autoconf, automake, libtools and pkg-config
now again ran p4a command.....
p4a create --requirements eciespy --arch arm64-v8a --arch armeabi-v7a --arch x86_64 --sdk-dir $ANDROID_SDK_ROOT --ndk-dir $ANDROID_SDK_ROOT/ndk/$NDK_VERSION --dist-name mydist
everthing looked like going well but unfortunately met with new error as displayed below
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[INFO]: Will compile for the following archs: arm64-v8a, armeabi-v7a, x86_64
[INFO]: Android API target was not set manually, using the default of 33
[INFO]: Available Android APIs are (31, 33, 34)
[INFO]: Requested API target 33 is available, continuing.
[INFO]: Getting NDK dir from from user argument
[INFO]: Found NDK version 25c
[WARNING]: NDK API target was not set manually, using the default of 21 = min(android-api=33, default ndk-api=21)
[INFO]: ccache is missing, the build will not be optimized in the future.
[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: ['eciespy']
[INFO]: Trying to find a bootstrap that matches the given recipes.
[INFO]: Found 4 acceptable bootstraps: ['webview', 'service_only', 'sdl2', 'service_library']
[INFO]: Using the highest ranked/first of these: service_only
[INFO]: Found a single valid recipe set: ['eciespy', 'hostpython3', 'libffi', 'openssl', 'sqlite3', 'python3', 'genericndkbuild', 'setuptools', 'six', 'pyjnius', 'android']
[INFO]: The selected bootstrap is service_only
[INFO]: # Creating dist with service_only bootstrap
[INFO]: Dist will have name mydist and requirements (eciespy)
[INFO]: Dist contains the following requirements as recipes: ['hostpython3', 'libffi', 'openssl', 'sqlite3', 'python3', 'genericndkbuild', 'setuptools', 'six', 'pyjnius', 'android']
[INFO]: Dist will also contain modules (eciespy) installed from pip
[INFO]: Dist will be build in mode debug
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/bootstrap_builds/service_only
[INFO]: <- directory context /home/lekshman
[INFO]: Recipe build order is ['hostpython3', 'libffi', 'openssl', 'sqlite3', 'python3', 'genericndkbuild', 'setuptools', 'six', 'pyjnius', 'android']
[INFO]: The requirements (eciespy) were not found as recipes, they will be installed with pip.
[INFO]: # Downloading recipes
[INFO]: Downloading hostpython3
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/hostpython3
[INFO]: -> running basename https://www.python.org...(and 36 more)
[INFO]: hostpython3 download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading libffi
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/libffi
[INFO]: -> running basename https://github.com/lib...(and 32 more)
[INFO]: libffi download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading openssl
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/openssl
[INFO]: -> running basename https://www.openssl.or...(and 30 more)
[INFO]: openssl download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading sqlite3
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/sqlite3
[INFO]: -> running basename https://www.sqlite.org...(and 37 more)
[INFO]: sqlite3 download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading python3
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/python3
[INFO]: -> running basename https://www.python.org...(and 36 more)
[INFO]: python3 download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading genericndkbuild
[INFO]: Skipping genericndkbuild download as no URL is set
[INFO]: Downloading setuptools
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/setuptools
[INFO]: -> running basename https://pypi.python.o...(and 56 more)
[INFO]: setuptools download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading six
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/six
[INFO]: -> running basename https://pypi.python.or...(and 41 more)
[INFO]: six download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading pyjnius
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/packages/pyjnius
[INFO]: -> running basename https://github.com/kiv...(and 27 more)
[INFO]: pyjnius download already cached, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Downloading android
[INFO]: Skipping android download as no URL is set
[INFO]: # Building all recipes for arch arm64-v8a
[INFO]: # Unpacking recipes
[INFO]: Unpacking hostpython3 for arm64-v8a
[INFO]: -> running basename https://www.python.org...(and 36 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/hostpython3/desktop
[INFO]: hostpython3 is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking libffi for arm64-v8a
[INFO]: -> running basename https://github.com/lib...(and 32 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/libffi/arm64-v8a__ndk_target_21
[INFO]: libffi is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking openssl for arm64-v8a
[INFO]: -> running basename https://www.openssl.or...(and 30 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/openssl/arm64-v8a__ndk_target_21
[INFO]: openssl is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking sqlite3 for arm64-v8a
[INFO]: -> running basename https://www.sqlite.org...(and 37 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/sqlite3/arm64-v8a__ndk_target_21
[INFO]: sqlite3 is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking python3 for arm64-v8a
[INFO]: -> running basename https://www.python.org...(and 36 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/python3/arm64-v8a__ndk_target_21
[INFO]: python3 is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking genericndkbuild for arm64-v8a
[INFO]: Skipping genericndkbuild unpack as no URL is set
[INFO]: Unpacking setuptools for arm64-v8a
[INFO]: -> running basename https://pypi.python.o...(and 56 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/setuptools/arm64-v8a__ndk_target_21
[INFO]: setuptools is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking six for arm64-v8a
[INFO]: -> running basename https://pypi.python.or...(and 41 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/six/arm64-v8a__ndk_target_21
[INFO]: six is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking pyjnius for arm64-v8a
[INFO]: -> running basename https://github.com/kiv...(and 27 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/pyjnius-genericndkbuild/arm64-v8a__ndk_target_21
[INFO]: pyjnius is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: -> running cp -a /home/lekshman/.venv/lib...(and 185 more)
[INFO]: # Prebuilding recipes
[INFO]: Prebuilding hostpython3 for arm64-v8a
[INFO]: hostpython3 has no prebuild_arm64_v8a, skipping
[INFO]: Applying patches for hostpython3[arm64-v8a]
[INFO]: hostpython3 already patched, skipping
[INFO]: Prebuilding libffi for arm64-v8a
[INFO]: libffi has no prebuild_arm64_v8a, skipping
[INFO]: Applying patches for libffi[arm64-v8a]
[INFO]: libffi already patched, skipping
[INFO]: Prebuilding openssl for arm64-v8a
[INFO]: openssl has no prebuild_arm64_v8a, skipping
[INFO]: Prebuilding sqlite3 for arm64-v8a
[INFO]: sqlite3 has no prebuild_arm64_v8a, skipping
[INFO]: Prebuilding python3 for arm64-v8a
[INFO]: python3 has no prebuild_arm64_v8a, skipping
[INFO]: Applying patches for python3[arm64-v8a]
[INFO]: python3 already patched, skipping
[INFO]: Prebuilding genericndkbuild for arm64-v8a
[INFO]: genericndkbuild has no prebuild_arm64_v8a, skipping
[INFO]: Prebuilding setuptools for arm64-v8a
[INFO]: setuptools has no prebuild_arm64_v8a, skipping
[INFO]: Prebuilding six for arm64-v8a
[INFO]: six has no prebuild_arm64_v8a, skipping
[INFO]: Prebuilding pyjnius for arm64-v8a
[INFO]: pyjnius has no prebuild_arm64_v8a, skipping
[INFO]: Applying patches for pyjnius[arm64-v8a]
[INFO]: pyjnius already patched, skipping
[INFO]: Prebuilding android for arm64-v8a
[INFO]: android has no prebuild_arm64_v8a, skipping
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/android-genericndkbuild/arm64-v8a__ndk_target_21/android
[INFO]: <- directory context /home/lekshman
[INFO]: # Building recipes
[INFO]: Building hostpython3 for arm64-v8a
[INFO]: hostpython3 said it is already built, skipping
[INFO]: Building libffi for arm64-v8a
[INFO]: libffi said it is already built, skipping
[INFO]: -> running cp /home/lekshman/.local/share...(and 180 more)
[INFO]: Building openssl for arm64-v8a
[INFO]: openssl said it is already built, skipping
[INFO]: -> running cp /home/lekshman/.local/share...(and 308 more)
[INFO]: Building sqlite3 for arm64-v8a
[INFO]: sqlite3 said it is already built, skipping
[INFO]: Building python3 for arm64-v8a
[INFO]: python3 said it is already built, skipping
[INFO]: Building genericndkbuild for arm64-v8a
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/bootstrap_builds/service_only/jni
[INFO]: -> running ndk-build V=1
[INFO]: <- directory context /home/lekshman
[INFO]: Building setuptools for arm64-v8a
[INFO]: Python package already exists in site-packages
[INFO]: setuptools said it is already built, skipping
[INFO]: Building six for arm64-v8a
[INFO]: Python package already exists in site-packages
[INFO]: six said it is already built, skipping
[INFO]: Building pyjnius for arm64-v8a
[INFO]: Python package already exists in site-packages
[INFO]: pyjnius said it is already built, skipping
[INFO]: Building android for arm64-v8a
[INFO]: Python package already exists in site-packages
[INFO]: android said it is already built, skipping
[INFO]: # Biglinking object files
[WARNING]: Context's python recipe found, skipping biglink (will this work?)
[INFO]: # Postbuilding recipes
[INFO]: Postbuilding hostpython3 for arm64-v8a
[INFO]: Postbuilding libffi for arm64-v8a
[INFO]: Postbuilding openssl for arm64-v8a
[INFO]: Postbuilding sqlite3 for arm64-v8a
[INFO]: Postbuilding python3 for arm64-v8a
[INFO]: Postbuilding genericndkbuild for arm64-v8a
[INFO]: Postbuilding setuptools for arm64-v8a
[INFO]: Postbuilding six for arm64-v8a
[INFO]: Postbuilding pyjnius for arm64-v8a
[INFO]: Copying pyjnius java class to classes build dir
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/pyjnius-genericndkbuild/arm64-v8a__ndk_target_21/pyjnius
[INFO]: -> running cp -a jnius/src/org /home/leks...(and 61 more)
[INFO]: <- directory context /home/lekshman
[INFO]: Postbuilding android for arm64-v8a
[INFO]: # Building all recipes for arch armeabi-v7a
[INFO]: # Unpacking recipes
[INFO]: Unpacking hostpython3 for armeabi-v7a
[INFO]: -> running basename https://www.python.org...(and 36 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/hostpython3/desktop
[INFO]: hostpython3 is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking libffi for armeabi-v7a
[INFO]: -> running basename https://github.com/lib...(and 32 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a__ndk_target_21
[INFO]: libffi is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking openssl for armeabi-v7a
[INFO]: -> running basename https://www.openssl.or...(and 30 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/openssl/armeabi-v7a__ndk_target_21
[INFO]: openssl is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking sqlite3 for armeabi-v7a
[INFO]: -> running basename https://www.sqlite.org...(and 37 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/sqlite3/armeabi-v7a__ndk_target_21
[INFO]: sqlite3 is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking python3 for armeabi-v7a
[INFO]: -> running basename https://www.python.org...(and 36 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/python3/armeabi-v7a__ndk_target_21
[INFO]: python3 is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking genericndkbuild for armeabi-v7a
[INFO]: Skipping genericndkbuild unpack as no URL is set
[INFO]: Unpacking setuptools for armeabi-v7a
[INFO]: -> running basename https://pypi.python.o...(and 56 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/setuptools/armeabi-v7a__ndk_target_21
[INFO]: setuptools is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking six for armeabi-v7a
[INFO]: -> running basename https://pypi.python.or...(and 41 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/six/armeabi-v7a__ndk_target_21
[INFO]: six is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking pyjnius for armeabi-v7a
[INFO]: -> running basename https://github.com/kiv...(and 27 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/pyjnius-genericndkbuild/armeabi-v7a__ndk_target_21
[INFO]: pyjnius is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: -> running cp -a /home/lekshman/.venv/lib...(and 187 more)
[INFO]: # Prebuilding recipes
[INFO]: Prebuilding hostpython3 for armeabi-v7a
[INFO]: hostpython3 has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for hostpython3[armeabi-v7a]
[INFO]: hostpython3 already patched, skipping
[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 sqlite3 for armeabi-v7a
[INFO]: sqlite3 has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding python3 for armeabi-v7a
[INFO]: python3 has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for python3[armeabi-v7a]
[INFO]: python3 already patched, skipping
[INFO]: Prebuilding genericndkbuild for armeabi-v7a
[INFO]: genericndkbuild has no prebuild_armeabi_v7a, 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 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 android for armeabi-v7a
[INFO]: android has no prebuild_armeabi_v7a, skipping
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/android-genericndkbuild/armeabi-v7a__ndk_target_21/android
[INFO]: <- directory context /home/lekshman
[INFO]: # Building recipes
[INFO]: Building hostpython3 for armeabi-v7a
[INFO]: hostpython3 said it is already built, skipping
[INFO]: Building libffi for armeabi-v7a
[INFO]: libffi said it is already built, skipping
[INFO]: -> running cp /home/lekshman/.local/share...(and 184 more)
[INFO]: Building openssl for armeabi-v7a
[INFO]: openssl said it is already built, skipping
[INFO]: -> running cp /home/lekshman/.local/share...(and 314 more)
[INFO]: Building sqlite3 for armeabi-v7a
[INFO]: sqlite3 said it is already built, skipping
[INFO]: Building python3 for armeabi-v7a
[INFO]: python3 said it is already built, skipping
[INFO]: Building genericndkbuild for armeabi-v7a
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/bootstrap_builds/service_only/jni
[INFO]: -> running ndk-build V=1
[INFO]: <- directory context /home/lekshman
[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 pyjnius for armeabi-v7a
[INFO]: Python package already exists in site-packages
[INFO]: pyjnius said it is already built, skipping
[INFO]: Building android for armeabi-v7a
[INFO]: Python package already exists in site-packages
[INFO]: android said it is already built, skipping
[INFO]: # Biglinking object files
[WARNING]: Context's python recipe found, skipping biglink (will this work?)
[INFO]: # Postbuilding recipes
[INFO]: Postbuilding hostpython3 for armeabi-v7a
[INFO]: Postbuilding libffi for armeabi-v7a
[INFO]: Postbuilding openssl for armeabi-v7a
[INFO]: Postbuilding sqlite3 for armeabi-v7a
[INFO]: Postbuilding python3 for armeabi-v7a
[INFO]: Postbuilding genericndkbuild for armeabi-v7a
[INFO]: Postbuilding setuptools for armeabi-v7a
[INFO]: Postbuilding six for armeabi-v7a
[INFO]: Postbuilding pyjnius for armeabi-v7a
[INFO]: Copying pyjnius java class to classes build dir
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/pyjnius-genericndkbuild/armeabi-v7a__ndk_target_21/pyjnius
[INFO]: -> running cp -a jnius/src/org /home/leks...(and 61 more)
[INFO]: <- directory context /home/lekshman
[INFO]: Postbuilding android for armeabi-v7a
[INFO]: # Building all recipes for arch x86_64
[INFO]: # Unpacking recipes
[INFO]: Unpacking hostpython3 for x86_64
[INFO]: -> running basename https://www.python.org...(and 36 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/hostpython3/desktop
[INFO]: hostpython3 is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking libffi for x86_64
[INFO]: -> running basename https://github.com/lib...(and 32 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/libffi/x86_64__ndk_target_21
[INFO]: libffi is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking openssl for x86_64
[INFO]: -> running basename https://www.openssl.or...(and 30 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/openssl/x86_64__ndk_target_21
[INFO]: openssl is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking sqlite3 for x86_64
[INFO]: -> running basename https://www.sqlite.org...(and 37 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/sqlite3/x86_64__ndk_target_21
[INFO]: sqlite3 is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking python3 for x86_64
[INFO]: -> running basename https://www.python.org...(and 36 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/python3/x86_64__ndk_target_21
[INFO]: python3 is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking genericndkbuild for x86_64
[INFO]: Skipping genericndkbuild unpack as no URL is set
[INFO]: Unpacking setuptools for x86_64
[INFO]: -> running basename https://pypi.python.o...(and 56 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/setuptools/x86_64__ndk_target_21
[INFO]: setuptools is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking six for x86_64
[INFO]: -> running basename https://pypi.python.or...(and 41 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/six/x86_64__ndk_target_21
[INFO]: six is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: Unpacking pyjnius for x86_64
[INFO]: -> running basename https://github.com/kiv...(and 27 more)
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/pyjnius-genericndkbuild/x86_64__ndk_target_21
[INFO]: pyjnius is already unpacked, skipping
[INFO]: <- directory context /home/lekshman
[INFO]: -> running cp -a /home/lekshman/.venv/lib...(and 182 more)
[INFO]: # Prebuilding recipes
[INFO]: Prebuilding hostpython3 for x86_64
[INFO]: hostpython3 has no prebuild_x86_64, skipping
[INFO]: Applying patches for hostpython3[x86_64]
[INFO]: hostpython3 already patched, skipping
[INFO]: Prebuilding libffi for x86_64
[INFO]: libffi has no prebuild_x86_64, skipping
[INFO]: Applying patches for libffi[x86_64]
[INFO]: libffi already patched, skipping
[INFO]: Prebuilding openssl for x86_64
[INFO]: openssl has no prebuild_x86_64, skipping
[INFO]: Prebuilding sqlite3 for x86_64
[INFO]: sqlite3 has no prebuild_x86_64, skipping
[INFO]: Prebuilding python3 for x86_64
[INFO]: python3 has no prebuild_x86_64, skipping
[INFO]: Applying patches for python3[x86_64]
[INFO]: python3 already patched, skipping
[INFO]: Prebuilding genericndkbuild for x86_64
[INFO]: genericndkbuild has no prebuild_x86_64, skipping
[INFO]: Prebuilding setuptools for x86_64
[INFO]: setuptools has no prebuild_x86_64, skipping
[INFO]: Prebuilding six for x86_64
[INFO]: six has no prebuild_x86_64, skipping
[INFO]: Prebuilding pyjnius for x86_64
[INFO]: pyjnius has no prebuild_x86_64, skipping
[INFO]: Applying patches for pyjnius[x86_64]
[INFO]: pyjnius already patched, skipping
[INFO]: Prebuilding android for x86_64
[INFO]: android has no prebuild_x86_64, skipping
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/android-genericndkbuild/x86_64__ndk_target_21/android
[INFO]: <- directory context /home/lekshman
[INFO]: # Building recipes
[INFO]: Building hostpython3 for x86_64
[INFO]: hostpython3 said it is already built, skipping
[INFO]: Building libffi for x86_64
[INFO]: libffi said it is already built, skipping
[INFO]: -> running cp /home/lekshman/.local/share...(and 174 more)
[INFO]: Building openssl for x86_64
[INFO]: openssl said it is already built, skipping
[INFO]: -> running cp /home/lekshman/.local/share...(and 299 more)
[INFO]: Building sqlite3 for x86_64
[INFO]: sqlite3 said it is already built, skipping
[INFO]: Building python3 for x86_64
[INFO]: python3 said it is already built, skipping
[INFO]: Building genericndkbuild for x86_64
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/bootstrap_builds/service_only/jni
[INFO]: -> running ndk-build V=1
[INFO]: <- directory context /home/lekshman
[INFO]: Building setuptools for x86_64
[INFO]: Python package already exists in site-packages
[INFO]: setuptools said it is already built, skipping
[INFO]: Building six for x86_64
[INFO]: Python package already exists in site-packages
[INFO]: six said it is already built, skipping
[INFO]: Building pyjnius for x86_64
[INFO]: Python package already exists in site-packages
[INFO]: pyjnius said it is already built, skipping
[INFO]: Building android for x86_64
[INFO]: Python package already exists in site-packages
[INFO]: android said it is already built, skipping
[INFO]: # Biglinking object files
[WARNING]: Context's python recipe found, skipping biglink (will this work?)
[INFO]: # Postbuilding recipes
[INFO]: Postbuilding hostpython3 for x86_64
[INFO]: Postbuilding libffi for x86_64
[INFO]: Postbuilding openssl for x86_64
[INFO]: Postbuilding sqlite3 for x86_64
[INFO]: Postbuilding python3 for x86_64
[INFO]: Postbuilding genericndkbuild for x86_64
[INFO]: Postbuilding setuptools for x86_64
[INFO]: Postbuilding six for x86_64
[INFO]: Postbuilding pyjnius for x86_64
[INFO]: Copying pyjnius java class to classes build dir
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build/other_builds/pyjnius-genericndkbuild/x86_64__ndk_target_21/pyjnius
[INFO]: -> running cp -a jnius/src/org /home/leks...(and 61 more)
[INFO]: <- directory context /home/lekshman
[INFO]: Postbuilding android for x86_64
[INFO]: # Installing pure Python modules
[INFO]: *** PYTHON PACKAGE / PROJECT INSTALL STAGE FOR ARCH: arm64-v8a ***
[INFO]: The requirements (eciespy) don't have recipes, attempting to install them with pip
[INFO]: If this fails, it may mean that the module has compiled components and needs a recipe.
[INFO]: -> directory context /home/lekshman/.local/share/python-for-android/build
[INFO]: -> running python3 -m venv venv
[INFO]: Upgrade pip to latest version
[INFO]: -> running bash -c source venv/bin/activat...(and 23 more)
[INFO]: Install Cython in case one of the modules needs it to build
[INFO]: -> running bash -c venv/bin/pip install Cython
working: Could not fetch URL https://pypi.org/...(and 259 more) Exception in thread background thread for pid 79986:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 1641, in wrap
fn(*rgs, **kwargs)
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 2569, in background_thread
handle_exit_code(exit_code)
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 2269, in fn
return self.command.handle_command_exit_code(exit_code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /usr/bin/bash -c 'venv/bin/pip install Cython'
STDOUT:
Ignoring "sys._home = value" override
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
Could not fetch URL https://pypi.org/simple/cython/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/cython/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement Cython (from versions: none)
ERROR: No matching distribution found for Cython
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
STDERR:
Traceback (most recent call last):
File "/home/lekshman/.venv/bin/p4a", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/toolchain.py", line 685, in __init__
getattr(self, command)(args)
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/toolchain.py", line 104, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/toolchain.py", line 163, in build_dist_from_args
build_recipes(build_order, python_modules, ctx,
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/build.py", line 528, in build_recipes
run_pymodules_install(
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/build.py", line 713, in run_pymodules_install
shprint(sh.bash, '-c', (
File "/home/lekshman/.venv/lib/python3.11/site-packages/pythonforandroid/logger.py", line 167, in shprint
for line in output:
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 915, in next
self.wait()
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 845, in wait
self.handle_command_exit_code(exit_code)
File "/home/lekshman/.venv/lib/python3.11/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /usr/bin/bash -c 'venv/bin/pip install Cython'
STDOUT:
Ignoring "sys._home = value" override
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
Could not fetch URL https://pypi.org/simple/cython/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/cython/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement Cython (from versions: none)
ERROR: No matching distribution found for Cython
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
STDERR:
Latest update p4a command with numpy completes successfully, but with eciespy it failed with above posted error. Note: cython is already installed .venv environment
as I don't know what changes to be done to make it work, i replace current ecies with pure python implementation of ecies.
Description commands throwing error:
flet build apk --out /home/lekshman/goldfinance/apk -vv --template https://github.com/flet-dev/flet-build-template.git
flet build web --out /home/lekshman/goldfinance/web -vv --template https://github.com/flet-dev/flet-build-template.git
requirements.txt
Build Log:
Additional information you deem important (e.g. issue happens only occasionally): NO PROBLEM WHEN RUNNING
flet build linux --out /home/lekshman/goldfinance/gf_linux --template https://github.com/flet-dev/flet-build-template.git -vv
Flet version (
pip show flet
):Operating system: Kali Linux