sikyala
asked on
When I execute Python script I get error message NameError: name 'sys' is not defined
When I execute Python script I get error message:
NameError: name 'sys' is not defined.
I tried putting the following:
import sys
prior to the statement in question.
However, I get other more complicated errors such as the following:
Traceback (most recent call last):
line 263, in <module>
connect(user, password, url=url)
NameError: name 'connect' is not defined
This code was written by someone else and I am trying to run it to make STIG changes in Weblogic.
NameError: name 'sys' is not defined.
I tried putting the following:
import sys
prior to the statement in question.
However, I get other more complicated errors such as the following:
Traceback (most recent call last):
line 263, in <module>
connect(user, password, url=url)
NameError: name 'connect' is not defined
This code was written by someone else and I am trying to run it to make STIG changes in Weblogic.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
I am not using Weblogic, so I am not able to tell what is usual approach to do that. Say, there was some idea behind in the original code. For example, another implementation of the sys module was to be used and therefore imported using some unusual way from unusual location.