Buildozer gives error upon building Pong app of Ki

2019-08-25 01:24发布

I am trying to make an apk file using buildozer of the Pong App (https://kivy.org/doc/stable/tutorials/pong.html)

However I am getting the following error on running the buildozer final step.

Traceback (most recent call last):
  File "/usr/local/bin/buildozer", line 11, in <module>
    load_entry_point('buildozer==0.38.dev0', 'console_scripts', 'buildozer')()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 1053, in run_command
    targets = [x[0] for x in self.targets()]
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 945, in targets
    fromlist=['buildozer'])
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android_new.py", line 10, in <module>
    from buildozer.targets.android import TargetAndroid
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 28, in <module>
    import sh
ImportError: No module named sh

Please let me know the solution to proceed to make the apk file

Reference: https://kivy.org/doc/stable/guide/packaging-android.html

1条回答
何必那么认真
2楼-- · 2019-08-25 01:48

So, it looks like Buidozer is having issues finding the sh package. Take a look at https://www.pythonforbeginners.com/modules-in-python/how-to-use-sh-in-python. Dont feel bad, I have had similar experiences with Buildozer.

查看更多
登录 后发表回答