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

ImportError: cannot import name 'find_loader' from 'importlib' #68

Open
rohit-panda-styldod opened this issue Dec 4, 2024 · 1 comment

Comments

@rohit-panda-styldod
Copy link

rohit-panda-styldod commented Dec 4, 2024

Have installed dependencies from https://github.com/ali-vilab/ACE/blob/main/requirements.txt, getting this error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ubuntu/miniconda3/envs/ACEconda.1024.v2/lib/python3.12/site-packages/scepter/__init__.py", line 6, in <module>
    from scepter.modules import data, model, opt, solver, transform, utils
  File "/home/ubuntu/miniconda3/envs/ACEconda.1024.v2/lib/python3.12/site-packages/scepter/modules/__init__.py", line 3, in <module>
    from scepter.modules import (data, inference, model, opt, solver, transform,
  File "/home/ubuntu/miniconda3/envs/ACEconda.1024.v2/lib/python3.12/site-packages/scepter/modules/inference/__init__.py", line 3, in <module>
    from scepter.modules.inference.diffusion_inference import DiffusionInference
  File "/home/ubuntu/miniconda3/envs/ACEconda.1024.v2/lib/python3.12/site-packages/scepter/modules/inference/diffusion_inference.py", line 11, in <module>
    from scepter.modules.model.network.diffusion.diffusion import GaussianDiffusion
  File "/home/ubuntu/miniconda3/envs/ACEconda.1024.v2/lib/python3.12/site-packages/scepter/modules/model/__init__.py", line 4, in <module>
    from scepter.modules.model import (backbone, embedder, head, loss, metric,
  File "/home/ubuntu/miniconda3/envs/ACEconda.1024.v2/lib/python3.12/site-packages/scepter/modules/model/backbone/__init__.py", line 3, in <module>
    from scepter.modules.model.backbone import (ace, autoencoder, flux, image, cogvideox,
  File "/home/ubuntu/miniconda3/envs/ACEconda.1024.v2/lib/python3.12/site-packages/scepter/modules/model/backbone/unet/__init__.py", line 3, in <module>
    from scepter.modules.model.backbone.unet.unet_module import (DiffusionUNet,
  File "/home/ubuntu/miniconda3/envs/ACEconda.1024.v2/lib/python3.12/site-packages/scepter/modules/model/backbone/unet/unet_module.py", line 9, in <module>
    from scepter.modules.model.backbone.unet.unet_utils import (
  File "/home/ubuntu/miniconda3/envs/ACEconda.1024.v2/lib/python3.12/site-packages/scepter/modules/model/backbone/unet/unet_utils.py", line 7, in <module>
    from importlib import find_loader
ImportError: cannot import name 'find_loader' from 'importlib'

The below line itself is causing the error on my end
from scepter.modules.utils.config import Config

This error doesn't appear while working with Scepter 1.2.0, i.e. which was there in the dependencies before the last commit occurred in the ACE repo

Screenshot 2024-12-04 at 1 35 40 PM
@yaosheng216
Copy link
Contributor

This error may be related to your python version, please make sure the python version is consistent with mine, or try another version.
截屏2024-12-05 17 23 34

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