UnicodeDecodeError running buildozer android debug

121 views
Skip to first unread message

Pedro Macías Roselló

unread,
Oct 2, 2014, 10:08:24 AM10/2/14
to kivy-...@googlegroups.com
When I run buildozer android debug in my proyect folder to build an .apk, i get this message in the console:









Traceback (most recent call last):


  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/buildozer", line 8, in <module>


    load_entry_point('buildozer==0.17-dev', 'console_scripts', 'buildozer')()


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.17_dev-py2.7.egg/buildozer/scripts/client.py", line 13, in main


    Buildozer().run_command(sys.argv[1:])


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.17_dev-py2.7.egg/buildozer/__init__.py", line 961, in run_command


    self.target.run_commands(args)


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.17_dev-py2.7.egg/buildozer/target.py", line 85, in run_commands


    func(args)


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.17_dev-py2.7.egg/buildozer/target.py", line 95, in cmd_debug


    self.buildozer.prepare_for_build()


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.17_dev-py2.7.egg/buildozer/__init__.py", line 157, in prepare_for_build


    self.target.install_platform()


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.17_dev-py2.7.egg/buildozer/targets/android.py", line 394, in install_platform


    self._install_android_packages()


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.17_dev-py2.7.egg/buildozer/targets/android.py", line 350, in _install_android_packages


    self._android_update_sdk('tools,platform-tools')


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.17_dev-py2.7.egg/buildozer/targets/android.py", line 309, in _android_update_sdk


    index = child.expect([EOF, '[y/n]: '])


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.17_dev-py2.7.egg/buildozer/libs/pexpect.py", line 1311, in expect


    return self.expect_list(compiled_pattern_list, timeout, searchwindowsize)


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.17_dev-py2.7.egg/buildozer/libs/pexpect.py", line 1325, in expect_list


    return self.expect_loop(searcher_re(pattern_list), timeout, searchwindowsize)


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.17_dev-py2.7.egg/buildozer/libs/pexpect.py", line 1381, in expect_loop


    incoming = incoming + c.decode(encoding='UTF-8')


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode


    return codecs.utf_8_decode(input, errors, True)


UnicodeDecodeError: 'utf8' codec can't decode byte 0xd5 in position 760: invalid continuation byte





Does anyone kown how to solve it?

This is the code in my App.py file

from kivy.app import App
 
from kivy.uix.label import Label
from kivy.uix.scatter import Scatter
from kivy.uix.floatlayout import FloatLayout

class App(App):
def build(self):
f = FloatLayout()
s = Scatter()
l = Label(text = "HelloWorld!",
backgournd_color = (0,0,1,1),
font_size = 150)
f.add_widget(s)
s.add_widget(l)
return f
if __name__ == '__main__':
App().run()



Thanks

Ben Rousch

unread,
Oct 2, 2014, 10:10:57 AM10/2/14
to kivy-...@googlegroups.com
Do you have any funny characters in your buildozer.spec or on the file path to your project?

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
 Ben Rousch
   bro...@gmail.com
   http://clusterbleep.net/

Pedro Macías Roselló

unread,
Oct 2, 2014, 10:45:17 AM10/2/14
to kivy-...@googlegroups.com
I don't thinks so, I left the buildozer.spec that came by default because i wanted to evade any errors.
Reply all
Reply to author
Forward
0 new messages