-
Notifications
You must be signed in to change notification settings - Fork 26
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
Issues with the first test provided #1
Comments
You need to install wmic from the libwmiclient.git repository. There are
|
Understood, i had actually downloaded that but didn't compile/install it Thanks! On Fri, Dec 6, 2013 at 2:11 PM, Bryan Bishop [email protected]:
|
I have compiled and installed the libwmiclient however am I still getting the same error as above. I am trying to run this on the raspberry pi. |
Installed the wrapper client and sh for python.
After installation I just wanted to test the simple example you provided so I copied and pasted it into a python script, changing the parameters of username,password, and host.
When I go to execute it I get the following error:
[root@localhost smbtests]# python wmitest.py
Traceback (most recent call last):
File "wmitest.py", line 11, in
output = wmic.query("SELECT * FROM Win32_Processor")
File "/usr/lib/python2.6/site-packages/wmi_client_wrapper/wrapper.py", line 92, in query
output = sh.wmic(_arguments)
File "/usr/lib/python2.6/site-packages/sh.py", line 1721, in getattr
return self.env[name]
File "/usr/lib/python2.6/site-packages/sh.py", line 1660, in getitem
return Command._create(k, *_self.baked_args)
File "/usr/lib/python2.6/site-packages/sh.py", line 540, in _create
if not path: raise CommandNotFound(program)
sh.CommandNotFound: wmic
Am I missing another package?
Code:
!/usr/bin/python
import wmi_client_wrapper as wmi
import sh
import mock
wmic = wmi.WmiClientWrapper(
username="username",
password="password",
host="192.168.1.100",
)
output = wmic.query("SELECT * FROM Win32_Processor")
The text was updated successfully, but these errors were encountered: