Open ganesh3 opened 1 year ago
You aren't going to be able to run tkinter on AWS lambda. Tkinter requires a display.
Yes, I understand. I am not using tkinter in my project at all. My current understanding is that it is required by pillow package which is a dependency for torchvision. Torchvision being a very common package for deployment, I believe there needs to be a solution to it.
Just tested pip install torchvision
inside container and it works with FROM public.ecr.aws/lambda/python:3.8
I hit this error in Lambda due to an overly helpful CoPilot import statement...
I'm facing same issue here I'm unable to run lambda
Hi,
I am trying to create a docker containers that will run on lambda but I continuously get the error: [Unable to import module 'app': No module named '_tkinter'", "errorType": "Runtime.ImportModuleError" on running the container.
I am sharing the my Dockerfile below:
The requirements.txt:
The tkinter package is a basic package in python and hence required but even after installing it is not able to find the package. I logged in to the docker container using the below:
Then I logged into the python shell and ran:
I ran the following in the python shell:
I also ran the following to install tkinter:
Nothing seems to work and looks like the was lambda python runtime needs to have this package to run python smoothly. Can someone please suggest?
Warm Regards Ganesh Bhat