manu agarwal wrote:
>
> I have written the Python script that used to get the CPU usage,RAM
> and Disk usage from the windows server. 
>
> Then i converted the script to exe through to execute on server.

The psutil module is not included with Python.  Did you build it
yourself, or did you download a binary?  On what operating system and
with which compilers did you build it?

Several of the functions in PSAPI.DLL moved between Vista and Windows
7.  As long as it is compiled with the right options, it should link
properly on both older and newer systems.  However, the psutil build
process sets the version macros to match the system where it is built. 
Thus, if you build psutil on a Windows 7 system, I believe it will
expect the new naming, which doesn't work prior to Vista.

Thus, I think you can fix this in the "setup.py" for the psutil module,
by adding the following to the "define_macros" list:
    ('PSAPI_VERSION', '1')

However, I have not tried this myself.

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to