Skip to content

Circular import #98

Open
Open

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)

Activity

  1. duncanmcelfresh commented on Mar 22, 2024

    @duncanmcelfresh
    Collaborator

    thanks for flagging this issue, @rvandewater we will look into this. please post if you solve this before we do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions