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

0.19.2 ModuleNotFoundError: No module named 'diffusers.utils.dummy_torch_and_transformers_and_objects' #4356

Closed
npuichigo opened this issue Jul 29, 2023 · 9 comments
Assignees
Labels
bug Something isn't working stale Issues that haven't received updates

Comments

@npuichigo
Copy link

Describe the bug

ModuleNotFoundError: No module named 'diffusers.utils.dummy_torch_and_transformers_and_objects'

Reproduction

install 0.19.2 version of diffusers with python 3.10

Logs

No response

System Info

  • diffusers version: 0.18.2
  • Platform: Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
  • Python version: 3.10.12
  • PyTorch version (GPU?): 2.0.1+cu117 (True)
  • Huggingface_hub version: 0.14.1
  • Transformers version: not installed
  • Accelerate version: not installed
  • xFormers version: not installed
  • Using GPU in script?:
  • Using distributed or parallel set-up in script?:

Who can help?

No response

@npuichigo npuichigo added the bug Something isn't working label Jul 29, 2023
@blueclowd
Copy link

Encountered the same issue with latest diffuser package. The closest that can be found seems to be dummy_torch_and_transformers_objects.py

@raguiar2
Copy link

raguiar2 commented Jul 29, 2023

I'm not sure what the bug is in the more recent version, but in this specific case where I ran into this, downgrading to v0.18.2 worked for me as a stopgap fix.

@patrickvonplaten
Copy link
Contributor

Hmm that's interesting - can you post a reproducible? Investigating

@patrickvonplaten
Copy link
Contributor

Thanks for reporting this was a bad file naming and is fixed in: https://pypi.org/project/diffusers/0.19.3/

Can you check the new release?

@patrickvonplaten
Copy link
Contributor

@sayakpaul any idea why this wasn't caught by the new "import" pipeline classes test: https://github.com/huggingface/diffusers/pull/4276/files -> this should have been caught here. Can we maybe try to improve the test?

@sayakpaul
Copy link
Member

Here's what I did:

  1. Cloned git clone -b v0.19.2-patch https://github.com/huggingface/diffusers.
  2. Ran: cd diffusers pip install pytest && pip install -e ..
  3. Ran: pytest diffusers/tests/others/test_dependencies.py. It did reproduce the error. Not really sure why it didn't show up on the CI.

@patrickvonplaten
Copy link
Contributor

Interesting! I can confirm that the test indeed produces an error when following the above steps.

@DN6 could you maybe take a look here?

@DN6 DN6 self-assigned this Aug 1, 2023
@github-actions github-actions bot added the stale Issues that haven't received updates label Aug 28, 2023
@huggingface huggingface deleted a comment from github-actions bot Aug 29, 2023
@patrickvonplaten patrickvonplaten removed the stale Issues that haven't received updates label Aug 29, 2023
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot added the stale Issues that haven't received updates label Oct 18, 2023
@ElodiEdina
Copy link

Hi

I launch SD1.5 with Stability Matrix but on the console, while the program is launched, it says

Error loading script: optimize.py

Error loading script: sd2pyke.py

Error loading script: _utils.py

Error loading script: export.py

and

ModuleNotFoundError: No module named 'diffusers'

ModuleNotFoundError: No module named 'imohash'

ModuleNotFoundError: No module named 'yaspin'

ModuleNotFoundError: No module named '_utils'

Is it 'normal' ?
And if it's not, how to fix it, please ?

SDM1
SDM2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Issues that haven't received updates
Projects
None yet
Development

No branches or pull requests

7 participants