question-mark
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://127.0.0.1:5037/VS7STS6TUKAU5TBE
[08:51:01][DEBUG]<airtest.core.android.adb> /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/runner.py", line 37, in setUpClass
    connect_device(dev)
  File "/home/qatest/.local/lib/python2.7/site-packages/airtest/core/api.py", line 46, in connect_device
    dev = cls(uuid, **params)
  File "/home/qatest/.local/lib/python2.7/site-packages/airtest/core/android/android.py", line 35, in __init__
    self.adb.wait_for_device()
  File "/home/qatest/.local/lib/python2.7/site-packages/airtest/core/android/adb.py", 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/adb.py", line 146, in start_cmd
    stderr=subprocess.PIPE
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied

----------------------------------------------------------------------
Ran 0 tests in 0.316s

FAILED (errors=1)
exiting.......

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
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 https://androideputies.com/2016/12/11/linux-update-adb-fastboot-to-the-latest-version/

thank you @adolli

1reaction
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found