Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 683467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:42:38+00:00 2026-05-14T01:42:38+00:00

I have an IronPython script that looks for current running processes using WMI. The

  • 0

I have an IronPython script that looks for current running processes using WMI. The code looks like this:

import clr
clr.AddReference('System.Management')
from System.Management import ManagementClass
from System import Array
mc = ManagementClass('Win32_Processes')
procs = mc.GetInstances()

That last line where I call the GetInstances() method raises the following error:

Traceback (most recent call first):
  File "<stdin>", line 1, in <module>
SystemError: Not Found

I am not understanding what’s not being found?!? I believe that I may need to pass an instance of ManagementOperationObserver and of EnumerationOptions to GetInstance() however, I don’t understand why that is, since the method with the signature Getinstance() is available in ManagementClass.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:42:38+00:00Added an answer on May 14, 2026 at 1:42 am

    I think the only problem is that ‘Win32_Processes’ is a typo for ‘Win32_Process’. This seems to work:

    >>> mc = ManagementClass('Win32_Process')
    >>> procs = mc.GetInstances()
    >>> for p in procs:
    ...     print p['Name']
    ... 
    System Idle Process
    System
    smss.exe
    (etc)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written the following IronPython code: import clr clr.AddReference(System.Drawing) from System import *
I have a simple IronPython script: # Foo.py import os def main(): print( Hello
I have an IronPython script that uses the TPL and Parallel.ForEach to process files
I have written an IronPython script that generates a xml file that contains the
I have a C# class that looks a little like: public class MyClass {
I have a Iron Python script that I want to run and then have
I have an ironpython app that uses dlls. Some of the dlls written in
I have seen documentation on the IronPython mailing list that describes how to write
I have been looking at the source code of the IronPython project and the
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.