-
Notifications
You must be signed in to change notification settings - Fork 319
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
[BUG] cannot import name '_imaging' from 'PIL' #154
Comments
I'm having the same issue in us-west-2 |
It looks like Pillow no longer supports _imaging. See the bottom warning https://pillow.readthedocs.io/en/4.2.x/installation.html |
Thanks @DylanAlbertazzi , does that mean there's nothing wrong with the layer? |
@keithrozario yep. The layer still works fine 🙂 (on 3.7 in us-west-2) Side question... Do you know if layers work with lambda function running on greengrass for IoT devices? I'm guessing you can't because I can't get them to work and don't see any documentation mentioning anything about it. |
I am not importing _imaging @DylanAlbertazzi |
It's not working with me with a very similar setup. There is not much error context as well. |
if anyone else sees this issue, this was my problem: |
I can agree & use the pillow layer from here: |
Can someone please confirm if changing the python runtime to 3.8 still works? cause I did that but I'm still getting the same error. |
same, not sure what to do |
@kxngdavid @jasonrdunne Did you got to resolve it? |
This medium post helped me resolve it. |
Thanks Jason!
Really appreciate!
…On Sun, 21 Jan 2024 at 11:38 PM, Adorp94 ***@***.***> wrote:
This medium post
<https://derekurizar.medium.com/aws-lambda-python-pil-cannot-import-name-imaging-11b2377d31c4>
helped me resolve it.
I had to change the python runtime to 3.8 (both on lambda and the layer).
And then add the layer from the ARN, there's a list metioned on the medium
post.
—
Reply to this email directly, view it on GitHub
<#154 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKOLVYFVS3OHAHUQLSQJQ5DYPWRG7AVCNFSM43O66ZNKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJQGI4DANJTGMZA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
AWS will block python3.8 from function create/update soon. So, I'm using python3.9. The layer from the repo working well (This ARN (I did pip install pillow in the linux env via docker, All other packages work fine except for pillow) |
|
Describe the bug
I am getting the following error when importing anything from
PIL
using the Pillow ARN.Layer Version ARN:
Pillow 8.2.0 in
ap-southeast-1
for Python 3.8.arn:aws:lambda:ap-southeast-1:770693421928:layer:Klayers-python38-Pillow:10
Framework:
Just console.
Additional context
Here is my code:
Same thing when I do:
I am using the
boto3
layer, and this one is working fine when I import it.The text was updated successfully, but these errors were encountered: