FileNotFoundError: [Errno 2] No such file or directory:

357 views
Skip to first unread message

husamal...@gmail.com

unread,
Oct 29, 2021, 7:45:09 AM10/29/21
to Kivy users support
I'm facing the flowing error ever time I want to build android apk

[DEBUG]: <-------------> 0% CONFIGURING [19ms]> root project<-------------> 0% CONFIGURING [119ms]> root project > Resolve dependencies of :classpath<-------------> 0% CONFIGURING [219ms]> root project<=============> 100% CONFIGURING [319ms]> IDLE<===----------> 29% EXECUTING [419ms]> :mergeDebugResources [DEBUG]: <=====--------> 44% EXECUTING [519ms]> :mergeDebugAssets<=====--------> 44% EXECUTING [619ms]<======-------> 52% EXECUTING [719ms]> :processDebugResources> IDLE<======-------> 52% EXECUTING [819ms]<=========----> 73% EXECUTING [919ms]> :transformClassesWithDexBuilderForDebug [DEBUG]: > Task :stripDebugDebugSymbols UP-TO-DATE [DEBUG]: Support for ANDROID_NDK_HOME is deprecated and will be removed in the future. Use android.ndkVersion in build.gradle instead. [DEBUG]: [DEBUG]: [DEBUG]: [DEBUG]: <============-> 94% EXECUTING [1s]> :packageDebug> IDLE [DEBUG]: Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. [DEBUG]: Use '--warning-mode all' to show the individual deprecation warnings. [DEBUG]: See https://docs.gradle.org/6.4.1/userguide/command_line_interface.html#sec:command_line_warnings [DEBUG]: [DEBUG]: BUILD SUCCESSFUL in 2s [DEBUG]: 25 actionable tasks: 5 executed, 20 up-to-date [DEBUG]: [DEBUG]: [DEBUG]: [DEBUG]: <-------------> 0% WAITING> IDLE> IDLE [INFO]: <- directory context /content/.buildozer/android/platform/python-for-android [INFO]: Of the existing distributions, the following meet the given requirements: [INFO]: Screens: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android), built for archs (armeabi-v7a) [INFO]: Screens has compatible recipes, using this one [INFO]: # Copying android package to current directory [INFO]: # Android package filename not found in build output. Guessing... [INFO]: # Found android package file: /root/.local/share/python-for-android/dists/Screens__armeabi-v7a/build/outputs/apk/debug/Screens__armeabi-v7a-debug.apk [INFO]: # Add version number to android package [INFO]: # Android package renamed to Screens__armeabi-v7a-debug-1.0-.apk [DEBUG]: -> running cp /root/.local/share/python-for-android/dists/Screens__armeabi-v7a/build/outputs/apk/debug/Screens__armeabi-v7a-debug.apk Screens__armeabi-v7a-debug-1.0-.apk WARNING: Received a --sdk argument, but this argument is deprecated and does nothing. No setup.py/pyproject.toml used, copying full private data into .apk. Applying Java source code patches... Applying patch: src/patches/SDLActivity.java.patch Warning: failed to apply patch (exit code 1), assuming it is already applied: src/patches/SDLActivity.java.patch Traceback (most recent call last): File "/usr/local/bin/buildozer", line 33, in <module> sys.exit(load_entry_point('buildozer==1.2.0.dev0', 'console_scripts', 'buildozer')()) File "/usr/local/lib/python3.7/dist-packages/buildozer-1.2.0.dev0-py3.7.egg/buildozer/scripts/client.py", line 13, in main Buildozer().run_command(sys.argv[1:]) File "/usr/local/lib/python3.7/dist-packages/buildozer-1.2.0.dev0-py3.7.egg/buildozer/__init__.py", line 1020, in run_command self.target.run_commands(args) File "/usr/local/lib/python3.7/dist-packages/buildozer-1.2.0.dev0-py3.7.egg/buildozer/target.py", line 92, in run_commands func(args) File "/usr/local/lib/python3.7/dist-packages/buildozer-1.2.0.dev0-py3.7.egg/buildozer/target.py", line 104, in cmd_debug self.buildozer.build() File "/usr/local/lib/python3.7/dist-packages/buildozer-1.2.0.dev0-py3.7.egg/buildozer/__init__.py", line 205, in build self.target.build_package() File "/usr/local/lib/python3.7/dist-packages/buildozer-1.2.0.dev0-py3.7.egg/buildozer/targets/android.py", line 1307, in build_package copyfile(join(apk_dir, apk), join(self.buildozer.bin_dir, apk_dest)) File "/usr/lib/python3.7/shutil.py", line 120, in copyfile with open(src, 'rb') as fsrc: FileNotFoundError: [Errno 2] No such file or directory: '/content/.buildozer/android/platform/build-arm64-v8a/dists/Screens__arm64-v8a/build/outputs/apk/debug/Screens__arm64-v8a-debug.apk'

I will attach spec file 

any help with ??

thanks in advance 
buildozer.spec

Robert

unread,
Oct 29, 2021, 1:16:17 PM10/29/21
to Kivy users support
In future please post logs as .txt and the full log. The block of text is pretty much impossible to read.

One thing to look at:

Buildozer's behavior can be non-deterministic in any of these cases:

  • It is run as root

  • It is run on an NTFS partition mounted on a Linux system.

  • There are Python style trailing comments in the buildozer.spec


then look in your buildozer.spec
Reply all
Reply to author
Forward
0 new messages