subprocess.Popen: 'OSError: [Errno 13] Permission denied' only on Linux

后端 未结 1 1683
深忆病人
深忆病人 2020-12-21 14:12

Code and logs have changed a lot (due to a major rewrite) since the question was asked.

When my code (given below) executes on Windows (

相关标签:
1条回答
  • 2020-12-21 14:25

    This is the executable you are trying to run:

    -rw-rw-r-- 1 travis travis 276306 Sep 29 20:14 espeak
    

    Its permissions are rw- read+write for owner (travis), rw- read+write for group (travis), and r-- read for others. There is no permission to execute for anyone.

    You have to give x (execute) permission to the user under which the script is running. Or give it to everyone:

    chmod 775 espeak
    

    After that, ls- l should say:

    -rwxrwxr-x 1 travis travis 276306 Sep 29 20:14 espeak
    
    0 讨论(0)
提交回复
热议问题