Reticulate & pyspark: [WinError 6] The handle is invalid

Running the following lines in RStudio, I get the following error: OSError: [WinError 6] The handle is invalid.

import pyspark.pandas as ps

s = ps.Series([1, 2, 3, 4])

Results of reticulate::py_config():

python:         C:/Program Files/Python310/python.exe
libpython:      C:/Program Files/Python310/python310.dll
pythonhome:     C:/Program Files/Python310
version:        3.10.1 (tags/v3.10.1:2cd268a, Dec  6 2021, 19:10:37) [MSC v.1929 64 bit (AMD64)]
Architecture:   64bit
numpy:          C:/Users/capta/AppData/Roaming/Python/Python310/site-packages/numpy
numpy_version:  1.22.1

NOTE: Python version was forced by RETICULATE_PYTHON

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.