-
Notifications
You must be signed in to change notification settings - Fork 395
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
AttributeError: module 'PIL.Image' has no attribute 'Resampling' #111
Comments
I believe you just need an upgraded verison of pillow. Have you tried pillow>=9.1.0 per the requirements file? |
Yes, I have tried 9.4.0 |
9.4 has taken out the deprecated method to call this It works if you use pillow 9.1 to 9.3 |
Nope, unfortunately it doesn't. |
How are you using it? I was running riffusion in a colab notebook just a few hours ago. Anyway, this can be fixed. I can find some time for a PR later this week if this will still be up for grabs |
I used colab as well. |
Restart the kernel after installing older version on pillow |
I did |
Hi @tralala87 can you share a link to your colab notebook perhaps, or share steps to reproduce this issue? I'd be happy to take a look. |
@tralala87 Thanks! I was able to reproduce the issue. Commenting out the last line in the #@title Install requirements (you may need to restart the kernel after this)
!pip install -r requirements.txt
!pip install gradio
# !pip install --upgrade pillow For some reason that last line was causing issues for me. I recommend running import PIL
PIL.__version__ and making sure the output is |
I still get the error. |
Fix incoming! |
Same error here!
|
By default colab has a version of Pillow installed that does not work. You need to restart your runtime in colab after running:
|
Getting this error:
AttributeError: module 'PIL.Image' has no attribute 'Resampling'
Any idea how to solve this?
The text was updated successfully, but these errors were encountered: