New question #288469 on Sikuli:
https://answers.launchpad.net/sikuli/+question/288469

Hi, i discovered one weird thing. Can somebody help me? 
this is my script:

import logging
myScriptPath = "c://Sikulix//Logs//"
addImportPath(myScriptPath)

varFileName = "c://Sikulix//Logs//example.log"

logging.basicConfig(filename=varFileName,level=logging.DEBUG)
logging.debug('This message should go to the log file')
logging.info('So should this')
logging.warning('And this, too')

When I run it in IDE for first time, it is OK. It creates file and write the 
information there. For second time is it OK and when I run it for 3rd time. I 
will get this err. I dont understand.


Traceback (most recent call last):
File "C:\Sikulix\sikulix.jar\Lib\logging\__init__.py", line 874, in emit
stream.write(fs % msg)
File "C:\Sikulix\sikulix.jar\Lib\logging\__init__.py", line 874, in emit
stream.write(fs % msg)
ValueError: I/O operation on closed file
Logged from file pokusLog.py, line 8
Traceback (most recent call last):
File "C:\Sikulix\sikulix.jar\Lib\logging\__init__.py", line 874, in emit
stream.write(fs % msg)
File "C:\Sikulix\sikulix.jar\Lib\logging\__init__.py", line 874, in emit
stream.write(fs % msg)
ValueError: I/O operation on closed file
Logged from file pokusLog.py, line 9
Traceback (most recent call last):
File "C:\Sikulix\sikulix.jar\Lib\logging\__init__.py", line 874, in emit
stream.write(fs % msg)
File "C:\Sikulix\sikulix.jar\Lib\logging\__init__.py", line 874, in emit
stream.write(fs % msg)
ValueError: I/O operation on closed file
Logged from file pokusLog.py, line 10




-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to