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

启动失败 #17

Open
Hedenghui opened this issue Nov 20, 2023 · 0 comments
Open

启动失败 #17

Hedenghui opened this issue Nov 20, 2023 · 0 comments

Comments

@Hedenghui
Copy link

adb devices
adb -s prmrozz97dcqzlee shell wm size
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/Users/denghui.he/PycharmProjects/monkeyTest/monkeyTest.py", line 87, in start
mkdirInit(devices, app, num)
File "/Users/denghui.he/PycharmProjects/monkeyTest/monkeyTest.py", line 53, in mkdirInit
app[devices] = {"cpu": cpu, "men": men, "flow": flow, "battery": battery, "fps": fps, "header": get_phome(devices)}
File "/Users/denghui.he/PycharmProjects/monkeyTest/monkeyTest.py", line 37, in get_phome
bg = BasePhoneMsg.get_phone_Kernel(devices)
File "/Users/denghui.he/PycharmProjects/monkeyTest/Base/BasePhoneMsg.py", line 66, in get_phone_Kernel
pix = get_app_pix(devices)
File "/Users/denghui.he/PycharmProjects/monkeyTest/Base/BasePhoneMsg.py", line 62, in get_app_pix
return subprocess.check_output(cmd).split()[2].decode()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 947, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1819, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'adb -s prmrozz97dcqzlee shell wm size'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/denghui.he/PycharmProjects/monkeyTest/monkeyTest.py", line 153, in
runnerPool()
File "/Users/denghui.he/PycharmProjects/monkeyTest/monkeyTest.py", line 76, in runnerPool
pool.map(start, devices_Pool)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 771, in get
raise self._value
FileNotFoundError: [Errno 2] No such file or directory: 'adb -s prmrozz97dcqzlee shell wm size'

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

1 participant