By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,857 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

Popen: NameError: name 'PIPE' is not defined

P: n/a
Hi

I import subprocess and use Popen, but PIPE is not defined. I used
2.5.1, 2.5.2, Python 2.6a3+ (trunk:63576, May 24 2008, 12:13:40), it's
always the same. What am I missing ?

Thanks
Mathieu
Jun 27 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Mathieu Prevot schrieb:
Hi

I import subprocess and use Popen, but PIPE is not defined. I used
2.5.1, 2.5.2, Python 2.6a3+ (trunk:63576, May 24 2008, 12:13:40), it's
always the same. What am I missing ?
Without showing code, it's hard to know. A guess is: if you use

import subprocess
then use
subprocess.PIPE

Or if using

from subprocess import Popen

make sure to do

from subprocess import Popen, PIPE

Diez
Jun 27 '08 #2

P: n/a
On Sat, 24 May 2008 14:09:07 +0200,Mathieu Prevot wrote:
Hi

I import subprocess and use Popen, but PIPE is not defined. I used
2.5.1, 2.5.2, Python 2.6a3+ (trunk:63576, May 24 2008, 12:13:40), it's
always the same. What am I missing ?

Thanks
Mathieu
Try subprocess.PIPE.
Jun 27 '08 #3

P: n/a
2008/5/24 Diez B. Roggisch <de***@nospam.web.de>:
Mathieu Prevot schrieb:
>>
Hi

I import subprocess and use Popen, but PIPE is not defined. I used
2.5.1, 2.5.2, Python 2.6a3+ (trunk:63576, May 24 2008, 12:13:40), it's
always the same. What am I missing ?

Without showing code, it's hard to know. A guess is: if you use

import subprocess
then use
subprocess.PIPE

Or if using

from subprocess import Popen

make sure to do

from subprocess import Popen, PIPE

Diez
Indeed... thank you !

Mathieu
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.