Reload error when no reload calls present

Asked by Mark McGuinn

I have a main control routine which calls 4 sub-routines to do various things. However when I try to run the main routine I get the following error:

[error] IDE: Run Script: internal error:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: reload() argument must be a module

The thing is that there is no reload calls anywhere in the code. I am confused as to why this error i occurring and would welcome any pointers as to its cause.

Question information

Language:
English Edit question
Status:
Expired
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

I guess you are running the script in the IDE and have an import statement in the first line.

It would help, to see the few top lines of the script.

Revision history for this message
Mark McGuinn (mmcguinn) said :
#2

The script is being run in the IDE and below are the lines with import:

def auction_control():

myScriptPath = "c:\\Users\\mmcguinn\\Documents"
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
from sikuli import *
from ast import literal_eval
from mensel import *
from bidding import *
from auction_questions import *

import unittest
Settings.OcrReadText = True
Settings.OcrLanguage="ENG"
Settings.DebugLogs = True
import java.lang.System
import java.util.Arrays
import java.lang.Object
import java.awt.event.InputEvent
import java.io.FilterInputStream
from java import *
import unittest
import re
import xlrd
import xlwt
import call_auction
import os.path

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.