subprocess.check_output() fails with OSError: [WinError 87] when current directory name is too long
Open
Nobody has claimed this yet.
OS-windows
stdlib
topic-subprocess
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
| BPO | 36213 |
|---|---|
| Nosy | @pfmoore, @tjguk, @zware, @eryksun, @zooba |
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 = None
created_at = <Date 2019-03-06.14:37:16.359>
labels = ['type-bug', '3.8', '3.9', '3.10', 'library', 'OS-windows']
title = 'subprocess.check_output() fails with OSError: [WinError 87] when current directory name is too long'
updated_at = <Date 2021-03-16.10:48:05.183>
user = 'https://bugs.python.org/GeoffAlexander'
bugs.python.org fields:
activity = <Date 2021-03-16.10:48:05.183>
actor = 'vstinner'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)', 'Windows']
creation = <Date 2019-03-06.14:37:16.359>
creator = 'Geoff.Alexander'
dependencies = []
files = []
hgrepos = []
issue_num = 36213
keywords = []
message_count = 7.0
messages = ['337307', '337309', '337314', '337315', '337357', '337522', '388811']
nosy_count = 6.0
nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'eryksun', 'steve.dower', 'Geoff.Alexander']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue36213'
versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the subprocess.check_output entry point and its Windows-specific process-launch behavior, using the long current-directory name described in the issue as the reproduction case. Confirm the WinError 87 failure and define done as successful output capture in that scenario, with regression coverage added to the relevant existing subprocess tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100