Sikuli IDE not reappearing after script execution
Hey there,
I have a script in the Sikuli IDE that, upon completion, does not bring the IDE back up. I'm running on Windows 8.
Basically, after my script runs, the IDE does not reappear but the command prompt window remains open, and I receive no errors whatsoever.
This started after I began using a logger with python.
import logging
logger = logging.
hdlr = logging.
formatter = logging.
hdlr.setFormatt
hdlr.setLevel(
logger.
logger.
I then have multiple instances of the following:
logger.info('Test complete')
logger.info('Step x complete')
The logFile name is different each time as it relies on the timestamp.
Apart from logger.info() I don't deal with the logger anywhere else in my script. Do I need to do something like logger.shutdown(), or something like that?
Sometimes when the IDE does reappear, I get this message:
Traceback (most recent call last):
File "C:\path-
File "C:\path-
ValueError: I/O operation on closed file
I'm not very well versed with the logging process in Python so apologies in advance if it's a basic mistake I'm making.
Thanks.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: