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

ModuleNotFoundError: No module named 'diffusers.pipeline_utils' #162

Open
hfabio opened this issue Nov 27, 2023 · 1 comment
Open

ModuleNotFoundError: No module named 'diffusers.pipeline_utils' #162

hfabio opened this issue Nov 27, 2023 · 1 comment

Comments

@hfabio
Copy link

hfabio commented Nov 27, 2023

I'm using WSL2 with Ubuntu 20.04.6 LTS
Using anaconda 23.3.1 and python 3.9.16

  • pulled main branch
  • installed dependencies pip install -r requirements.txt
  • ran python -m riffusion.streamlit.playground
  • selected text-to-audio and got this error:
2023-11-27 19:21:05.990 Uncaught app exception
Traceback (most recent call last):
  File "/home/hfabio/miniconda3/envs/python3/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
    exec(code, module.__dict__)
  File "/home/hfabio/Projetos/ai/riffusion/riffusion/riffusion/streamlit/playground.py", line 34, in <module>
    render()
  File "/home/hfabio/Projetos/ai/riffusion/riffusion/riffusion/streamlit/playground.py", line 28, in render
    module = __import__(PAGES[page], fromlist=["render"])
  File "/home/hfabio/Projetos/ai/riffusion/riffusion/riffusion/streamlit/tasks/text_to_audio.py", line 6, in <module>
    from riffusion.streamlit import util as streamlit_util
  File "/home/hfabio/Projetos/ai/riffusion/riffusion/riffusion/streamlit/util.py", line 15, in <module>
    from riffusion.riffusion_pipeline import RiffusionPipeline
  File "/home/hfabio/Projetos/ai/riffusion/riffusion/riffusion/riffusion_pipeline.py", line 14, in <module>
    from diffusers.pipeline_utils import DiffusionPipeline
ModuleNotFoundError: No module named 'diffusers.pipeline_utils'
/home/hfabio/miniconda3/envs/python3/lib/python3.9/site-packages/streamlit/watcher/local_sources_watcher.py:177: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use `backend` keyword with load/save/info function, instead of calling the udnerlying implementation directly.
  lambda m: [p for p in m.__path__._path],

I've tried reinstalling diffusers and didn't solve the problem

pip uninstall diffusers
pip install diffusers
pip install -r requirements.txt
@mysticallego
Copy link

changing the line in "/home/hfabio/Projetos/ai/riffusion/riffusion/riffusion/riffusion_pipeline.py" from
from diffusers.pipeline_utils import DiffusionPipeline
to
from diffusers.pipelines.pipeline_utils import DiffusionPipeline
worked for me I think

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