Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

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

Open
bmjssd opened this issue Jul 18, 2023 · 1 comment

Comments

@bmjssd
Copy link

bmjssd commented Jul 18, 2023

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
Copy link
Contributor

add codes
image
or upgrade latest package

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants