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

无法启动mitmproxy #4

Open
just2ciao opened this issue Jun 29, 2023 · 3 comments
Open

无法启动mitmproxy #4

just2ciao opened this issue Jun 29, 2023 · 3 comments

Comments

@just2ciao
Copy link

image
在步骤:
启动mitmproxy。
直接运行run.cmd
或者打开命令行界面输入mitmdump -p 23410 -s addons.py。
时提示错误.无法打开

@Mazinrenown
Copy link

前面依赖没装好吧 估摸当时就有报错

@just2ciao
Copy link
Author

just2ciao commented Jul 3, 2023

卸载Python后重启电脑.重新运行脚本后提示红字错误:
ERROR: pip's dependency resolver does not currently take into account packages installed. This behaviour is the source of the following dependency conflicts.
googleapis-comron-protos 159,.1 reguires protobuf!=3,20.0,!=3.20.1, !=4,21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0.d
ev0>=3.19.5,but vou have protobuf 3.16.0 which is incompatible
google-api-core 2.11.1 eguires rotobuf!=3.20,0,!=3,2,1 !=4,21 0,!=4,211, !=4,21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0.d
ev0,>=3.19.5,but you have protobuf 3.16. which is incompatible.
google-loud-bigquery 3.113 regure5 protobu!f=3.20.0,!=3,20,.1, !=4,21,0,!=4,211, !=4,21,2, !=4,21.3, !=4,21.4, !=4.21.5,<5
0.@dev,>=3.19.5,but you have protobuf 3.16.0 which is incompatible.
google-cloud-texttospeech 2.14.1 reguires protobuf!=3.20.0,1=3,20,1, !=4.21.0,!=4.21.1,!4.21.2,!=4.21.3,!=4.21.4,!=4.21
5,<5.0.odev,>=3.19.5, but you have protobuf 3.16. which is incompatible.
google-cloud-vision 3.4.3 requires protobuf!=3.20.0,!=3.20,1,!=4.21.0, !=4.211,!=4.21.2 ,!=4.21.3, 1=4.21.4, !=4.21.5,55.0.
odev,>=3.19.5,but you have protobuf 3.16.0 which is incompatible.
grpcio-status 1.56.0 requires protobuf>=4.21.6, but you have protobuf 3.16.0 uhich is incompatible.
proto-plus 1.22.3 requires protobuf<5.0.0dev,>=3.19.0, but you have protobuf 3.16.0 which is incompatible

使用命令:
pip uninstall googleapis-common-protos
pip uninstall google-api-core
pip uninstall google-cloud-bigquery
pip uninstall google-cloud-texttospeech
pip uninstall google-cloud-vision
pip uninstall grpcio-status
pip uninstall proto-plus

逐个删除后重新跑pip install -r requirements.txt
没有提示错误
接着运行

"直接运行run.cmd
或者打开命令行界面输入mitmdump -p 23410 -s addons.py"

闪退.
提示错误
"H:\Kuaipan\Desktop\mahjong-helper>mitmdump -p 23410 -s addons.py
'mitmdump’不是内部或外部命令,也不是可运行的程序
或批处理文件。"
mitmdump看来是没装上.官网下载mitmproxy-9.0.1-windows-x64-installer.exe 手动安装后再次运行脚本
还是提示红字错误
H: Kuaipan\Desktop\mahjong-helper>mitmdump -p 2341 -s addons.py
[08:01:19.550] Loading script addons.py
[08:01:19.572] in script addons.py: No module named 'google'

@shaodwE
Copy link

shaodwE commented Jul 31, 2023

我也是这个问题,麻了

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

3 participants