Python-for-android: The sh Python module could not be found

Created on 9 Feb 2018  路  5Comments  路  Source: kivy/python-for-android

Running on Windows 10, Python 3.6.4, installed the current (2018-02-09) version of p4a from GitHub with pip install -e.
When running p4a, it exits with

ERROR: The sh Python module could not be found, please install version 1.10 or higher

I have installed sh-1.12.14 but nothing changed.
Also tried installing with pip install git+https://github.com/kivy/python-for-android.git and pip install python-for-android with no change. The same error still shows up.
Any hints? Thanks!

All 5 comments

If I try to import sh module in a new Python script, I get

ImportError: sh 1.12.14 is currently only supported on linux and osx. please install pbs 0.110 (http://pypi.python.org/pypi/pbs) for windows support.

So, the original error comes from here.
Will try a workaround for Windows from SO.

python-for-android is not supported on Windows. This is just the first small example of many issues you'll come across if you try it. There's a PR that does a lot of the work, but it's considered just a proof of concept unless someone wants to polish it and maintain it.

I wonder what is the reason for that. Both Python and Android SDK work fine on Windows.
Clearly I've missed any such statement in the texts I've read about p4a.
Pity

I made the same mistake :(

@inclement @haywirephoenix Won't it work on windows?

Was this page helpful?
0 / 5 - 0 ratings