stable-diffusion-videos icon indicating copy to clipboard operation
stable-diffusion-videos copied to clipboard

import generate_images error

Open zencodess opened this issue 1 year ago • 4 comments

When I just try to run the notebook, I get the below error while importing Interface..

Could you please help?

ImportError Traceback (most recent call last) in <cell line: 3>() 1 import torch 2 ----> 3 from stable_diffusion_videos import Interface 4 from stable_diffusion_videos import StableDiffusionWalkPipeline 5

2 frames /usr/local/lib/python3.10/dist-packages/stable_diffusion_videos/init.py in getattr(name) 73 elif name in attr_to_modules: 74 submod_path = f"{package_name}.{attr_to_modules[name]}" ---> 75 submod = importlib.import_module(submod_path) 76 attr = getattr(submod, name) 77

/usr/lib/python3.10/importlib/init.py in import_module(name, package) 124 break 125 level += 1 --> 126 return _bootstrap._gcd_import(name[level:], package, level) 127 128

/usr/local/lib/python3.10/dist-packages/stable_diffusion_videos/app.py in 3 import gradio as gr 4 ----> 5 from stable_diffusion_videos import generate_images 6 7

ImportError: cannot import name 'generate_images' from 'stable_diffusion_videos' (/usr/local/lib/python3.10/dist-packages/stable_diffusion_videos/init.py)

zencodess avatar Jun 16 '24 12:06 zencodess

Oh hmm I thought I fixed this recently. I'll have a look when I get a chance sorry about that. Thanks for reporting ❤️

nateraw avatar Jun 18 '24 03:06 nateraw

Just got around to looking at this. Seems its because package failed to publish to PyPi upon release. Didn't notice that. @Borda any chance this has something to do with changes you had made?

See this failed action: https://github.com/nateraw/stable-diffusion-videos/actions/runs/8979155015/job/24660699159

nateraw avatar Jun 27 '24 01:06 nateraw

ah actually could be an authentication issue? I believe I was using username + pass before, perhaps they've changed something and you have to use API keys now?

nateraw avatar Jun 27 '24 01:06 nateraw

Yes authentication...

Borda avatar Jun 27 '24 05:06 Borda

issue fixed on main still haven't had time to fix pypi auth

nateraw avatar Jul 16 '24 21:07 nateraw

issue fixed on main branch? I still meet this problem.

Traceback (most recent call last):
  File "/root/share/stable-diffusion-videos/makevideo.py", line 1, in <module>
    from stable_diffusion_videos import StableDiffusionWalkPipeline
ImportError: cannot import name 'StableDiffusionWalkPipeline' from 'stable_diffusion_videos' (/root/share/stable-diffusion-videos/stable_diffusion_videos/__init__.py)

and pypi is still problematic.

If author could upload a new tag, it will be great.

LukeLIN-web avatar Sep 17 '24 00:09 LukeLIN-web

main branch works fine right now, but haven't shipped to PyPi :/ . Happy to do that but authentication to PyPi has changed and I haven't found time to fix it yet. 😢

@LukeLIN-web that import should work just fine if you installed main branch. Check the colab from the README - it works I just tried it.

nateraw avatar Sep 17 '24 23:09 nateraw

Ok this should be resolved now, finally got around to pypi publish. 0.9.1 on pypi works :)

nateraw avatar Sep 21 '24 05:09 nateraw