Advertisement
Guest User

Untitled

a guest
May 24th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.56 KB | None | 0 0
  1.  
  2. C:\Users\PC\Downloads\python>python test.py
  3. Exception in thread Thread-1:
  4. Traceback (most recent call last):
  5.   File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\threading.py", line 917, in _bootstrap_inner
  6.     self.run()
  7.   File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\threading.py", line 865, in run
  8.     self._target(*self._args, **self._kwargs)
  9.   File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 1238, in _readerthread
  10.     buffer.append(fh.read())
  11.   File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\encodings\cp1254.py", line 23, in decode
  12.     return codecs.charmap_decode(input,self.errors,decoding_table)[0]
  13. UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 1019: character maps to <undefined>
  14.  
  15. Traceback (most recent call last):
  16.  File "test.py", line 3, in <module>
  17.    result=subprocess.check_output("dir",shell=True)
  18.  File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 395, in check_output
  19.    **kwargs).stdout
  20.  File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\site-packages\run\__init__.py", line 168, in stdout
  21.    return std_output(self.process.communicate()[0])
  22.  File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 939, in communicate
  23.    stdout, stderr = self._communicate(input, endtime, timeout)
  24.  File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 1288, in _communicate
  25.    stdout = stdout[0]
  26. IndexError: list index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement