android - "ImportError: Cannot import name spawnu" while building apk using kivy -


i building simple android app using kivy using below code:

from kivy.app import app kivy.uix.label import label kivy.uix.scatter import scatter kivy.uix.floatlayout import floatlayout  class tutorialapp(app):     def build(self):         f = floatlayout()         s = scatter()         l = label(text="hello!",                   font_size=150)          f.add_widget(s)         s.add_widget(l)          return f  if __name__ == "__main__":     tutorialapp().run() 

i building code apk using buildozer. wrote

buildozer android debug 

this gave following error:

http://imgur.com/z9tjmhc

how can rectify error.

it seems python or kivy compiler unable import package named spawnu.spawnu part of pexpect package. try

sudo pip install pexpect sudo pip install pexpect --upgrade 

worked me. luck!!


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -