Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问运行时出现如下问题是什么情况呀 #70

Open
Taffy-Zong opened this issue Oct 11, 2024 · 6 comments
Open

请问运行时出现如下问题是什么情况呀 #70

Taffy-Zong opened this issue Oct 11, 2024 · 6 comments

Comments

@Taffy-Zong
Copy link

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\tkinter_init_.py", line 1967, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "F:\Code\XiaoYuanKouSuan-main\main.py", line 110, in on_button2_click
number_command.next_round() # 继续执行代码
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Code\XiaoYuanKouSuan-main\number_command.py", line 81, in next_round
click_screen( scale_coordinates_for_tap(NEXT_BUTTON_COORDINATES["next_1"], scale_x, scale_y) )
File "F:\Code\XiaoYuanKouSuan-main\number_command.py", line 78, in click_screen
run_adb_command(command)
File "F:\Code\XiaoYuanKouSuan-main\number_command.py", line 42, in run_adb_command
result = subprocess.run(["adb", "shell", command], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

@Chang-su0423
Copy link

你应该使用的是pycharm的虚拟环境?找不到adb.exe

@Chang-su0423
Copy link

现在抓到的包已经加密了,不用试了

@Taffy-Zong
Copy link
Author

你应该使用的是pycharm的虚拟环境?找不到adb.exe

我用的vscode,想请教一下这种问题该怎么解决呀

@Chang-su0423
Copy link

你应该使用的是pycharm的虚拟环境?找不到adb.exe

我用的vscode,想请教一下这种问题该怎么解决呀

adb你配置环境变量了没有?

@Chang-su0423
Copy link

你应该使用的是pycharm的虚拟环境?找不到adb.exe

我用的vscode,想请教一下这种问题该怎么解决呀

vs code也可以创建虚拟环境,你可以在文件路径下使用命令行运行main.py尝试

@Taffy-Zong
Copy link
Author

你应该使用的是pycharm的虚拟环境?找不到adb.exe

我用的vscode,想请教一下这种问题该怎么解决呀

vs code也可以创建虚拟环境,你可以在文件路径下使用命令行运行main.py尝试

大佬,我用的是mumu模拟器,adb环境配置好之后现在报错提示无法获取分辨率

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

No branches or pull requests

2 participants