AttributeError: 'NoneType' object has no attribute 'write'
evandrocoan opened this issue · comments
This logger keeps setting self.stream = None
causing the next logging statement to fail:
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: None, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
--- Logging error ---
Traceback (most recent call last):
File "F:\Python\lib\logging\__init__.py", line 995, in emit
stream.write(msg)
AttributeError: 'NoneType' object has no attribute 'write'
The file is already 250% above the maximum rotation of 50MB, but cannot be rolled because it is opened on the log viewer.
There is not problem in not rotating because the file is above the maximum rotation size, if the file is locked. The file can keep growing until it is unlocked by other other applications. However, it never should to set the stream logger to None
, making the logging fail randomly with AttributeError: 'NoneType' object has no attribute 'write'
.
I added these lines for debugging:
File: Data/Packages/ConcurrentLogHandler/all/concurrent_log_handler/__init__.py
234:
235: def _close(self):
236: """ Close file stream. Unlike close(), we don't tear anything down, we
237: expect the log to be re-opened after rotation."""
238: if self.stream:
239: try:
240: if not self.stream.closed:
241: # Flushing probably isn't technically necessary, but it feels right
242: self.stream.flush()
243: self.stream.close()
244: finally:
245: sys.stderr.write( "Setting self.stream = None: %s\n" % self.stream )
246: self.stream = None
File: F:/Python/Lib/logging/__init__.py
979:
980: def emit(self, record):
981: """
982: Emit a record.
983:
984: If a formatter is specified, it is used to format the record.
985: The record is then written to the stream with a trailing newline. If
986: exception information is present, it is formatted using
987: traceback.print_exception and appended to the stream. If the stream
988: has an 'encoding' attribute, it is used to determine how to do the
989: output to the stream.
990: """
991: try:
992: msg = self.format(record)
993: sys.stderr.write( "self.stream on StreamHandler: %s\n" % self.stream )
994: stream = self.stream
995: stream.write(msg)
996: stream.write(self.terminator)
Full log:
[pyls] 16:12:55:0730762 Logging to the file F:\SublimeText\debug2.txt
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: None, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
--- Logging error ---
Traceback (most recent call last):
File "F:\Python\lib\logging\__init__.py", line 995, in emit
stream.write(msg)
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
File "F:\Python\Scripts\pyls-script.py", line 11, in <module>
load_entry_point('python-language-server', 'console_scripts', 'pyls')()
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\__main__.py", line 54, in main
start_io_lang_server(stdin, stdout, PythonLanguageServer)
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\python_ls.py", line 62, in start_io_lang_server
server.start()
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\python_ls.py", line 88, in start
self.rpc_manager.start()
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\rpc_manager.py", line 46, in start
self.consume_requests()
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\rpc_manager.py", line 106, in consume_requests
self._handle_request(message)
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\rpc_manager.py", line 123, in _handle_request
maybe_handler = self._message_handler(request.method, request.params if request.params is not None else {})
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\python_ls.py", line 106, in handle_request
return getattr(self, method_call)(**params)
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\python_ls.py", line 167, in m_initialize
self._dispatchers = self._hook('pyls_dispatchers')
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\python_ls.py", line 128, in _hook
log.debug("PythonLanguageServer, self.config: %s", self.config)
File "F:\Python\lib\logging\__init__.py", line 1297, in debug
self._log(DEBUG, msg, args, **kwargs)
File "F:\SublimeText\Data\Packages\DebugTools\all\debug_tools\logger.py", line 574, in _log
super()._log( level, msg, args, exc_info, extra, stack_info )
Message: 'PythonLanguageServer, self.config: %s'
Arguments: (<pyls.config.config.Config object at 0x00000201F5902A20>,)
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: None, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
--- Logging error ---
Traceback (most recent call last):
File "F:\Python\lib\logging\__init__.py", line 995, in emit
stream.write(msg)
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
File "F:\Python\Scripts\pyls-script.py", line 11, in <module>
load_entry_point('python-language-server', 'console_scripts', 'pyls')()
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\__main__.py", line 54, in main
start_io_lang_server(stdin, stdout, PythonLanguageServer)
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\python_ls.py", line 62, in start_io_lang_server
server.start()
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\python_ls.py", line 88, in start
self.rpc_manager.start()
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\rpc_manager.py", line 46, in start
self.consume_requests()
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\rpc_manager.py", line 106, in consume_requests
self._handle_request(message)
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\rpc_manager.py", line 123, in _handle_request
maybe_handler = self._message_handler(request.method, request.params if request.params is not None else {})
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\python_ls.py", line 106, in handle_request
return getattr(self, method_call)(**params)
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\python_ls.py", line 168, in m_initialize
self._hook('pyls_initialize')
File "d:\user\dropbox\softwareversioning\python-language-server\pyls\python_ls.py", line 128, in _hook
log.debug("PythonLanguageServer, self.config: %s", self.config)
File "F:\Python\lib\logging\__init__.py", line 1297, in debug
self._log(DEBUG, msg, args, **kwargs)
File "F:\SublimeText\Data\Packages\DebugTools\all\debug_tools\logger.py", line 574, in _log
super()._log( level, msg, args, exc_info, extra, stack_info )
Message: 'PythonLanguageServer, self.config: %s'
Arguments: (<pyls.config.config.Config object at 0x00000201F5902A20>,)
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
self.stream on StreamHandler: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>, sys.stderr: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
Setting self.stream = None: <_io.TextIOWrapper name='F:\\SublimeText\\debug2.txt' mode='a' encoding='cp1252'>
OK, thanks for the report. I'll have more time to take a closer look this weekend.
At first glance I thought emit
only got called after acquire()
succeeded, thus the self.stream
object ought to be set then.
Some initial questions: is this a single process, multithreaded context? Which version of Python? Do you happen to have a standalone script I can run to reproduce this? Thanks.
It should be a multiple process, but the other process is sending stuff to stderr I do not know why (yet, I am fixing an implementation to capture stderr to the log file).
One process (which is the above error) uses python Python 3.6.3 :: Anaconda, Inc.
The other uses sys.version '3.3.6 (default, Feb 2 2017, 06:15:59) [MSC v.1600 32 bit (Intel)]'
I am not sure about the ideal environment to reproduce it. I the Sublime Text LSP client (Python 3.3.6), starts the pyls
(Python 3.6.3) server on a different process. Once the pyls
is starting on debug modo with pyls -vvv
command, the do a log of output, this problem happens. For some of the log entries.
I do not have a standalone script to reproduce this. I do not use the standard LSP
neither pyls
, but the ones I forked and added support to use this module:
Their original versions neither uses the logging module. Actually, neither the ones on my fork. They my own partial extension of the logging module https://github.com/evandrocoan/DebugTools
Hello. Can you try two things for me:
-
Add the
debug=True
flag to the place where you initializeconcurrent-log-handler
. This should add some extra logging to stdout. -
Use the
issue-4
branch. So far the only change in this branch is to updatehandleError
so that it doesn't skip over logging modules when printing the stack trace. I'm hoping this will capture more context.
Another question: are you using the exact same version of concurrent-log-handler
in both Python interpreters? Thanks.
To extend the last question a bit, are both interpreters using the same version of concurrent-log-handler
with all the same settings for rotation etc?
Both are using the same version and rotation. I installed it with python setup.py develop
.
I am using branch 4 already.
This is only the server:
This is only the debug of your program:
This the full log with my server + with your debug enabled. It created 122.000 lines:
I wrote it a separate file with
File: Data/Packages/ConcurrentLogHandler/all/concurrent_log_handler/__init__.py
247: def _console_log(self, msg, stack=False):
248: if not self._debug:
249: return
250: import threading
251: tid = threading.current_thread().name
252: pid = os.getpid()
253: stack_str = ''
254: if stack:
255: stack_str = ":\n" + "".join(traceback.format_stack())
256:
257: with open( "F:/SublimeText/debug.txt", "a", newline='\n', encoding='utf-8' ) as file:
258: file.write("[%s %s %s] %s%s\n" % (tid, pid, hash(self), msg, stack_str,))
259:
OK, thanks. That log info is helpful. I think I have a vague idea of what is causing this but I don't have a solution yet. I think it is what can loosely be called a reentrancy problem.
Based on reading the stack traces in that log it looks like this happens when creating a logging event inside handling another logging event. When that happens combined with the need to rollover the file, this situation occurs where self.stream
is set to None in an unexpected fashion.
Pending an upstream fix, you may be able to work around this on your end.
In python_ls.py line 128 you make a logging statement with a config object:
log.debug("PythonLanguageServer, self.config: %s", self.config)
When handling that at logging\__init__.py
line 992, while already holding locks, it calls self.format
to generate the string to log. This triggers a different logging statement inside pyls/config/config.py
line 52 and 92. It gets confused by the rollover when inside this inner logging.
Based on this info I can try to recreate a similar scenario and find a fix. But you may be able to avoid this error by pre-rending your first log statement to a string and then logging just the string.
Thanks! I checked everything you said and you are absolutely correct. I do log event call inside another logging event call.
Now I know why this started happening recently. It is because on the last few days, I got an new update from the upstream of my fork, and I introduced this change. This is the merge commit which starts doing this: https://github.com/evandroforks/python-language-server/pull/7/files#diff-18f52cff0140b5b8bd59faaa486aff4aR109
On it, it was replaced the attribute _settings
by a function call settings()
which have a logging statement inside it.
you may be able to avoid this error by pre-rending your first log statement to a string and then logging just the string
I am not sure how this would behave when the logging is disabled. If I understand correctly, currently the settings()
call will only happen when the logging is enabled. If I convert it to string before logging, it would cause this string to be expanded even when the logging is disabled.
I could avoid that just by a if check for the logging level, like the logging module does internally:
log.debug("PythonLanguageServer, self.config: %s", self.config)
# Changing it to -->
if log.isEnabledFor(logging.DEBUG):
create_string = str( self.config )
log.debug("PythonLanguageServer, self.config: %s", create_string)
That would solve the problem and would not create the create_string
when the logging is disabled.
It worked, I just did a commit with the change and this error does not happens anymore.
Great, thanks for the update. I'm glad there's a workaround. I would like to keep this issue open until we can find a way to fix this scenario.
Hello, could you refresh your checkout of the issue-4 branch and see if you can still reproduce this problem? You will need to undo your workaround of pre-rendering the config log string. I hope this will fix it without impacting performance too much. Thanks!
Note: probably don't set debug=True on the log handler for your initial tests.
I just merged it, it worked correctly even after removing the old patch.
I just pushed release 0.9.8 which should fix this. You might want to re-verify it. Thanks for the bug report!