[issue8056] Piped parent's multiprocessing.Process children cannot write to stdout

2010-06-30 Thread Vojtech Fried

Vojtech Fried  added the comment:

Thanks, the registry change proposed in the article fixed it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8056] Piped parent's multiprocessing.Process children cannot write to stdout

2010-06-30 Thread Tim Golden

Tim Golden  added the comment:

That's (still...) a known issue with Windows file associations and 
redirects:

   http://support.microsoft.com/kb/321788

In theory it was fixed way back when. In practise...

On 30/06/2010 15:04, Vojtech Fried wrote:
>
> Vojtech Fried  added the comment:
>
> I have the same problem. Not only for piping but also when using redirection, 
> e.g. 'stdout.py>  log.txt'.
> Interesting thing is that when I run it like 'python.exe stdout.py>  log.txt' 
> it works. I don't see why this should matter but apparently it does. ".py" 
> files are registered to be open with '"C:\Python26\python.exe" "%1" %*'.
> My system: WinXp SP3, Python 2.6.5
>
> --
> nosy: +Vojtech.Fried
>
> ___
> Python tracker
> 
> ___
> ___
> Python-bugs-list mailing list
> Unsubscribe: 
> http://mail.python.org/mailman/options/python-bugs-list/mail%40timgolden.me.uk

--
nosy: +tim.golden

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8056] Piped parent's multiprocessing.Process children cannot write to stdout

2010-06-30 Thread Vojtech Fried

Vojtech Fried  added the comment:

I have the same problem. Not only for piping but also when using redirection, 
e.g. 'stdout.py > log.txt'.
Interesting thing is that when I run it like 'python.exe stdout.py > log.txt' 
it works. I don't see why this should matter but apparently it does. ".py" 
files are registered to be open with '"C:\Python26\python.exe" "%1" %*'. 
My system: WinXp SP3, Python 2.6.5

--
nosy: +Vojtech.Fried

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8056] Piped parent's multiprocessing.Process children cannot write to stdout

2010-03-09 Thread Vilnis Termanis

Vilnis Termanis  added the comment:

I tried to reproduce / narrow-down the cause of this with a debug build in a VM 
but couldn't reproduce the behaviour (neither with debug nor with standard 
2.6.4 binary). I have to conclude that there is something perculiar with my 
native Windows installation (since in both VM and natively Python is using 
exactly the same DLLs and ).

Apologies for wasting your time.

--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8056] Piped parent's multiprocessing.Process children cannot write to stdout

2010-03-04 Thread Vilnis Termanis

New submission from Vilnis Termanis :

Affects Win32 only (tested under Ubuntu 9.10-64 and XP-32 with v2.6.4). If 
script output is piped, child processes created via multiprocessing.Process 
cannot write to stdout. Also, trying to call stdout.flush() in child processes 
causes IOError.

Normal behaviour

C:\>stdout.py
[Parent] stdout: ', mode 'w' at 0x00A54070>
[Parent] message via stdout

[Child] stdout: ', mode 'w' at 0x00A54070>
[Child] message via stdout

Piped behaviour (same result if redirecting to file)
---
C:\>stdout.py | cat
[Parent] stdout: ', mode 'w' at 0x00A54070>
[Parent] message via stdout

[Child] stdout: ', mode 'w' at 0x00A54070>
Process Process-1:
Traceback (most recent call last):
  File "C:\Python26\lib\multiprocessing\process.py", line 232, in _bootstrap
self.run()
  File "C:\Python26\lib\multiprocessing\process.py", line 88, in run
self._target(*self._args, **self._kwargs)
  File "C:\stdout.py", line 18, in child
stdout.flush()
IOError: [Errno 9] Bad file descriptor

--
components: Library (Lib), Windows
files: stdout.py
messages: 100390
nosy: vilnis.termanis
severity: normal
status: open
title: Piped parent's multiprocessing.Process children cannot write to stdout
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file16432/stdout.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com