[New-bugs-announce] [issue41753] subprocess.run on windows does not convert path to string

Kaushik G report at bugs.python.org
Wed Sep 9 13:54:01 EDT 2020


New submission from Kaushik G <kaushik.ghose at gmail.com>:

a call of the form `subprocess.run([x, y, z])` where one of the elements is a `pathlib.Pat`h fails on windows because the path is not converted to a string as it should. This works fine (as expected) on macOS and Linux.

A typical error message is:

`TypeError: argument of type 'WindowsPath' is not iterable`

----------
components: Windows
messages: 376651
nosy: kaushik.ghose, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: subprocess.run on windows does not convert path to string
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41753>
_______________________________________


More information about the New-bugs-announce mailing list