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

can't execute: Is a directory #21

Open
YumisLink opened this issue Jun 7, 2023 · 3 comments
Open

can't execute: Is a directory #21

YumisLink opened this issue Jun 7, 2023 · 3 comments

Comments

@YumisLink
Copy link

2023-06-07 15:20:06.331 | INFO     | pyminitouch.utils:is_device_connected:56 - device DCO-AL00 online
2023-06-07 15:20:06.332 | INFO     | pyminitouch.connection:__init__:87 - searching a usable port ...
2023-06-07 15:20:08.334 | INFO     | pyminitouch.connection:__init__:89 - device 127.0.0.1:16384 bind to port 20933
2023-06-07 15:20:08.376 | INFO     | pyminitouch.connection:get_abi:35 - device 127.0.0.1:16384 is x86_64
2023-06-07 15:20:08.405 | INFO     | pyminitouch.connection:__init__:27 - minitouch already existed in 127.0.0.1:16384
2023-06-07 15:20:08.405 | DEBUG    | pyminitouch.connection:_forward_port:128 - forward command: adb -s 127.0.0.1:16384 forward tcp:20933 localabstract:minitouch
2023-06-07 15:20:08.417 | DEBUG    | pyminitouch.connection:_forward_port:130 - output: b'20933\r\n'
2023-06-07 15:20:08.418 | INFO     | pyminitouch.connection:_start_mnt:141 - start minitouch: adb -s 127.0.0.1:16384 shell /data/local/tmp/minitouch
/system/bin/sh: /data/local/tmp/minitouch: can't execute: Is a directory

code:

from pyminitouch import MNTDevice

_DEVICE_ID = '127.0.0.1:16384'
device = MNTDevice(_DEVICE_ID)

# print the maximum x and Y coordinates
print("max x:", device.connection.max_x)
print("max y:", device.connection.max_y)

device.stop() 
@williamfzc
Copy link
Owner

You can try to remove /data/local/tmp/minitouch then rerun.

@YumisLink
Copy link
Author

image

i remove this folder and push new minitouch but still this error

this is minitouch folder :

image

You can try to remove /data/local/tmp/minitouch then rerun.

@williamfzc
Copy link
Owner

Ok I see.
Why do you push the whole minitouch directory? Pyminitouch will do it automatically.

BTW, if you prefer pushing the minitouch manually, you should push the prebuilt binary, not the directory.

def download_target_mnt(self):

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