#347 win32pdh.EnumObjects fails on windows server 2003 R2

closed-works-for-me
win32 (141)
5
2008-04-10
2008-02-07
bimal
No

The following code works ok on any windows version except
windows server 2003 R2.
import win32pdh
>>> win32pdh.EnumObjects(None, None, 0, 1)

Here is the traceback
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
win32pdh.EnumObjects(None, None, 0, 1)
error: (-2147481648, 'EnumObjects for buffer size', 'No error message is available')

Discussion

  • bimal

    bimal - 2008-02-07
    • summary: fails on windows server 2003 R2 --> win32pdh.EnumObjects fails on windows server 2003 R2
     
  • Roger Upole

    Roger Upole - 2008-02-07
    • labels: 518544 --> win32
    • assigned_to: nobody --> rupole
     
  • Roger Upole

    Roger Upole - 2008-02-07

    Logged In: YES
    user_id=771074
    Originator: NO

    This is probably due to permissions. Try it from an elevated process.
    The next build will also have better support for PDH error messages:
    error: (-2147481648, 'EnumObjects for buffer size', 'Unable to connect to the specified computer or the computer is offline.')

     
  • Roger Upole

    Roger Upole - 2008-04-10
    • status: open --> closed-works-for-me
     
  • Roger Upole

    Roger Upole - 2008-04-10

    Logged In: YES
    user_id=771074
    Originator: NO

    Closing this since it's due to a difference in platform behaviour.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks