Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The sh Python module could not be found #1232

Closed
alensiljak opened this issue Feb 9, 2018 · 5 comments
Closed

The sh Python module could not be found #1232

alensiljak opened this issue Feb 9, 2018 · 5 comments

Comments

@alensiljak
Copy link

alensiljak commented Feb 9, 2018

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!

@alensiljak
Copy link
Author

alensiljak commented Feb 9, 2018

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.

@inclement
Copy link
Member

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.

@alensiljak
Copy link
Author

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

@haywirephoenix
Copy link

I made the same mistake :(

@SwagatRanjit84
Copy link

SwagatRanjit84 commented Feb 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants