I’m trying to run a python script that imports PIL, pilmoji, etc. But the terminal is giving errors on the line from pilmoji import Pilmoji
. I came to know that these are because my python version in glitch is 3.7 instead of 3.8. Please someone guide if the python version can be updated or some other workaround.
Following are the errors:
Error executing command: Traceback (most recent call last):
File "./src/code/generate_chat.py", line 2, in <module>
from pilmoji import Pilmoji
File "/app/.local/lib/python3.7/site-packages/pilmoji/__init__.py", line 2, in <module>
from .sync import Pilmoji, Requester
File "/app/.local/lib/python3.7/site-packages/pilmoji/sync/__init__.py", line 1, in <module>
from .core import Pilmoji
File "/app/.local/lib/python3.7/site-packages/pilmoji/sync/core.py", line 103
asset = asset.resize((width := int(emoji_size_factor * font.size), width), Image.ANTIALIAS)