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

运行报错,要如何解决呢 #5

Open
jluzhpanda opened this issue Jun 18, 2020 · 0 comments
Open

运行报错,要如何解决呢 #5

jluzhpanda opened this issue Jun 18, 2020 · 0 comments

Comments

@jluzhpanda
Copy link

[03:23:33][DEBUG]<airtest.core.android.adb> C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe devices
[03:23:34][DEBUG]<airtest.core.android.adb> C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s "Android:///172.16.1.16:55554 get-state
Traceback (most recent call last):
File "E:\airtest\github\02\airtest_runner-master\airtest_runner-master\utils.py", line 117, in MyWrapper
return func(*args,**kwargs)
File "E:\airtest\github\02\airtest_runner-master\airtest_runner-master\runner.py", line 166, in RunScript
oCase = NewCase(fPy, sLogDir, sDeviceNum)
File "E:\airtest\github\02\airtest_runner-master\airtest_runner-master\runner.py", line 142, in NewCase
oCase.Init(sLogDir, sPyFileName)
File "E:\airtest\github\02\airtest_runner-master\airtest_runner-master\runner.py", line 34, in Init
self.m_oDev = connect_device(sConn)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\api.py", line 63, in connect_device
dev = init_device(platform, uuid, **params)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\api.py", line 33, in init_device
dev = cls(uuid, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\android\android.py", line 38, in init
self.adb = ADB(self.serialno, server_addr=host)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\android\adb.py", line 40, in init
self.connect()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\android\adb.py", line 237, in connect
if self.serialno and ":" in self.serialno and (force or self.get_status() != "device"):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\android\adb.py", line 274, in get_status
raise AdbError(stdout, stderr)
airtest.core.error.AdbError: stdout[] stderr[error: unknown host service
]
ERROR:root:stdout[] stderr[error: unknown host service
]
Traceback (most recent call last):
File "main.py", line 26, in
main()
File "main.py", line 22, in main
return Run(lAirScripts, lDevices)
File "main.py", line 10, in Run
return runner.CreatePools(lAirScripts, lDevices, sPatchTag)
File "E:\airtest\github\02\airtest_runner-master\airtest_runner-master\runner.py", line 197, in CreatePools
return Finish(sLogDir)
File "E:\airtest\github\02\airtest_runner-master\airtest_runner-master\runner.py", line 121, in Finish
with open(sCombineTxt, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'E:\airtest\github\02\airtest_runner-master\airtest_runner-master\logs_root\20200618152333\log.txt'

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