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

Unknown error: [WinError 2] 系统找不到指定的文件。 #38

Open
lijianxi opened this issue Nov 3, 2020 · 2 comments
Open

Unknown error: [WinError 2] 系统找不到指定的文件。 #38

lijianxi opened this issue Nov 3, 2020 · 2 comments

Comments

@lijianxi
Copy link

lijianxi commented Nov 3, 2020

``D:\atxserver2-android-provider\atxserver2-android-provider>python main.py --server 10.252.25.198:4000
[I 201103 10:42:31 main:299] Owner: None
[I 201103 10:42:31 main:314] ProviderURL: http://10.252.63.137:3500

app-uiautomator.apk verison: 2.3.1
app-uiautomator-test.apk verison: 2.3.1
[I 201103 10:42:31 heartbeat:139] WS receive: {"success": true, "id": "37373a92-1d7e-11eb-bfe6-0242ac120003"}
[D 201103 10:42:31 main:234] DeviceEvent(present=True, serial='6040b6f3', status='device')
[I 201103 10:42:31 device:57] Init device: 6040b6f3
[D 201103 10:42:31 device:85] [6040b6f3] sdk: 27, abi: arm64-v8a, abis: ['arm64-v8a', 'armeabi-v7a', 'armeabi']
[D 201103 10:42:31 device:132] [6040b6f3] already pushed stf-binaries-0.2.1/node_modules/minicap-prebuilt/prebuilt/arm64-v8a/lib/android-27/minicap.so
[D 201103 10:42:32 device:113] [6040b6f3] use atx-agent: atx-agent-armv7
[D 201103 10:42:32 device:132] [6040b6f3] already pushed atx-agent-armv7
[D 201103 10:42:32 device:151] [6040b6f3] already installed vendor/WhatsInput-1.0.apk
app-uiautomator.apk verison: 2.3.1
app-uiautomator-test.apk verison: 2.3.1
APKPath: vendor/app-uiautomator-2.3.1\app-uiautomator.apk
[D 201103 10:42:32 device:151] [6040b6f3] already installed vendor/app-uiautomator-2.3.1\app-uiautomator.apk
APKPath: vendor/app-uiautomator-2.3.1\app-uiautomator-test.apk
[D 201103 10:42:32 device:151] [6040b6f3] already installed vendor/app-uiautomator-2.3.1\app-uiautomator-test.apk
[D 201103 10:42:32 device:161] [6040b6f3] forward atx-agent
[D 201103 10:42:33 device:208] [6040b6f3] tcpproxy.js start *:20001 -> 20000
[E 201103 10:42:33 main:264] Unknown error: [WinError 2] 系统找不到指定的文件。
Traceback (most recent call last):
File "main.py", line 247, in device_watch
await device.init()
File "D:\atxserver2-android-provider\atxserver2-android-provider\device.py", line 62, in init
await self._init_forwards()
File "D:\atxserver2-android-provider\atxserver2-android-provider\device.py", line 162, in _init_forwards
self._atx_proxy_port = await self.proxy_device_port(7912)
File "D:\atxserver2-android-provider\atxserver2-android-provider\device.py", line 214, in proxy_device_port
silent=True)
File "D:\atxserver2-android-provider\atxserver2-android-provider\device.py", line 222, in run_background
p = subprocess.Popen(*args, **kwargs)
File "C:\Users\lijianxi\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "C:\Users\lijianxi\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

@Hellowlonewolf
Copy link

me too

@unit2006
Copy link

unit2006 commented Jan 21, 2021

image

  1. 修改device.py: p = subprocess.Popen(*args, **kwargs) 修改为: p = subprocess.Popen(*args, **kwargs,shell=True)
  2. 重新执行:python main.py --server 10.252.25.198:4000

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

3 participants