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

IOError: [Errno 2] No such file or directory: u'/Users/gauravgupta/kivy/.buildozer/android/platform/build/dists/myellipse/build/outputs/apk/myellipse-debug.apk' #613

Closed
gauravgupta11 opened this issue Jan 2, 2018 · 8 comments

Comments

@gauravgupta11
Copy link

Traceback (most recent call last):
File "/usr/local/bin/buildozer", line 9, in
load_entry_point('buildozer==0.33', 'console_scripts', 'buildozer')()
File "/Library/Python/2.7/site-packages/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/Library/Python/2.7/site-packages/buildozer/init.py", line 1058, in run_command
self.target.run_commands(args)
File "/Library/Python/2.7/site-packages/buildozer/target.py", line 91, in run_commands
func(args)
File "/Library/Python/2.7/site-packages/buildozer/target.py", line 103, in cmd_debug
self.buildozer.build()
File "/Library/Python/2.7/site-packages/buildozer/init.py", line 212, in build
self.target.build_package()
File "/Library/Python/2.7/site-packages/buildozer/targets/android.py", line 808, in build_package
copyfile(join(apk_dir, apk), join(self.buildozer.bin_dir, apk_dest))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: u'/Users/gauravgupta/kivy/.buildozer/android/platform/build/dists/myellipse/build/outputs/apk/myellipse-debug.apk'

@colstew
Copy link

colstew commented Jan 12, 2018

I've come across this error too. The fix mentioned in issue #312 worked for me.

@cdyangbo
Copy link

the problem is : in toolchain.py has two build_type ,gradle(build_tools_version>25.0 and exist gradlew) otherwise ant. but in android.py, only jude exist gradlew but the default build_tools_version is 19.1.
Fix it: /usr/local/lib/python2.7/dist-packages/buildozer/tagets/android.py,:
(1) at file top insert : from distutils.version import LooseVersion
(2) line 786 replace with below code:
python # XXX found how the apk name is really built from the title __sdk_dir = self.android_sdk_dir build_tools_versions = os.listdir(join(__sdk_dir, 'build-tools')) build_tools_versions = sorted(build_tools_versions, key=LooseVersion) build_tools_version = build_tools_versions[-1] gradle_files = ["build.gradle", "gradle", "gradlew"] is_gradle_build = any((exists(join(dist_dir, x)) for x in gradle_files)) and build_tools_version >= '25.0'
@cdyangbo

@cdyangbo
Copy link

same issue #312, i have fix it.

@ImtiyazKhan117
Copy link

@cdyangbo
I can't edite the android.py file

@AndreMiras
Copy link
Member

Hi guys, can you give it a try on this PR #691 and say if it fixes it for you?

@ImtiyazKhan117
Copy link

@AndreMiras thanks its for me.. but now i am dealing with another problem apk is not working on just screen pops and gone

@AndreMiras
Copy link
Member

AndreMiras commented Jul 9, 2018

Good news!
Regarding the app crashing, not sure if it's a related issue, but please share the adb (filtered) log with the relevant part.

@inclement
Copy link
Member

Closing as fixed.

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

6 participants