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

subprocess.communicate() does not receive full output from the called process. #66264

Closed
juj mannequin opened this issue Jul 25, 2014 · 2 comments
Closed

subprocess.communicate() does not receive full output from the called process. #66264

juj mannequin opened this issue Jul 25, 2014 · 2 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@juj
Copy link
Mannequin

juj mannequin commented Jul 25, 2014

BPO 22066

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2014-07-27.17:10:10.884>
created_at = <Date 2014-07-25.13:52:23.912>
labels = ['invalid', 'type-bug', 'library']
title = 'subprocess.communicate() does not receive full output from the called process.'
updated_at = <Date 2014-07-27.17:10:10.883>
user = 'https://bugs.python.org/juj'

bugs.python.org fields:

activity = <Date 2014-07-27.17:10:10.883>
actor = 'ezio.melotti'
assignee = 'none'
closed = True
closed_date = <Date 2014-07-27.17:10:10.884>
closer = 'ezio.melotti'
components = ['Library (Lib)']
creation = <Date 2014-07-25.13:52:23.912>
creator = 'juj'
dependencies = []
files = []
hgrepos = []
issue_num = 22066
keywords = []
message_count = 2.0
messages = ['223950', '224146']
nosy_count = 1.0
nosy_names = ['juj']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue22066'
versions = ['Python 2.7']

@juj
Copy link
Mannequin Author

juj mannequin commented Jul 25, 2014

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 http://clb.demon.fi/bugs/python_proc_bug.zip
  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.

@juj juj mannequin added the stdlib Python modules in the Lib dir label Jul 25, 2014
@juj
Copy link
Mannequin Author

juj mannequin commented Jul 27, 2014

Further testing suggests that this is not a Python issue, but instead an issue in node.js, reported already earlier here nodejs/node-v0.x-archive#1669

Closing this as invalid.

@juj juj mannequin added the invalid label Jul 27, 2014
@ezio-melotti ezio-melotti added the type-bug An unexpected behavior, bug, or error label Jul 27, 2014
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant