-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
PIL.UnidentifiedImageError: cannot identify image file (Custom installation in other directories) #7575
Comments
I'm not convinced that Googling, https://stackoverflow.com/a/23435273/4093019 recognises that normal imports aren't going to work this way. https://stackoverflow.com/a/19404371/4093019 and https://stackoverflow.com/a/76161892/4093019 suggest that you add the new directory to your path. |
In AWS s3 lambda, we can't run the pip command to install our packages, we have to package the dependencies with the code. As in the example above, with the dependencies in the same directory. |
@deliangyang you still can configure |
Thanks, it's work. Why don't we use relative path to fix it? |
As of all other imports in |
Thank you for your time. |
What did you do?
What did you expect to happen?
It imports plugins correctly
What actually happened?
It can't import plugins, when I didn't install Pillow into system packages directories
What are your OS, Python and Pillow versions?
The real format of the image is webp, you need to import PIL.WebPImagePlugin. The image is as follows:
The text was updated successfully, but these errors were encountered: