Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

run air script on ubuntu which is connected with android phone, occure "Permission denied" Error

See original GitHub issue
test@ubuntu:~/work$ airtest run main_ui3.air --device Android://
[08:51:01][DEBUG]<> /home/qatest/.local/lib/python2.7/site-packages/airtest/core/android/static/adb/linux/adb -P 5037 -s VS7STS6TUKAU5TBE wait-for-device
ERROR: setUpClass (airtest.cli.runner.AirtestCase)
Traceback (most recent call last):
  File "/home/qatest/.local/lib/python2.7/site-packages/airtest/cli/", line 37, in setUpClass
  File "/home/qatest/.local/lib/python2.7/site-packages/airtest/core/", line 46, in connect_device
    dev = cls(uuid, **params)
  File "/home/qatest/.local/lib/python2.7/site-packages/airtest/core/android/", line 35, in __init__
  File "/home/qatest/.local/lib/python2.7/site-packages/airtest/core/android/", line 271, in wait_for_device
    proc = self.start_cmd("wait-for-device")
  File "/home/qatest/.local/lib/python2.7/site-packages/airtest/core/android/", line 146, in start_cmd
  File "/usr/lib/python2.7/", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied

Ran 0 tests in 0.316s

FAILED (errors=1)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

oaktestercommented, May 4, 2018

Problem fixed. adb 's version 1.0.32 is not suitable . upgrade it to 1.0.39 . this link for reference

thank you @adolli

adollicommented, May 4, 2018

please check the adb executable file again at this location /home/qatest/.local/lib/python2.7/site-packages/airtest/core/android/static/adb/linux/adb. Maybe I gave l wrong path previously.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Permission denied when running .sh scripts - Ask Ubuntu
Permission denied error are occurs only if you don't have enough privilege to access that file. – Avinash Raj. Jan 22, 2014 at...
Read more >
Bug #1325571 “can't execute shell scripts” - Launchpad Bugs
testscript: /bin/sh: bad interpreter: Permission denied When I run the script as root I get the following error: sudo: unable to execute ....
Read more >
How To Resolve Permission Denied Error On Ubuntu/Debian?
We can add users using the chown command. Step 1: First, check the users who have access using the following command.
Read more >
How can I exclude all "permission denied" messages from ...
Use: find . 2>/dev/null > files_and_folders. This hides not just the Permission denied errors, of course, but all error messages.
Read more >
Airmon-ng - Aircrack-ng
This script can be used to enable monitor mode on wireless interfaces. It may also be used to kill network managers, or go...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found