The solution to mitmdump error AttributeError: module'asyncio' has no attribute'WindowsSelectorEventLoopPolicy

problem:

I installed mitmdump today and there was no problem with the installation. Then I found an error was reported when I used mitmdump. There was no problem when I used it before.

1. My configuration:

window computer 64 bit
python3.6

Solutions:

The first step, I will definitely go online to search to see if there is a solution:
Insert picture description here
Then I came to Zhihu, saying that it is the reason for the python version, and the article address of Zhihu:

However, I had no problem using it last year, and if you have some experience, do you think of another method. . . .

then. . . I tried to find other versions of mitmdump and lower the installed version of mitmdump. Because of my work, I cannot change the python version at will. Once I change the python version, I am afraid that it will affect the normal use of modules in other projects.

Come to the historical version of mitmdump:

Since I was still using it last year, I will try it with 2019:
Insert picture description here

Then install it,

After installation, success:
Insert picture description here

Solve the code

Reduce the version of mitmdump:

pip install mitmproxy==5.0.1

Guess you like

Origin blog.csdn.net/weixin_42081389/article/details/107185767