How to update python version from 3.7 to 3.8?

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)

Hi @Binary-Bytes, I think part of the error message was cut off- could you post the full error message?

From what I know- I don’t think you can simply upgrade python to 3.8 yourself because of the storage limits and also because you don’t have root perms. Also- it would be very temperamental lol.

You could try suggesting this in Glitch Feature Ideas?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.