alibaba / web-editor

please use https://uiauto.dev instead
https://uiauto.dev
MIT License
1.24k stars 307 forks source link

连接手机时报错:AttributeError: 'MockStdout' object has no attribute 'flush' #139

Open bmjssd opened 1 year ago

bmjssd commented 1 year ago

Set environment and prepare d = u2.connect()Traceback (most recent call last): exec(ccode, globals) File "", line 1, in File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\colorama\ansitowin32.py", line 47, in write self.__convertor.write(text) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\colorama\ansitowin32.py", line 177, in write self.write_and_convert(text) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\colorama\ansitowin32.py", line 205, in write_and_convert self.write_plain_text(text, cursor, len(text)) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\colorama\ansitowin32.py", line 211, in write_plain_text self.wrapped.flush() ^^^^^^^^^^^^^^^^^^ AttributeError: 'MockStdout' object has no attribute 'flush'[Finished 0.002s]

有什么解决办法吗?

pinnnkman commented 1 year ago

add codes image or upgrade latest package