I'm trying to run a Python 3.8 script on Google App Engine that is using pymatting_aot.aot
When running this script on my local Ubuntu machine, it works without any issues, but when I tried to run it on GAE, I got the following error:
Traceback (most recent call last):
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/pymatting_aot/cc.py", line 21, in <module>
import pymatting_aot.aot
ModuleNotFoundError: No module named 'pymatting_aot.aot'
This github link: https://github.com/danielgatis/rembg/issues/35 , shows that I need to install python3-dev to fix the issue via apt-get install -y python3-dev
I've tried sudo apt-get install -y python3-dev on my GAE console and I got:
machine is ephemeral and no system-wide change will persist beyond session end.
To suppress this warning, create an empty ~/.cloudshell/no-apt-get-warning file.
The command will automatically proceed in 5 seconds or on any key.
Visit https://cloud.google.com/shell/help for more information.
********************************************************************************
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-dev is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.
requirements.txt
-f https://download.pytorch.org/whl/torch_stable.html
numpy==1.19.4
torch==1.7.0+cpu
torchvision==0.8.1+cpu
pymatting==1.1.1
scikit-image==0.17.2
waitress==1.4.4
scipy==1.5.4
hsh==1.1.0
flask==1.1.2
filetype==1.0.7
matplotlib==3.1.1
tqdm==4.51.0
requests==2.25.0
fastapi==0.62.0
Pillow==8.0.1
skimage==0.0
uvicorn==0.11.6
gunicorn==20.0.4
python-multipart==0.0.5
The issue remains, Any idea how can I make it work?
from How to install 'python3-dev' on Google App Engine to use 'pymatting_aot.aot'
No comments:
Post a Comment