Closed Dsyboot closed 9 months ago
👋 @Dsyboot, Sorry to hear you are having difficulties with Kivy's Buildozer; Kivy unites a number of different technologies, so building apps can be temperamental. We try to use GitHub issues only to track work for developers to do to fix bugs and add new features to Buildozer. This issue has been closed, because it doesn't describe a bug or new feature request for Buildozer. There is a mailing list and a Discord channel to support Kivy users debugging their own systems, which should be able to help. They are linked in the ReadMe. Of course, if it turns out you have stumbled over a bug in Buildozer, we do want to hear about it here. The support channels should be able to help you craft an appropriate bug report.
Well, I tried to put a link to the plyer master in the "requirements" section of my buildozer file, since installing plyer usually generates problems with notifications.notify
So I tried to put this link: https://github.com/kivy/plyer/archive/refs/heads/master.zip
But I got this error in compilation (I used GitHub actions, because I don't have a computer):
2024-02-09T00:09:54.4565862Z [1m[90m[DEBUG][39m[0m: [?25hInstalling collected packages: Cython 2024-02-09T00:09:55.2374669Z [1m[90m[DEBUG][39m[0m: Successfully installed Cython-3.0.8 2024-02-09T00:09:55.3283268Z [1m[INFO][0m: Creating a requirements.txt file for the Python modules 2024-02-09T00:09:55.3284257Z [1m[INFO][0m: Installing Python modules with pip 2024-02-09T00:09:55.3286244Z [1m[INFO][0m: 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. 2024-02-09T00:09:55.3320916Z stty: 'standard input': Inappropriate ioctl for device 2024-02-09T00:09:55.3327483Z [1m[90m[DEBUG][39m[0m: [90m->[0m running bash -c venv/bin/pip install -v --target '/github/workspace/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/yodo/armeabi-v7a' --no-deps -r requirements.txt[0m 2024-02-09T00:09:55.3527592Z [1m[90m[DEBUG][39m[0m: Ignoring "sys._home = value" override 2024-02-09T00:09:55.6991901Z [1m[90m[DEBUG][39m[0m: Using pip 24.0 from /github/workspace/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/venv/lib/python3.9/site-packages/pip (python 3.9) 2024-02-09T00:09:55.7426925Z [1m[90m[DEBUG][39m[0m: [31mERROR: Invalid requirement: '"https://github.com/kivy/plyer/archive/refs/heads/master.zip"' (from line 1 of requirements.txt) 2024-02-09T00:09:55.7429429Z [1m[90m[DEBUG][39m[0m: Hint: It looks like a path. File '"https://github.com/kivy/plyer/archive/refs/heads/master.zip"' does not exist.[0m[31m 2024-02-09T00:09:55.7967949Z [1m[90m[DEBUG][39m[0m: [0m 2024-02-09T00:09:55.7974918Z Exception in thread background thread for pid 74454: 2024-02-09T00:09:55.7975561Z Traceback (most recent call last): 2024-02-09T00:09:55.7976318Z File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner 2024-02-09T00:09:55.7986040Z self.run() 2024-02-09T00:09:55.7986923Z File "/usr/lib/python3.8/threading.py", line 870, in run 2024-02-09T00:09:55.7988155Z self._target(*self._args, *self._kwargs) 2024-02-09T00:09:55.7989440Z File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 1637, in wrap 2024-02-09T00:09:55.7997662Z fn(rgs, **kwargs) 2024-02-09T00:09:55.7999085Z File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 2561, in background_thread 2024-02-09T00:09:55.8000264Z handle_exit_code(exit_code) 2024-02-09T00:09:55.8001089Z File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 2265, in fn 2024-02-09T00:09:55.8001949Z return self.command.handle_command_exit_code(exit_code) 2024-02-09T00:09:55.8003084Z File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 865, in handle_command_exit_code 2024-02-09T00:09:55.8003936Z raise exc 2024-02-09T00:09:55.8004268Z sh.ErrorReturnCode_1: 2024-02-09T00:09:55.8004517Z 2024-02-09T00:09:55.8006008Z RAN: /usr/bin/bash -c 'venv/bin/pip install -v --target '"'"'/github/workspace/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/yodo/armeabi-v7a'"'"' --no-deps -r requirements.txt' 2024-02-09T00:09:55.8007485Z 2024-02-09T00:09:55.8007590Z STDOUT: 2024-02-09T00:09:55.8007925Z Ignoring "sys._home = value" override 2024-02-09T00:09:55.8009339Z Using pip 24.0 from /github/workspace/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/venv/lib/python3.9/site-packages/pip (python 3.9) 2024-02-09T00:09:55.8011331Z [31mERROR: Invalid requirement: '"https://github.com/kivy/plyer/archive/refs/heads/master.zip"' (from line 1 of requirements.txt) 2024-02-09T00:09:55.8013109Z Hint: It looks like a path. File '"https://github.com/kivy/plyer/archive/refs/heads/master.zip"' does not exist.[0m[31m 2024-02-09T00:09:55.8014127Z [0m 2024-02-09T00:09:55.8014281Z 2024-02-09T00:09:55.8014399Z STDERR: 2024-02-09T00:09:55.8014567Z 2024-02-09T00:09:55.8020013Z Traceback (most recent call last): 2024-02-09T00:09:55.8020784Z File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main 2024-02-09T00:09:55.8021518Z return _run_code(code, main_globals, None, 2024-02-09T00:09:55.8022183Z File "/usr/lib/python3.8/runpy.py", line 87, in _run_code 2024-02-09T00:09:55.8022758Z exec(code, run_globals) 2024-02-09T00:09:55.8024039Z File "/github/workspace/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1312, in
2024-02-09T00:09:55.8025112Z main()
2024-02-09T00:09:55.8026163Z File "/github/workspace/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
2024-02-09T00:09:55.8027541Z ToolchainCL()
2024-02-09T00:09:55.8028685Z File "/github/workspace/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 734, in init
2024-02-09T00:09:55.8029796Z getattr(self, command)(args)
2024-02-09T00:09:55.8031033Z File "/github/workspace/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 153, in wrapper_func
2024-02-09T00:09:55.8032165Z build_dist_from_args(ctx, dist, args)
2024-02-09T00:09:55.8033511Z File "/github/workspace/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 212, in build_dist_from_args
2024-02-09T00:09:55.8034765Z build_recipes(build_order, python_modules, ctx,
2024-02-09T00:09:55.8036076Z File "/github/workspace/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 528, in build_recipes
2024-02-09T00:09:55.8037162Z run_pymodules_install(
2024-02-09T00:09:55.8038406Z File "/github/workspace/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 757, in run_pymodules_install
2024-02-09T00:09:55.8039615Z shprint(sh.bash, '-c', (
2024-02-09T00:09:55.8040745Z File "/github/workspace/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
2024-02-09T00:09:55.8041772Z for line in output:
2024-02-09T00:09:55.8042512Z File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 911, in next
2024-02-09T00:09:55.8047385Z self.wait()
2024-02-09T00:09:55.8048216Z File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 841, in wait
2024-02-09T00:09:55.8048993Z self.handle_command_exit_code(exit_code)
2024-02-09T00:09:55.8050280Z File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 865, in handle_command_exit_code
2024-02-09T00:09:55.8051214Z raise exc
2024-02-09T00:09:55.8051550Z sh.ErrorReturnCode_1:
2024-02-09T00:09:55.8051797Z
2024-02-09T00:09:55.8053287Z RAN: /usr/bin/bash -c 'venv/bin/pip install -v --target '"'"'/github/workspace/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/yodo/armeabi-v7a'"'"' --no-deps -r requirements.txt'
2024-02-09T00:09:55.8054760Z
2024-02-09T00:09:55.8054866Z STDOUT:
2024-02-09T00:09:55.8055201Z Ignoring "sys._home = value" override
2024-02-09T00:09:55.8056602Z Using pip 24.0 from /github/workspace/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/venv/lib/python3.9/site-packages/pip (python 3.9)
2024-02-09T00:09:55.8058581Z [31mERROR: Invalid requirement: '"https://github.com/kivy/plyer/archive/refs/heads/master.zip"' (from line 1 of requirements.txt)
2024-02-09T00:09:55.8060362Z Hint: It looks like a path. File '"https://github.com/kivy/plyer/archive/refs/heads/master.zip"' does not exist.[0m[31m
2024-02-09T00:09:55.8061378Z [0m
Is there a way to put that same URL in the requirements?