Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\Users\PC\Downloads\python>python test.py
- Exception in thread Thread-1:
- Traceback (most recent call last):
- File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\threading.py", line 917, in _bootstrap_inner
- self.run()
- File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\threading.py", line 865, in run
- self._target(*self._args, **self._kwargs)
- File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 1238, in _readerthread
- buffer.append(fh.read())
- File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\encodings\cp1254.py", line 23, in decode
- return codecs.charmap_decode(input,self.errors,decoding_table)[0]
- UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 1019: character maps to <undefined>
- Traceback (most recent call last):
- File "test.py", line 3, in <module>
- result=subprocess.check_output("dir",shell=True)
- File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 395, in check_output
- **kwargs).stdout
- File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\site-packages\run\__init__.py", line 168, in stdout
- return std_output(self.process.communicate()[0])
- File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 939, in communicate
- stdout, stderr = self._communicate(input, endtime, timeout)
- File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 1288, in _communicate
- stdout = stdout[0]
- IndexError: list index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement