error building kivy app with pushbullet: [DEBUG]: ERROR: Could not find a version that satisfies the requirement pushbullet (from versions: none) #1574
...
[INFO]: # Installing pure Python modules
[INFO]: *** PYTHON PACKAGE / PROJECT INSTALL STAGE FOR ARCH: arm64-v8a ***
[INFO]: The requirements (charset-normalizer, datetime, pushbullet, python-dateutil, requests-futures) 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/ced/programmation/python/kivy/kivy_bourse/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build
[DEBUG]: -> running python3 -m venv venv
[INFO]: Upgrade pip to latest version
[DEBUG]: -> running bash -c source venv/bin/activate && pip install -U pip
[DEBUG]: Ignoring "sys._home = value" override
[DEBUG]: Requirement already satisfied: pip in ./venv/lib/python3.9/site-packages (23.0.1)
[INFO]: Install Cython in case one of the modules needs it to build
[DEBUG]: -> running bash -c venv/bin/pip install Cython
[DEBUG]: Ignoring "sys._home = value" override
[DEBUG]: Requirement already satisfied: Cython in ./python-installs/Bourse/arm64-v8a (0.29.28)
[INFO]: Creating a requirements.txt file for the Python modules
[INFO]: Installing Python modules with pip
[INFO]: IF THIS FAILS, THE MODULES MAY NEED A RECIPE. A reason for this is often modules compiling native code that is unaware of Android cross-compilation and does not work without additional changes / workarounds.
[DEBUG]: -> running bash -c venv/bin/pip install -v --target '/home/ced/programmation/python/kivy/kivy_bourse/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/Bourse/arm64-v8a' --no-deps -r requirements.txt
[DEBUG]: Ignoring "sys._home = value" override
[DEBUG]: Using pip 23.0.1 from /home/ced/programmation/python/kivy/kivy_bourse/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/venv/lib/python3.9/site-packages/pip (python 3.9)
[DEBUG]: Collecting charset-normalizer==2.1.1
[DEBUG]: Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
[DEBUG]: Collecting datetime
[DEBUG]: Using cached DateTime-5.0-py3-none-any.whl (52 kB)
[DEBUG]: ERROR: Could not find a version that satisfies the requirement pushbullet (from versions: none)
[DEBUG]: ERROR: No matching distribution found for pushbullet
[DEBUG]:
Exception in thread background thread for pid 10805:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/ced/.local/lib/python3.8/site-packages/sh.py", line 1641, in wrap
fn(*rgs, **kwargs)
File "/home/ced/.local/lib/python3.8/site-packages/sh.py", line 2569, in background_thread
handle_exit_code(exit_code)
File "/home/ced/.local/lib/python3.8/site-packages/sh.py", line 2269, in fn
return self.command.handle_command_exit_code(exit_code)
File "/home/ced/.local/lib/python3.8/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 -v --target '"'"'/home/ced/programmation/python/kivy/kivy_bourse/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/Bourse/arm64-v8a'"'"' --no-deps -r requirements.txt'
STDOUT:
Ignoring "sys._home = value" override
Using pip 23.0.1 from /home/ced/programmation/python/kivy/kivy_bourse/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/venv/lib/python3.9/site-packages/pip (python 3.9)
Collecting charset-normalizer==2.1.1
Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting datetime
Using cached DateTime-5.0-py3-none-any.whl (52 kB)
ERROR: Could not find a version that satisfies the requirement pushbullet (from versions: none)
ERROR: No matching distribution found for pushbullet
STDERR:
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/ced/programmation/python/kivy/kivy_bourse/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1312, in <module>
main()
File "/home/ced/programmation/python/kivy/kivy_bourse/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/home/ced/programmation/python/kivy/kivy_bourse/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 734, in __init__
getattr(self, command)(args)
File "/home/ced/programmation/python/kivy/kivy_bourse/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 153, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/home/ced/programmation/python/kivy/kivy_bourse/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 212, in build_dist_from_args
build_recipes(build_order, python_modules, ctx,
File "/home/ced/programmation/python/kivy/kivy_bourse/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 528, in build_recipes
run_pymodules_install(
File "/home/ced/programmation/python/kivy/kivy_bourse/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 757, in run_pymodules_install
shprint(sh.bash, '-c', (
File "/home/ced/programmation/python/kivy/kivy_bourse/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
for line in output:
File "/home/ced/.local/lib/python3.8/site-packages/sh.py", line 915, in next
self.wait()
File "/home/ced/.local/lib/python3.8/site-packages/sh.py", line 845, in wait
self.handle_command_exit_code(exit_code)
File "/home/ced/.local/lib/python3.8/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
Finally, I made a mistake in requirements field of Buildozer.spec, I should have added pushbullet.py which is the real name of the package instead of pushbullet.
Versions
Description
I want to use pushbullet module within kivy app, pushbullet function call works in python interpreter on ubuntu , but buildozer build fails.
buildozer.spec
Command: buildozer -v android debug
Spec file:
Logs