PySpark custom UDF ModuleNotFoundError: No module named
stackoverflow.com › questions › 59741832Jan 14, 2020 · 1. My project has sub packages and then a sub package pkg subpckg1 subpkg2 .py 2. from my Main.py im calling a UDF which will be calling a function in subpkg2(.py) file 3 .due to more nesting functions and inter communication UDF's with lot other functions some how spark job couldn't find the subpkg2 files solution : create a egg file of the pkg and send via --py-files.