I'm working on creating a Python/PySpark library using VS Code. My goal is to debug in VS Code and create a .whl
package to be installed in a Databricks cluster. I face the following situations:
- if I use
from checkenginelib.pysparkdq._constraints._Constraint import _Constraint
I get aModuleNotFoundError
in VS Code and a module not found error in Databricks - if I use
from pysparkdq._constraints._Constraint import _Constraint
I get aModuleNotFoundError
in VS Code but all imports work well in Databricks - if I use
from _constraints._Constraint import _Constraint
I get no error in VS Code but I get a module not found error in Databricks