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

  • SEARCH
  • Home
  • 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 8035717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:23:17+00:00 2026-06-05T02:23:17+00:00

I am using Python 3.2 and Eclipse classic as an IDE. I m trying

  • 0

I am using Python 3.2 and Eclipse classic as an IDE. I m trying to add the users in rawinput to the existing group North_AMERICAS using a command as shown below. I tested the cmd and it does its job. Now for all the users in the rawinput, I want to add them to the group using python script. Below is my code and the error msg. Can you please let me know what am I missing? Thanks.

# coding=UTF-8
import subprocess
def AddUsers():
 rawinput = ('corp\\arrigh', 'corp\\banjar', 'corp\\bicknk', 'corp\\BINDEM')
for user in rawinput:
 rs = subprocess.call("c:/dicfg -remote admin:admin@myserver:2130 add user -user "+user+" -groups North_AMERICAS")
 print(user)
AddUsers()

ERROR:

Traceback (most recent call last):
  File "C:\eclipse\Eclipse\eclipse\plugins\org.python.pydev.debug_2.5.0.2012040618\pysrc\pydev_runfiles.py", line 307, in __get_module_from_str
    mod = __import__(modname)
  File "C:/Documents and Settings/user21/Shworkspace/PYTHON TEST\PYTEST.py", line 5, in <module>
    for user in rawinput:
NameError: name 'rawinput' is not defined
ERROR: Module: PYTEST could not be imported (file: C:\Documents and Settings\user21\Shworkspace\PYTHON TEST\PYTEST.py).
  • 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-06-05T02:23:20+00:00Added an answer on June 5, 2026 at 2:23 am

    As per the comments, it’s an indentation problem: for should be under the previous line’s rawinput.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to run a python function using the command line in Eclipse
I am trying to develop a plasmoid using python. I have tried eclipse with
besides from using a completely integrated IDE with debugger for python (like with Eclipse),
I am using eclipse pydev IDE for coding python. I found that by default
I am using Eclipse as a Python IDE. Is there anyway for me to
I am writing a compiler in Python using Eclipse with PyDev. I've come to
I'm using Eclipse for writing Python, and I want to be able to easily
I've been using Eclipse only for Python over the last few months, and I'd
I am currently using Eclipse for both Java and Python (with PyDev). I often
I'm writing a crossplatform python script on windows using Eclipse with the Pydev plugin.

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.