This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: subprocess.communicate() does not receive full output from the called process.
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.7
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: juj
Priority: normal Keywords:

Created on 2014-07-25 13:52 by juj, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg223950 - (view) Author: juj (juj) Date: 2014-07-25 13:52
When Python 2.7 executes a Node .js application that prints to stdout and subsequently exits, Python does not capture full output printed by that application.

Steps to repro:
1. Download and unzip
2. Run run_test.bat

Observed result: The .bat script prints:

Executing 'node jsfile.js' directly from command line. The js file outputs:
Line 1
Line 2

Executing 'jsfile.js' via a python script that calls 'node jsfile.js'. Now the js file outputs:
Line 1

Expected result: The second run via invoking from python should also print "Line 2".

Tested on Python v2.7.8 64-bit and Node v0.10.28 on Windows 7 64-bit.
msg224146 - (view) Author: juj (juj) Date: 2014-07-27 17:06
Further testing suggests that this is not a Python issue, but instead an issue in node.js, reported already earlier here

Closing this as invalid.
Date User Action Args
2022-04-11 14:58:06adminsetgithub: 66264
2014-07-27 17:10:10ezio.melottisetstatus: open -> closed
type: behavior
stage: resolved
2014-07-27 17:07:02jujsetresolution: not a bug
2014-07-27 17:06:49jujsetmessages: + msg224146
2014-07-25 13:52:23jujcreate