You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have latest preview of RStudio 1.2.1578 and in an RMarkdown document I am running python subprocess (gradle.bat is in path). This command works in python cmd env but not in rstudio.
Python Version:
3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]
Gradle Version:
OSError: [WinError 6] The handle is invalid
Detailed traceback:
File "", line 1, in
File "C:\PYTHON2\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\PYTHON2\lib\subprocess.py", line 728, in init
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
File "C:\PYTHON~2\lib\subprocess.py", line 1025, in _get_handles
p2cread = _winapi.GetStdHandle(_winapi.STD_INPUT_HANDLE)
The text was updated successfully, but these errors were encountered:
I have latest preview of RStudio 1.2.1578 and in an RMarkdown document I am running python subprocess (gradle.bat is in path). This command works in python cmd env but not in rstudio.
import sys,subprocess
print("Python Version:")
print(sys.version)
print("Gradle Version:")
sp = subprocess.run(['gradle.bat','-v'],universal_newlines=True,stdout=subprocess.PIPE)
get an invalid handle error:
Python Version:
3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]
Gradle Version:
OSError: [WinError 6] The handle is invalid
Detailed traceback:
File "", line 1, in
File "C:\PYTHON
2\lib\subprocess.py", line 472, in run2\lib\subprocess.py", line 728, in initwith Popen(*popenargs, **kwargs) as process:
File "C:\PYTHON
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
File "C:\PYTHON~2\lib\subprocess.py", line 1025, in _get_handles
p2cread = _winapi.GetStdHandle(_winapi.STD_INPUT_HANDLE)
The text was updated successfully, but these errors were encountered: