cr4n5 / XiaoYuanKouSuan

小猿口算_已达到0.00s
1.39k stars 180 forks source link

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

Open Taffy-Zong opened 1 month ago

Taffy-Zong commented 1 month ago

Exception in Tkinter callback Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64qbz5n2kfra8p0\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_x64qbz5n2kfra8p0\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_x64qbz5n2kfra8p0\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_x64qbz5n2kfra8p0\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 2] 系统找不到指定的文件。

Chang-su0423 commented 1 month ago

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

Chang-su0423 commented 1 month ago

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

Taffy-Zong commented 1 month ago

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

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

Chang-su0423 commented 1 month ago

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

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

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

Chang-su0423 commented 1 month ago

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

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

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

Taffy-Zong commented 1 month ago

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

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

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

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