[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-03-06 Thread Geoff Alexander
Geoff Alexander added the comment: The [WinError 87] does seems to be caused by the current directory's name being too long. The value of len(os.getcwd())is 260 when the exception occurs. The failing call was subprocess.check_output("git ls-files", shell=True). I've open Issue 36213 to

[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: > Geoff, we probably need a new issue for this, Yes please, this issue is closed. > Prior to Windows 10, the working directory is limited to MAX_PATH - 2 (258) > characters. (...) CreateProcessW fails with ERROR_INVALID_PARAMETER (87). Geoff: for your bug

[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-03-05 Thread Eryk Sun
Eryk Sun added the comment: Geoff, we probably need a new issue for this, but first, please report the value of len(os.getcwd()) in a case where check_output() fails. Prior to Windows 10, the working directory is limited to MAX_PATH - 2 (258) characters. (Windows uses the last two

[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-03-04 Thread Geoff Alexander
Geoff Alexander added the comment: Here's the trace back I get from Python 3.7.2: Traceback (most recent call last): File "migration.py", line 169, in migrate() File "migration.py", line 80, in migrate rtc.acceptchangesintoworkspace(rtc.getchangeentriestoaccept(changeentries,

[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-03-04 Thread Geoff Alexander
Geoff Alexander added the comment: I've recently hit this problem (or one that has the same symptoms): ``` Traceback (most recent call last): File "migration.py", line 169, in migrate() File "migration.py", line 80, in migrate

[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-01-09 Thread STINNER Victor
STINNER Victor added the comment: Ok, you're welcome ;-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-01-09 Thread MaximilianSP
Change by MaximilianSP : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-01-09 Thread MaximilianSP
MaximilianSP added the comment: Hello Victor, a new version of the code has been released and I now get another error. I will mark the issue as resolved. Thank you for the quick response! -- resolution: -> not a bug ___ Python tracker

[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-01-07 Thread MaximilianSP
MaximilianSP added the comment: Thank you for the input Victor. I will need a little time to dig in the code and check the attributes. I am fairly new to python :) You are right that the code doesn't crash. Just I cannot continue with the following steps. That is why I thought it crashed.

[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: "Issue with execute_child in startupinfo" I don't think that the issue is related to startupinfo at all, since you don't specify this parameter in your check_output() call. Python shows you "startupinfo)" in the traceback because the function call takes