naszilla / tabzilla

Apache License 2.0
114 stars 26 forks source link

Circular import #98

Open rvandewater opened 7 months ago

rvandewater commented 7 months ago

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)
duncanmcelfresh commented 6 months ago

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