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

Popen constructor throws "Permission denied" error in Mac OS X with psutil 0.3.0 #208

Closed
giampaolo opened this issue May 23, 2014 · 2 comments

Comments

@giampaolo
Copy link
Owner

From fdv...@gmail.com on September 15, 2011 18:25:55

What steps will reproduce the problem?  
1. Execute the following piece of code:
import psutil

p = psutil.Popen(<application.app>) 

What is the expected output?  


What do you see instead?  
<application.app> is properly launched.

You get the following error:
Traceback (most recent call last):
  File "z.py", line 12, in <module>
    p = psutil.Popen(<application.app>)
  File "build/bdist.macosx-10.5-fat3/egg/psutil/__init__.py", line 523, in __init__
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
 line 672, in __init__
    errread, errwrite)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
 line 1201, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied 

What version of psutil are you using? What Python version?  
python 2.7
psutil 0.3.0 

On what operating system? Is it 32bit or 64bit version?  
Mac OS X 10.6.8 Snow Leopard 64 bits. 

Please provide any additional information below.  
With previous versions of psutil this worked fine.

Original issue: http://code.google.com/p/psutil/issues/detail?id=208

@giampaolo
Copy link
Owner Author

From fdv...@gmail.com on September 15, 2011 09:34:29

Sorry, this is not a bug. It was my fault. I forgot: p = 
psutil.Popen(<application.app/Contents/MacOS/exe_file>)

Please, close it.

@giampaolo
Copy link
Owner Author

From jlo...@gmail.com on September 15, 2011 09:35:14

I was just typing up a response saying the same thing when I saw your comment :) 

I'll go ahead and close this out as invalid.

Status: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant