Skip to content

Circular import #98

@rvandewater

Description

@rvandewater

I am trying to add a new dataset but get the following when running the "test command":

(tabzilla) [vandewrp@s-sc-frontend1 TabZilla]$ python tabzilla_data_preprocessing.py --RetroElective
Traceback (most recent call last):
  File "/home/vandewrp/projects/tabzilla/TabZilla/tabzilla_data_preprocessing.py", line 7, in <module>
    from tabzilla_preprocessors_openml import preprocessor_dict
  File "/home/vandewrp/projects/tabzilla/TabZilla/tabzilla_preprocessors_openml.py", line 6, in <module>
    from tabzilla_preprocessor_utils import cv_n_folds, dataset_preprocessor
  File "/home/vandewrp/projects/tabzilla/TabZilla/tabzilla_preprocessor_utils.py", line 8, in <module>
    from TabZilla.tabzilla_preprocessors_openml import preprocessor_dict
  File "/home/vandewrp/projects/tabzilla/TabZilla/tabzilla_preprocessors_openml.py", line 6, in <module>
    from tabzilla_preprocessor_utils import cv_n_folds, dataset_preprocessor
ImportError: cannot import name 'cv_n_folds' from partially initialized module 'tabzilla_preprocessor_utils' (most likely due to a circular import) (/home/vandewrp/projects/tabzilla/TabZilla/tabzilla_preprocessor_utils.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions