Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6531113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:50:18+00:00 2026-05-25T09:50:18+00:00

I am trying to execute the following code in Python import os,subprocess from glob

  • 0

I am trying to execute the following code in Python

import os,subprocess
from glob import glob

path = "/Users/armed/private_SDKs"
os.chdir(path)

for file in glob("*.framework"):
     command = ['class-dump' , '-H' , file , '-o' , '~', '/Users/armed/Desktop/Headers/']
     subprocess.call(command)

On executing this script i get the following error :-

Traceback (most recent call last):
  File "<pyshell#52>", line 3, in <module>
    subprocess.call(command)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 493, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1228, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied

Any help is much appreciated !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:50:19+00:00Added an answer on May 25, 2026 at 9:50 am

    Check permissions of the class-dump command. chmod +x class-dump if it’s not executable. Here are the docs on chmod.

    You might also need to specify the absolute path to class-dump if it’s not on your path.

    Also, try:

    print " ".join(command)
    

    and see if you can run it by pasting the results into a shell.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I trying to execute the following code... but the AlertDialog is creating problems! Without
I'm trying to use the following code: args = 'LD_LIBRARY_PATH=/opt/java/jre/lib/i386/:/opt/java/jre/lib/amd64/ exec /opt/java/jre/bin/java -Xincgc -Xmx1G
I am trying to get the correct Big-O of the following code snippet: s
I'm trying to implement a simple method to read new lines from a log
I'm trying to connect to a SQL server from VB. The SQL server is
I just started working on Python and have been trying to run an outside
I'm trying to use the IPython demo mode. I created a file called test.py
I am trying to write a wrapper script for a command line program (svnadmin
I'm trying to use svnmerge.py to merge some files. Under the hood it uses
I built a rather simple application in Python 3.1 using PyQt4. Being done, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.