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

Circular import #98

Open
rvandewater opened this issue Feb 26, 2024 · 1 comment
Open

Circular import #98

rvandewater opened this issue Feb 26, 2024 · 1 comment

Comments

@rvandewater
Copy link

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
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants