mlverse / pysparklyr

Extension to {sparklyr} that allows you to interact with Spark & Databricks Connect
https://spark.posit.co/deployment/databricks-connect.html
Other
14 stars 3 forks source link

ModuleNotFoundError: No module named '_ctypes' #82

Closed edgararuiz closed 1 year ago

edgararuiz commented 1 year ago

Message:

Error:
! Issue loading Python library 'databricks.connect'
Error in py_module_import(module, convert = convert) : 
  ModuleNotFoundError: No module named '_ctypes'
Run `reticulate::py_last_error()` for details.
Run `rlang::last_trace()` to see where the error occurred.

Solution:

If you are in a Linux environment, especially on RHEL, your server is probably missing libffi and its devel version, install, and try again. Here an example:

sudo yum install -y libffi libffi-devel