Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError After Changing the Module Name for TableInputRWS.options.template_dataset #115

Open
Sonia-96 opened this issue Aug 27, 2024 · 0 comments

Comments

@Sonia-96
Copy link
Contributor

Sonia-96 commented Aug 27, 2024

Describe the bug
The ModuleNotFoundError error is triggered after changing the module name for TableInput.RWS.options.template_dataset.

To Reproduce
Steps to reproduce the behavior:

  1. Create a workflow step:
    from .read_tree_class_to_df import read_tree_class_to_df
    
    ......
    
    step = TableInputRWS(
          name='Step Name',
          order=10,
          help="Enter the following parameters for each type",
          options={
              'dataset_title': 'Dataset Title',
              'template_dataset': read_tree_class_to_df,
              'read_only_columns': ['ID', 'Category'],
          },
          active_roles=[Roles.ORG_USER, Roles.ORG_ADMIN]
      )
      workflow.steps.append(step)
    
  2. Run the workflow
  3. Change the filename for read_tree_class_to_df to read_tree_class_to_df_1
  4. After tethys finishes reloading, refresh the page, click the "Workflow" tab. You will see that the page remains in loading status, and an error message ModuleNotFoundError: No module named 'tribs_adapter.workflows.prepare_land_cover_parameters.read_tree_class_to_df' on the backend:
    image

Expected behavior
The workflows can show up and be executed normally

Screenshots
If applicable, add screenshots to help explain your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant