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

Automatically installing Android SDK fails in file_rename called from _install_android_sdk #4

Closed
bob-the-hamster opened this issue Feb 5, 2013 · 2 comments

Comments

@bob-the-hamster
Copy link
Contributor

When buildozer attempts to install the Android SDK, it fails with the following traceback.

james@rhinoctopus:~/src/secrethamster/kivy/bobdirt$ buildozer android debug deploy run
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Install platform
# Apache ANT found at /home/james/.buildozer/android/platform/apache-ant-1.8.4
# Android SDK is missing, downloading
# Unpacking Android SDK
Traceback (most recent call last):
  File "/usr/local/bin/buildozer", line 5, in <module>
    run()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 1000, in run
    Buildozer().run_command(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 726, in run_command
    self.target.run_commands(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 71, in run_commands
    getattr(self, 'cmd_{0}'.format(command))(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 81, in cmd_debug
    self.buildozer.prepare_for_build()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 110, in prepare_for_build
    self.target.install_platform()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 286, in install_platform
    self._install_android_sdk()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 219, in _install_android_sdk
    cwd=self.buildozer.global_platform_dir)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 411, in file_rename
    rename(source, target)
OSError: [Errno 2] No such file or directory

This is on Ubuntu Linux 12.04

@bob-the-hamster
Copy link
Contributor Author

This was actually caused by my problem in issue #3
After downloading and unpacking the SDK, buildozer attempted to rename it to ./~/misc/android-sdk-linux_x86 because of the android.sdk_path in my buildozer.spec

I believe that the failure of that rename/move should be a lower loglevel, so you don't have to set log_level = 2 to know what has gone wrong

@tito
Copy link
Member

tito commented Feb 7, 2013

Fixed in #3 (reopen if it's not the case)

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

2 participants