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:
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
Post a Comment