tabzilla icon indicating copy to clipboard operation
tabzilla copied to clipboard

Circular import

Open rvandewater opened this issue 1 year ago • 1 comments

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)

rvandewater avatar Feb 26 '24 15:02 rvandewater

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

duncanmcelfresh avatar Mar 22 '24 18:03 duncanmcelfresh