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

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. #1721

Closed
SwagatRanjit84 opened this issue Feb 20, 2019 · 4 comments

Comments

@SwagatRanjit84
Copy link

After doing python-for-android recipes, its showing error even after installing pbs:
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.

@Towloo
Copy link

Towloo commented Feb 24, 2019

locate the python file that's giving the error and replace 'import sh' with:

import pbs
class Sh(object):
    def **getattr**(self, attr):
        return pbs.Command(attr)
sh = Sh()

That should solve the issue

@inclement
Copy link
Member

inclement commented Feb 25, 2019

I'm afraid we don't support windows, although I understand that using the Windows Subsystem for Linux may work.

@SwagatRanjit84
Copy link
Author

@inclement Some users have done it on windows!! Dont close this issue

@alensiljak
Copy link

alensiljak commented Mar 27, 2019

@SwagatRanjit84, unfortunately they don't support Windows and, more importantly, they don't want to support Windows. Which is quite unfortunate as some of us spend most of their time on Windows machines. Maintaining a Linux VM is too cumbersome and Linux Subsystem now requires Windows Marketplace, which is disabled in some environments.
Once there is an idea that Windows may be supported in the future, people should start sending pull requests that make p4a work on both platforms (as both Python and Android SDK already do, paradoxically).

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