PFZheng / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by fdv...@gmail.com on 15 Sep 2011 at 4:25

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

Please, close it.

Original comment by fdv...@gmail.com on 15 Sep 2011 at 4:34

GoogleCodeExporter commented 9 years ago
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. 

Original comment by jlo...@gmail.com on 15 Sep 2011 at 4:35