Popen expect a list of strings for non-shell calls and a string for shell calls.
Call subprocess.Popen with shell=True:
process = subprocess.Popen(command, stdout=tempFile, shell=True)
Hopefully this solves your issue.
This issue is listed here:
https://bugs.python.org/issue17023
More Related Contents:
- How to match a string to pattern “Foo-Bar”, where Bar can be any element of a list? [closed]
- Searching for IP addresses in a file
- Swapping variable places inside if throws an error
- How to remove English words from a file containing Dari words?
- How can I read inputs as numbers?
- Behavior of exec function in Python 2 and Python 3
- Why is a list comprehension so much faster than appending to a list?
- How to print a string at a fixed width?
- How to use pip with Python 3.x alongside Python 2.x
- Why is parenthesis in print voluntary in Python 2.7?
- How can I make a for-loop pyramid more concise in Python? [duplicate]
- Backporting Python 3 open(encoding=”utf-8″) to Python 2
- Could not find a version that satisfies the requirement tensorflow
- Getting only element from a single-element list in Python?
- Why does this not work as an array membership test? [duplicate]
- Accessing attributes on literals work on all types, but not `int`; why? [duplicate]
- Using multiple Python engines (32Bit/64bit and 2.7/3.5)
- Accessing attributes on literals work on all types, but not `int`; why? [duplicate]
- How to print a list with integers without the brackets, commas and no quotes? [duplicate]
- Python regex for unicode capitalized words
- How to create a Python dictionary with double quotes as default quote format?
- PyOpenGL glutInit NullFunctionError
- How to apply a function to each sublist of a list in python?
- Python 3 urllib produces TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str
- Switch between python 2.7 and python 3.5 on Mac OS X
- How to read the last line of a file in Python? [duplicate]
- Multiple keys per value
- Type error Unhashable type:set
- Run process with realtime output to a Tkinter GUI
- What does the slice() function do in Python?