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

sh.CommandNotFound: wmic #14

Open
zhangjianpinghik opened this issue Aug 13, 2018 · 2 comments
Open

sh.CommandNotFound: wmic #14

zhangjianpinghik opened this issue Aug 13, 2018 · 2 comments

Comments

@zhangjianpinghik
Copy link

output = wmic.query("SELECT * FROM Win32_Processor")
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.4/dist-packages/wmi_client_wrapper/wrapper.py", line 111, in query
output = sh.wmic(*arguments)
File "/usr/local/lib/python3.4/dist-packages/sh.py", line 3349, in getattr
return self.__env[name]
File "/usr/local/lib/python3.4/dist-packages/sh.py", line 3226, in getitem
raise CommandNotFound(k)
sh.CommandNotFound: wmic

@kanzure
Copy link
Owner

kanzure commented Aug 14, 2018

You'll need to install the windows management instrumentation stuff: https://docs.microsoft.com/en-us/windows/desktop/wmisdk/wmic

@djloot
Copy link

djloot commented Feb 5, 2019

I got this running on a Raspberry Pi. You don't necessarily need the Microsoft's stuff, you can use the ubuntu packages

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

3 participants