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

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

@bmjssd

Description

@bmjssd

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]

有什么解决办法吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions