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

TypeError: write() argument 1 must be unicode, not str #452

Closed
Nebelhom opened this issue Jan 8, 2017 · 5 comments
Closed

TypeError: write() argument 1 must be unicode, not str #452

Nebelhom opened this issue Jan 8, 2017 · 5 comments

Comments

@Nebelhom
Copy link

Nebelhom commented Jan 8, 2017

Hi All,

I am currently trying to create a package for my kivy project and I tried to build it for android on a Ubunut 16.04 machine. I get the error written in the title. The complete Traceback is added below.

anyone got an idea of how to fix this? Thanks :)

My System is:
Ubuntu 16.04 (64bit)

To run buildozer, I installed the following things in the following way via CLI:

git clone  https://github.com/kivy/buildozer.git
sudo python2.7 setup.py install

# Dependencies
sudo pip install --upgrade cython==0.21
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install build-essential ccache git libncurses5:i386 libstdc++6:i386 libgtk2.0-0:i386

Then to build I followed the guides

Traceback at the end (Apologies for the 'uber'-long traceback not sure what is important)

>/~ buildozer android debug
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Install platform
# Apache ANT found at /home/nebelhom/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/nebelhom/.buildozer/android/platform/android-sdk-20
# Android NDK found at /home/nebelhom/.buildozer/android/platform/android-ndk-r9c
Refresh Sources:
  Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
  Validate XML
  Parse XML
  Fetched Add-ons List successfully
  Refresh Sources
  Fetching URL: https://dl-ssl.google.com/android/repository/repository-9.xml
  Validate XML: https://dl-ssl.google.com/android/repository/repository-8.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/repository-8.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/glass/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/glass/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Refresh Sources:
  Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/glass/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/glass/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Refresh Sources:
  Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/glass/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/glass/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Packages available for installation or update: 15
----------
id: 1 or "tools"
     Type: Tool
     Desc: Android SDK Tools, revision 24.0.2
----------
id: 2 or "platform-tools"
     Type: PlatformTool
     Desc: Android SDK Platform-tools, revision 20
----------
id: 3 or "doc-19"
     Type: Doc
     Desc: Documentation for Android SDK, API 19, revision 2
----------
id: 4 or "sample-19"
     Type: Sample
     Desc: Samples for SDK API 19, revision 5
----------
id: 5 or "sample-18"
     Type: Sample
     Desc: Samples for SDK API 18, revision 1
----------
id: 6 or "sample-17"
     Type: Sample
     Desc: Samples for SDK API 17, revision 1
----------
id: 7 or "sample-16"
     Type: Sample
     Desc: Samples for SDK API 16, revision 1
----------
id: 8 or "sample-15"
     Type: Sample
     Desc: Samples for SDK API 15, revision 2
----------
id: 9 or "sample-14"
     Type: Sample
     Desc: Samples for SDK API 14, revision 2
----------
id: 10 or "sample-13"
     Type: Sample
     Desc: Android SDK Samples for Android API 13, revision 1
----------
id: 11 or "sample-12"
     Type: Sample
     Desc: Android SDK Samples for Android API 12, revision 1
----------
id: 12 or "sample-11"
     Type: Sample
     Desc: Android SDK Samples for Android API 11, revision 1
----------
id: 13 or "sample-10"
     Type: Sample
     Desc: Android SDK Samples for Android API 10, revision 1
----------
id: 14 or "sample-8"
     Type: Sample
     Desc: Android SDK Samples for Android API 8, revision 1
----------
id: 15 or "sample-7"
     Type: Sample
     Desc: Android SDK Samples for Android API 7, revision 1

Refresh Sources:
  Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
  Validate XML
  Parse XML
  Fetched Add-ons List successfully
  Refresh Sources
  Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xml
  Validate XML: https://dl-ssl.google.com/android/repository/repository-10.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/repository-10.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/glass/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/glass/addon.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/glass/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Packages available for installation or update: 183
----------
id: 1 or "tools"
     Type: Tool
     Desc: Android SDK Tools, revision 24.4.1
----------
id: 2 or "platform-tools"
     Type: PlatformTool
     Desc: Android SDK Platform-tools, revision 23.0.1
----------
id: 3 or "platform-tools-preview"
     Type: PlatformTool
     Desc: Android SDK Platform-tools, revision 23.1 rc1
----------
id: 4 or "build-tools-23.0.1"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 23.0.1
----------
id: 5 or "build-tools-23.0.0"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 23 (Obsolete)
----------
id: 6 or "build-tools-22.0.1"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 22.0.1
----------
id: 7 or "build-tools-22.0.0"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 22 (Obsolete)
----------
id: 8 or "build-tools-21.1.2"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 21.1.2
----------
id: 9 or "build-tools-21.1.1"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 21.1.1 (Obsolete)
----------
id: 10 or "build-tools-21.1.0"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 21.1 (Obsolete)
----------
id: 11 or "build-tools-21.0.2"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 21.0.2 (Obsolete)
----------
id: 12 or "build-tools-21.0.1"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 21.0.1 (Obsolete)
----------
id: 13 or "build-tools-21.0.0"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 21 (Obsolete)
----------
id: 14 or "build-tools-20.0.0"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 20
----------
id: 15 or "build-tools-19.1.0"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 19.1
----------
id: 16 or "build-tools-19.0.3"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 19.0.3 (Obsolete)
----------
id: 17 or "build-tools-19.0.2"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 19.0.2 (Obsolete)
----------
id: 18 or "build-tools-19.0.1"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 19.0.1 (Obsolete)
----------
id: 19 or "build-tools-19.0.0"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 19 (Obsolete)
----------
id: 20 or "build-tools-18.1.1"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 18.1.1 (Obsolete)
----------
id: 21 or "build-tools-18.1.0"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 18.1 (Obsolete)
----------
id: 22 or "build-tools-18.0.1"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 18.0.1 (Obsolete)
----------
id: 23 or "build-tools-17.0.0"
     Type: BuildTool
     Desc: Android SDK Build-tools, revision 17 (Obsolete)
----------
id: 24 or "doc-23"
     Type: Doc
     Desc: Documentation for Android SDK, API 23, revision 1
----------
id: 25 or "android-23"
     Type: Platform
     Desc: Android SDK Platform 6.0
           Revision 1
----------
id: 26 or "android-22"
     Type: Platform
     Desc: Android SDK Platform 5.1.1
           Revision 2
----------
id: 27 or "android-21"
     Type: Platform
     Desc: Android SDK Platform 5.0.1
           Revision 2
----------
id: 28 or "android-20"
     Type: Platform
     Desc: Android SDK Platform 4.4W.2
           Revision 2
----------
id: 29 or "android-19"
     Type: Platform
     Desc: Android SDK Platform 4.4.2
           Revision 4
----------
id: 30 or "android-18"
     Type: Platform
     Desc: Android SDK Platform 4.3.1
           Revision 3
----------
id: 31 or "android-17"
     Type: Platform
     Desc: Android SDK Platform 4.2.2
           Revision 3
----------
id: 32 or "android-16"
     Type: Platform
     Desc: Android SDK Platform 4.1.2
           Revision 5
----------
id: 33 or "android-15"
     Type: Platform
     Desc: Android SDK Platform 4.0.3
           Revision 5
----------
id: 34 or "android-14"
     Type: Platform
     Desc: Android SDK Platform 4.0
           Revision 4 (Obsolete)
----------
id: 35 or "android-13"
     Type: Platform
     Desc: Android SDK Platform 3.2, revision 1
----------
id: 36 or "android-12"
     Type: Platform
     Desc: Android SDK Platform 3.1, revision 3
----------
id: 37 or "android-11"
     Type: Platform
     Desc: Android SDK Platform 3.0, revision 2
----------
id: 38 or "android-10"
     Type: Platform
     Desc: Android SDK Platform 2.3.3._r2
           Revision 2
----------
id: 39 or "android-9"
     Type: Platform
     Desc: Android SDK Platform 2.3.1_r2
           Revision 2 (Obsolete)
----------
id: 40 or "android-8"
     Type: Platform
     Desc: Android SDK Platform 2.2_r3
           Revision 3
----------
id: 41 or "android-7"
     Type: Platform
     Desc: Android SDK Platform 2.1_r3
           Revision 3 (Obsolete)
----------
id: 42 or "android-6"
     Type: Platform
     Desc: Android SDK Platform 2.0.1_r1
           Revision 1 (Obsolete)
----------
id: 43 or "android-5"
     Type: Platform
     Desc: Android SDK Platform 2.0, revision 1
----------
id: 44 or "android-4"
     Type: Platform
     Desc: Android SDK Platform 1.6_r2
           Revision 3 (Obsolete)
----------
id: 45 or "android-3"
     Type: Platform
     Desc: Android SDK Platform 1.5_r3
           Revision 4 (Obsolete)
----------
id: 46 or "android-2"
     Type: Platform
     Desc: Android SDK Platform 1.1_r1
           Revision 1 (Obsolete)
----------
id: 47 or "sample-23"
     Type: Sample
     Desc: Samples for SDK API 23, revision 2
----------
id: 48 or "sample-22"
     Type: Sample
     Desc: Samples for SDK API 22, revision 6
----------
id: 49 or "sample-21"
     Type: Sample
     Desc: Samples for SDK API 21, revision 4
----------
id: 50 or "sample-20"
     Type: Sample
     Desc: Samples for SDK API 20, revision 3
----------
id: 51 or "sample-19"
     Type: Sample
     Desc: Samples for SDK API 19, revision 6
----------
id: 52 or "sample-18"
     Type: Sample
     Desc: Samples for SDK API 18, revision 1
----------
id: 53 or "sample-17"
     Type: Sample
     Desc: Samples for SDK API 17, revision 1
----------
id: 54 or "sample-16"
     Type: Sample
     Desc: Samples for SDK API 16, revision 1
----------
id: 55 or "sample-15"
     Type: Sample
     Desc: Samples for SDK API 15, revision 2
----------
id: 56 or "sample-14"
     Type: Sample
     Desc: Samples for SDK API 14, revision 2 (Obsolete)
----------
id: 57 or "sample-13"
     Type: Sample
     Desc: Android SDK Samples for Android API 13, revision 1
----------
id: 58 or "sample-12"
     Type: Sample
     Desc: Android SDK Samples for Android API 12, revision 1
----------
id: 59 or "sample-11"
     Type: Sample
     Desc: Android SDK Samples for Android API 11, revision 1
----------
id: 60 or "sample-10"
     Type: Sample
     Desc: Android SDK Samples for Android API 10, revision 1
----------
id: 61 or "sample-9"
     Type: Sample
     Desc: Android SDK Samples for Android API 9, revision 1
----------
id: 62 or "sample-8"
     Type: Sample
     Desc: Android SDK Samples for Android API 8, revision 1
----------
id: 63 or "sample-7"
     Type: Sample
     Desc: Android SDK Samples for Android API 7, revision 1
----------
id: 64 or "sys-img-x86-android-tv-25"
     Type: SystemImage
     Desc: Android TV Intel x86 Atom System Image
           Revision 2
           Requires SDK Platform Android API 25
----------
id: 65 or "sys-img-armeabi-v7a-android-wear-25"
     Type: SystemImage
     Desc: Android Wear ARM EABI v7a System Image
           Revision 1
           Requires SDK Platform Android API 25
----------
id: 66 or "sys-img-x86-android-wear-25"
     Type: SystemImage
     Desc: Android Wear Intel x86 Atom System Image
           Revision 1
           Requires SDK Platform Android API 25
----------
id: 67 or "sys-img-x86_64-google_apis-25"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom_64 System Image
           Revision 3
           Requires SDK Platform Android API 25
----------
id: 68 or "sys-img-x86-google_apis-25"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom System Image
           Revision 3
           Requires SDK Platform Android API 25
----------
id: 69 or "sys-img-x86-android-tv-24"
     Type: SystemImage
     Desc: Android TV Intel x86 Atom System Image
           Revision 9
           Requires SDK Platform Android API 24
----------
id: 70 or "sys-img-arm64-v8a-android-24"
     Type: SystemImage
     Desc: ARM 64 v8a System Image
           Revision 7
           Requires SDK Platform Android API 24
----------
id: 71 or "sys-img-armeabi-v7a-android-24"
     Type: SystemImage
     Desc: ARM EABI v7a System Image
           Revision 7
           Requires SDK Platform Android API 24
----------
id: 72 or "sys-img-x86_64-android-24"
     Type: SystemImage
     Desc: Intel x86 Atom_64 System Image
           Revision 7
           Requires SDK Platform Android API 24
----------
id: 73 or "sys-img-x86-android-24"
     Type: SystemImage
     Desc: Intel x86 Atom System Image
           Revision 7
           Requires SDK Platform Android API 24
----------
id: 74 or "sys-img-arm64-v8a-google_apis-24"
     Type: SystemImage
     Desc: Google APIs ARM 64 v8a System Image
           Revision 10
           Requires SDK Platform Android API 24
----------
id: 75 or "sys-img-armeabi-v7a-google_apis-24"
     Type: SystemImage
     Desc: Google APIs ARM EABI v7a System Image
           Revision 10
           Requires SDK Platform Android API 24
----------
id: 76 or "sys-img-x86_64-google_apis-24"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom_64 System Image
           Revision 10
           Requires SDK Platform Android API 24
----------
id: 77 or "sys-img-x86-google_apis-24"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom System Image
           Revision 10
           Requires SDK Platform Android API 24
----------
id: 78 or "sys-img-armeabi-v7a-android-tv-23"
     Type: SystemImage
     Desc: Android TV ARM EABI v7a System Image
           Revision 3
           Requires SDK Platform Android API 23
----------
id: 79 or "sys-img-x86-android-tv-23"
     Type: SystemImage
     Desc: Android TV Intel x86 Atom System Image
           Revision 8
           Requires SDK Platform Android API 23
----------
id: 80 or "sys-img-armeabi-v7a-android-wear-23"
     Type: SystemImage
     Desc: Android Wear ARM EABI v7a System Image
           Revision 6
           Requires SDK Platform Android API 23
----------
id: 81 or "sys-img-x86-android-wear-23"
     Type: SystemImage
     Desc: Android Wear Intel x86 Atom System Image
           Revision 6
           Requires SDK Platform Android API 23
----------
id: 82 or "sys-img-x86_64-android-23"
     Type: SystemImage
     Desc: Intel x86 Atom_64 System Image
           Revision 9
           Requires SDK Platform Android API 23
----------
id: 83 or "sys-img-x86-android-23"
     Type: SystemImage
     Desc: Intel x86 Atom System Image
           Revision 9
           Requires SDK Platform Android API 23
----------
id: 84 or "sys-img-armeabi-v7a-google_apis-23"
     Type: SystemImage
     Desc: Google APIs ARM EABI v7a System Image
           Revision 19
           Requires SDK Platform Android API 23
----------
id: 85 or "sys-img-x86_64-google_apis-23"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom_64 System Image
           Revision 19
           Requires SDK Platform Android API 23
----------
id: 86 or "sys-img-x86-google_apis-23"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom System Image
           Revision 19
           Requires SDK Platform Android API 23
----------
id: 87 or "sys-img-armeabi-v7a-android-tv-22"
     Type: SystemImage
     Desc: Android TV ARM EABI v7a System Image
           Revision 1
           Requires SDK Platform Android API 22
----------
id: 88 or "sys-img-x86-android-tv-22"
     Type: SystemImage
     Desc: Android TV Intel x86 Atom System Image
           Revision 3
           Requires SDK Platform Android API 22
----------
id: 89 or "sys-img-armeabi-v7a-android-wear-22"
     Type: SystemImage
     Desc: Android Wear ARM EABI v7a System Image
           Revision 7
           Requires SDK Platform Android API 22
----------
id: 90 or "sys-img-x86-android-wear-22"
     Type: SystemImage
     Desc: Android Wear Intel x86 Atom System Image
           Revision 7
           Requires SDK Platform Android API 22
----------
id: 91 or "sys-img-armeabi-v7a-android-22"
     Type: SystemImage
     Desc: ARM EABI v7a System Image
           Revision 2
           Requires SDK Platform Android API 22
----------
id: 92 or "sys-img-x86_64-android-22"
     Type: SystemImage
     Desc: Intel x86 Atom_64 System Image
           Revision 5
           Requires SDK Platform Android API 22
----------
id: 93 or "sys-img-x86-android-22"
     Type: SystemImage
     Desc: Intel x86 Atom System Image
           Revision 5
           Requires SDK Platform Android API 22
----------
id: 94 or "sys-img-armeabi-v7a-google_apis-22"
     Type: SystemImage
     Desc: Google APIs ARM EABI v7a System Image
           Revision 12
           Requires SDK Platform Android API 22
----------
id: 95 or "sys-img-x86_64-google_apis-22"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom_64 System Image
           Revision 12
           Requires SDK Platform Android API 22
----------
id: 96 or "sys-img-x86-google_apis-22"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom System Image
           Revision 12
           Requires SDK Platform Android API 22
----------
id: 97 or "sys-img-armeabi-v7a-android-tv-21"
     Type: SystemImage
     Desc: Android TV ARM EABI v7a System Image
           Revision 3
           Requires SDK Platform Android API 21
----------
id: 98 or "sys-img-x86-android-tv-21"
     Type: SystemImage
     Desc: Android TV Intel x86 Atom System Image
           Revision 3
           Requires SDK Platform Android API 21
----------
id: 99 or "sys-img-armeabi-v7a-android-wear-21"
     Type: SystemImage
     Desc: Android Wear ARM EABI v7a System Image
           Revision 3
           Requires SDK Platform Android API 21
----------
id: 100 or "sys-img-x86-android-wear-21"
     Type: SystemImage
     Desc: Android Wear Intel x86 Atom System Image
           Revision 3
           Requires SDK Platform Android API 21
----------
id: 101 or "sys-img-armeabi-v7a-android-21"
     Type: SystemImage
     Desc: ARM EABI v7a System Image
           Revision 4
           Requires SDK Platform Android API 21
----------
id: 102 or "sys-img-x86_64-android-21"
     Type: SystemImage
     Desc: Intel x86 Atom_64 System Image
           Revision 4
           Requires SDK Platform Android API 21
----------
id: 103 or "sys-img-x86-android-21"
     Type: SystemImage
     Desc: Intel x86 Atom System Image
           Revision 4
           Requires SDK Platform Android API 21
----------
id: 104 or "sys-img-armeabi-v7a-google_apis-21"
     Type: SystemImage
     Desc: Google APIs ARM EABI v7a System Image
           Revision 18
           Requires SDK Platform Android API 21
----------
id: 105 or "sys-img-x86_64-google_apis-21"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom_64 System Image
           Revision 18
           Requires SDK Platform Android API 21
----------
id: 106 or "sys-img-x86-google_apis-21"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom System Image
           Revision 18
           Requires SDK Platform Android API 21
----------
id: 107 or "sys-img-armeabi-v7a-android-wear-20"
     Type: SystemImage
     Desc: Android Wear ARM EABI v7a System Image
           Revision 4
           Requires SDK Platform Android API 20
----------
id: 108 or "sys-img-x86-android-wear-20"
     Type: SystemImage
     Desc: Android Wear Intel x86 Atom System Image
           Revision 4
           Requires SDK Platform Android API 20
----------
id: 109 or "sys-img-armeabi-v7a-android-19"
     Type: SystemImage
     Desc: ARM EABI v7a System Image
           Revision 5
           Requires SDK Platform Android API 19
----------
id: 110 or "sys-img-x86-android-19"
     Type: SystemImage
     Desc: Intel x86 Atom System Image
           Revision 5
           Requires SDK Platform Android API 19
----------
id: 111 or "sys-img-armeabi-v7a-google_apis-19"
     Type: SystemImage
     Desc: Google APIs ARM EABI v7a System Image
           Revision 26
           Requires SDK Platform Android API 19
----------
id: 112 or "sys-img-x86-google_apis-19"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom System Image
           Revision 26
           Requires SDK Platform Android API 19
----------
id: 113 or "sys-img-armeabi-v7a-android-18"
     Type: SystemImage
     Desc: ARM EABI v7a System Image
           Revision 4
           Requires SDK Platform Android API 18
----------
id: 114 or "sys-img-x86-android-18"
     Type: SystemImage
     Desc: Intel x86 Atom System Image
           Revision 3
           Requires SDK Platform Android API 18
----------
id: 115 or "sys-img-armeabi-v7a-google_apis-18"
     Type: SystemImage
     Desc: Google APIs ARM EABI v7a System Image
           Revision 5
           Requires SDK Platform Android API 18
----------
id: 116 or "sys-img-x86-google_apis-18"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom System Image
           Revision 5
           Requires SDK Platform Android API 18
----------
id: 117 or "sys-img-armeabi-v7a-android-17"
     Type: SystemImage
     Desc: ARM EABI v7a System Image
           Revision 5
           Requires SDK Platform Android API 17
----------
id: 118 or "sys-img-x86-android-17"
     Type: SystemImage
     Desc: Intel x86 Atom System Image
           Revision 3
           Requires SDK Platform Android API 17
----------
id: 119 or "sys-img-mips-android-17"
     Type: SystemImage
     Desc: MIPS System Image
           Revision 1
           Requires SDK Platform Android API 17
----------
id: 120 or "sys-img-armeabi-v7a-google_apis-17"
     Type: SystemImage
     Desc: Google APIs ARM EABI v7a System Image
           Revision 5
           Requires SDK Platform Android API 17
----------
id: 121 or "sys-img-x86-google_apis-17"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom System Image
           Revision 5
           Requires SDK Platform Android API 17
----------
id: 122 or "sys-img-armeabi-v7a-android-16"
     Type: SystemImage
     Desc: ARM EABI v7a System Image
           Revision 4
           Requires SDK Platform Android API 16
----------
id: 123 or "sys-img-x86-android-16"
     Type: SystemImage
     Desc: Intel x86 Atom System Image
           Revision 5
           Requires SDK Platform Android API 16
----------
id: 124 or "sys-img-mips-android-16"
     Type: SystemImage
     Desc: MIPS System Image
           Revision 1
           Requires SDK Platform Android API 16
----------
id: 125 or "sys-img-armeabi-v7a-google_apis-16"
     Type: SystemImage
     Desc: Google APIs ARM EABI v7a System Image
           Revision 5
           Requires SDK Platform Android API 16
----------
id: 126 or "sys-img-x86-google_apis-16"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom System Image
           Revision 5
           Requires SDK Platform Android API 16
----------
id: 127 or "sys-img-armeabi-v7a-android-15"
     Type: SystemImage
     Desc: ARM EABI v7a System Image
           Revision 4
           Requires SDK Platform Android API 15
----------
id: 128 or "sys-img-x86-android-15"
     Type: SystemImage
     Desc: Intel x86 Atom System Image
           Revision 4
           Requires SDK Platform Android API 15
----------
id: 129 or "sys-img-mips-android-15"
     Type: SystemImage
     Desc: MIPS System Image
           Revision 1
           Requires SDK Platform Android API 15
----------
id: 130 or "sys-img-armeabi-v7a-google_apis-15"
     Type: SystemImage
     Desc: Google APIs ARM EABI v7a System Image
           Revision 5
           Requires SDK Platform Android API 15
----------
id: 131 or "sys-img-x86-google_apis-15"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom System Image
           Revision 5
           Requires SDK Platform Android API 15
----------
id: 132 or "sys-img-armeabi-v7a-android-14"
     Type: SystemImage
     Desc: ARM EABI v7a System Image
           Revision 2
           Requires SDK Platform Android API 14
----------
id: 133 or "sys-img-armeabi-v7a-android-10"
     Type: SystemImage
     Desc: ARM EABI v7a System Image
           Revision 4
           Requires SDK Platform Android API 10
----------
id: 134 or "sys-img-x86-android-10"
     Type: SystemImage
     Desc: Intel x86 Atom System Image
           Revision 4
           Requires SDK Platform Android API 10
----------
id: 135 or "sys-img-armeabi-v7a-google_apis-10"
     Type: SystemImage
     Desc: Google APIs ARM EABI v7a System Image
           Revision 5
           Requires SDK Platform Android API 10
----------
id: 136 or "sys-img-x86-google_apis-10"
     Type: SystemImage
     Desc: Google APIs Intel x86 Atom System Image
           Revision 5
           Requires SDK Platform Android API 10
----------
id: 137 or "addon-google_apis-google-24"
     Type: Addon
     Desc: Google APIs, Android API 24, revision 1
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 24
----------
id: 138 or "addon-google_apis-google-23"
     Type: Addon
     Desc: Google APIs, Android API 23, revision 1
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 23
----------
id: 139 or "addon-google_apis-google-22"
     Type: Addon
     Desc: Google APIs, Android API 22, revision 1
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 22
----------
id: 140 or "addon-google_apis-google-21"
     Type: Addon
     Desc: Google APIs, Android API 21, revision 1
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 21
----------
id: 141 or "addon-google_apis-google-19"
     Type: Addon
     Desc: Google APIs, Android API 19, revision 20
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 19
----------
id: 142 or "addon-google_gdk-google-19"
     Type: Addon
     Desc: Glass Development Kit Preview, Android API 19, revision 11
           By Google Inc.
           Preview of the Glass Development Kit
           Requires SDK Platform Android API 19
----------
id: 143 or "addon-google_apis-google-18"
     Type: Addon
     Desc: Google APIs, Android API 18, revision 4
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 18
----------
id: 144 or "addon-google_apis-google-17"
     Type: Addon
     Desc: Google APIs, Android API 17, revision 4
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 17
----------
id: 145 or "addon-google_apis-google-16"
     Type: Addon
     Desc: Google APIs, Android API 16, revision 4
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 16
----------
id: 146 or "addon-google_apis-google-15"
     Type: Addon
     Desc: Google APIs, Android API 15, revision 3
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 15
----------
id: 147 or "addon-google_apis-google-14"
     Type: Addon
     Desc: Google APIs, Android API 14, revision 2 (Obsolete)
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 14
----------
id: 148 or "addon-google_apis-google-13"
     Type: Addon
     Desc: Google APIs, Android API 13, revision 1 (Obsolete)
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 13
----------
id: 149 or "addon-google_tv_addon-google-13"
     Type: Addon
     Desc: Google TV Addon, Android API 13, revision 1 (Obsolete)
           By Google Inc.
           Requires SDK Platform Android API 13
----------
id: 150 or "addon-google_apis-google-12"
     Type: Addon
     Desc: Google APIs, Android API 12, revision 1 (Obsolete)
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 12
----------
id: 151 or "addon-google_tv_addon-google-12"
     Type: Addon
     Desc: Google TV Addon, Android API 12, revision 2 (Obsolete)
           By Google Inc.
           Requires SDK Platform Android API 12
----------
id: 152 or "addon-google_apis-google-11"
     Type: Addon
     Desc: Google APIs, Android API 11, revision 1 (Obsolete)
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 11
----------
id: 153 or "addon-google_apis-google-10"
     Type: Addon
     Desc: Google APIs, Android API 10, revision 2 (Obsolete)
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 10
----------
id: 154 or "addon-google_apis-google-9"
     Type: Addon
     Desc: Google APIs, Android API 9, revision 2 (Obsolete)
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 9
----------
id: 155 or "addon-google_apis-google-8"
     Type: Addon
     Desc: Google APIs, Android API 8, revision 2 (Obsolete)
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 8
----------
id: 156 or "addon-google_apis-google-7"
     Type: Addon
     Desc: Google APIs, Android API 7, revision 1 (Obsolete)
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 7
----------
id: 157 or "addon-google_apis-google-6"
     Type: Addon
     Desc: Google APIs, Android API 6, revision 1 (Obsolete)
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 6
----------
id: 158 or "addon-google_apis-google-5"
     Type: Addon
     Desc: Google APIs, Android API 5, revision 1 (Obsolete)
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 5
----------
id: 159 or "addon-google_apis-google-4"
     Type: Addon
     Desc: Google APIs, Android API 4, revision 2 (Obsolete)
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 4
----------
id: 160 or "addon-google_apis-google-3"
     Type: Addon
     Desc: Google APIs, Android API 3, revision 3 (Obsolete)
           By Google Inc.
           Android + Google APIs
           Requires SDK Platform Android API 3
----------
id: 161 or "source-23"
     Type: Source
     Desc: Sources for Android SDK, API 23, revision 1
----------
id: 162 or "source-22"
     Type: Source
     Desc: Sources for Android SDK, API 22, revision 1
----------
id: 163 or "source-21"
     Type: Source
     Desc: Sources for Android SDK, API 21, revision 1
----------
id: 164 or "source-20"
     Type: Source
     Desc: Sources for Android SDK, API 20, revision 1
----------
id: 165 or "source-19"
     Type: Source
     Desc: Sources for Android SDK, API 19, revision 2
----------
id: 166 or "source-18"
     Type: Source
     Desc: Sources for Android SDK, API 18, revision 1
----------
id: 167 or "source-17"
     Type: Source
     Desc: Sources for Android SDK, API 17, revision 1
----------
id: 168 or "source-16"
     Type: Source
     Desc: Sources for Android SDK, API 16, revision 2
----------
id: 169 or "source-15"
     Type: Source
     Desc: Sources for Android SDK, API 15, revision 2
----------
id: 170 or "source-14"
     Type: Source
     Desc: Sources for Android SDK, API 14, revision 1 (Obsolete)
----------
id: 171 or "extra-android-m2repository"
     Type: Extra
     Desc: Android Support Repository, revision 41
           By Android
           Local Maven repository for Support Libraries
           Install path: extras/android/m2repository
----------
id: 172 or "extra-google-admob_ads_sdk"
     Type: Extra
     Desc: Google AdMob Ads SDK, revision 11 (Obsolete)
           By Google Inc.
           AdMob Ads SDK
           Install path: extras/google/admob_ads_sdk
----------
id: 173 or "extra-google-analytics_sdk_v2"
     Type: Extra
     Desc: Google Analytics App Tracking SDK, revision 3 (Obsolete)
           By Google Inc.
           Analytics App Tracking SDK
           Install path: extras/google/analytics_sdk_v2
----------
id: 174 or "extra-google-auto"
     Type: Extra
     Desc: Android Auto Desktop Head Unit emulator, revision 1.1
           By Google Inc.
           Head unit emulator for developers targeting the Android Auto
           platform.
           Install path: extras/google/auto
----------
id: 175 or "extra-google-gcm"
     Type: Extra
     Desc: Google Cloud Messaging for Android Library, revision 3 (Obsolete)
           By Google Inc.
           GCM library has been moved to Google Play Services
           (com.google.android.gms.gcm) and this standalone version is no
           longer supported
           Install path: extras/google/gcm
----------
id: 176 or "extra-google-google_play_services_froyo"
     Type: Extra
     Desc: Google Play services for Froyo, revision 12 (Obsolete)
           By Google Inc.
           Google Play services client library and sample code
           Install path: extras/google/google_play_services_froyo
----------
id: 177 or "extra-google-google_play_services"
     Type: Extra
     Desc: Google Play services, revision 38
           By Google Inc.
           Google Play services Javadocs and sample code
           Install path: extras/google/google_play_services
----------
id: 178 or "extra-google-m2repository"
     Type: Extra
     Desc: Google Repository, revision 41
           By Google Inc.
           Local Maven repository for Support Libraries
           Install path: extras/google/m2repository
----------
id: 179 or "extra-google-market_apk_expansion"
     Type: Extra
     Desc: Google Play APK Expansion library, revision 1
           By Google Inc.
           Android Market APK Expansion library
           Install path: extras/google/market_apk_expansion
----------
id: 180 or "extra-google-market_licensing"
     Type: Extra
     Desc: Google Play Licensing Library, revision 1
           By google
           Android Market Licensing client library
           Install path: extras/google/market_licensing
----------
id: 181 or "extra-google-play_billing"
     Type: Extra
     Desc: Google Play Billing Library, revision 5
           By Google Inc.
           Google Play Billing files and sample code
           Install path: extras/google/play_billing
----------
id: 182 or "extra-google-simulators"
     Type: Extra
     Desc: Android Auto API Simulators, revision 1
           By Google Inc.
           Android Auto API testing simulators
           Install path: extras/google/simulators
----------
id: 183 or "extra-google-webdriver"
     Type: Extra
     Desc: Google Web Driver, revision 2
           By Google Inc.
           Install path: extras/google/webdriver

# Android packages installation done.
# Check application requirements
# Check garden requirements
# Compile platform
# Distribution compiled.
# Build the application #1
# Package the application
Traceback (most recent call last):
  File "/usr/local/bin/buildozer", line 9, in <module>
    load_entry_point('buildozer==0.33.dev0', 'console_scripts', 'buildozer')()
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.33.dev0-py2.7.egg/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.33.dev0-py2.7.egg/buildozer/__init__.py", line 1029, in run_command
    self.target.run_commands(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.33.dev0-py2.7.egg/buildozer/target.py", line 90, in run_commands
    func(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.33.dev0-py2.7.egg/buildozer/target.py", line 102, in cmd_debug
    self.buildozer.build()
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.33.dev0-py2.7.egg/buildozer/__init__.py", line 211, in build
    self.target.build_package()
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.33.dev0-py2.7.egg/buildozer/targets/android.py", line 646, in build_package
    self._update_libraries_references(dist_dir)
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.33.dev0-py2.7.egg/buildozer/targets/android.py", line 815, in _update_libraries_references
    fd.writelines(content)
TypeError: write() argument 1 must be unicode, not str
@ohlogic
Copy link

ohlogic commented Jan 18, 2017

Run 'buildozer android debug' second time, the error doesn't seem to affect the creation of the .apk when run a second time. At least this is how it's working on the vm buildozer.

@sponrad
Copy link

sponrad commented Feb 19, 2017

I had the same issue, but on Ubuntu 16.10. As @ohlogic suggested I just ran it again and it built.

@SpotlightKid
Copy link

I fixed this by changing the code block at around line 820 in android.py to:

        # recreate the project.properties
        with io.open(project_fn, 'w', encoding='utf-8') as fd:
            fd.writelines((line.encode('utf-8') for line in content))
            for index, ref in enumerate(references):
                fd.write(u'android.library.reference.{}={}\n'.format(index + 1, ref))

@pat1
Copy link
Contributor

pat1 commented Apr 28, 2017

pull request done

@tito tito closed this as completed in d323d43 May 1, 2017
tito added a commit that referenced this issue May 1, 2017
close #452 as suggested by SpotlightKid
@qingchenwuhou
Copy link

I use codecs solve this problem:

import codecs
fpred = codecs.open('pred_res.txt', 'w', 'utf-8')
fpred.write( (images_test[i] + ' ' + prediction[i] + '\n').decode('unicode_escape') )
fpred.close()

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

7 participants