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

AttributeError: module 'PIL.Image' has no attribute 'ExifTags' #3687

Closed
ajulyav opened this issue Jun 28, 2024 · 2 comments
Closed

AttributeError: module 'PIL.Image' has no attribute 'ExifTags' #3687

ajulyav opened this issue Jun 28, 2024 · 2 comments
Labels
question Further information is requested

Comments

@ajulyav
Copy link

ajulyav commented Jun 28, 2024

What is your question?

When running an example of examples/quickstart-pytorch, it shows the error of AttributeError: module 'PIL.Image' has no attribute 'ExifTags'
all dependencies are installed, i.e. tqdm==4.66.3, PIL == 9.3.0
The error pops up at the line: for batch in tqdm(trainloader, "Training"): for batch in tqdm(testloader, "Testing"):

@ajulyav ajulyav added the question Further information is requested label Jun 28, 2024
@danieljanes
Copy link
Member

This might be due to an old version of PIL, could you try installing PIL >= 9.4.0?

Related: huggingface/datasets#6881

@sunyeongan
Copy link

sunyeongan commented Aug 27, 2024

After running the following command, pip install pillow==9.4.0
the error does not occur!

@ajulyav ajulyav closed this as completed Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants