NameError: name 'use' is not defined
I am a noob when it comes to programming so I did my best to figure this out:
I am using Sikuli to interface with Eclipse IDE to run some scripts within a jython file called "Ryancode". The file "Ryancode" is very long and I inherited "Ryancode" from another user who I cannot get ahold of.
Anyway, I am running the code below within Sikuli IDE:
from sikuli import *
import Ryancode
print("ryan")
tmpRegion = <screenshot of desktop with highlighted region for test purposes>
tmpRegion.
Ryancode.
print("done")
#######
The error message I get is below:
Exception in thread "Thread-32" Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'use' is not defined
#######
Is there a variable named 'use' within the Sikuli lib folder that is not defined? Is there a variable within "Ryancode" that is not defined? I am confused on what's happening. My main objective is to use the different functions within "Ryancode" to run regression tests on my system. ie. taking screenshots of different GUI's, CLI output to prove that the network is setup/running properly.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: