Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

No module named custom_module #22

Open
roger-yu-ds opened this issue Oct 10, 2021 · 0 comments
Open

No module named custom_module #22

roger-yu-ds opened this issue Oct 10, 2021 · 0 comments

Comments

@roger-yu-ds
Copy link

I'm trying to import the ExpectColumnMaxToBeBetweenCustom Expectation from this tutorial, but No module named 'custom_module'.

I have copied the file from Complete Example into the great_expectations/plugins directory.
image

For the suggested line from custom_module import ExpectColumnMaxToBeBetweenCustom to work there are few more steps required:

  1. The column_custom_max_expectation.py file should be in great_expectations/plugins/custom_module instead of great_expectations/plugins
  2. In great_expectations/plugins/custom_module, there should be an __init__.py file
  3. In the __init__.py file there should be the line from .column_custom_max_expectation import ExpectColumnMaxToBeBetweenCustom
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant