Closed saheedniyi02 closed 2 years ago
The code: from pilmoji import Pilmoji The error: File "/usr/local/lib/python3.7/dist-packages/pilmoji/sync/core.py", line 103 asset = asset.resize((width := int(emoji_size_factor * font.size), width), Image.ANTIALIAS) ^ SyntaxError: invalid syntax
from pilmoji import Pilmoji
File "/usr/local/lib/python3.7/dist-packages/pilmoji/sync/core.py", line 103 asset = asset.resize((width := int(emoji_size_factor * font.size), width), Image.ANTIALIAS) ^ SyntaxError: invalid syntax
From my observation, the error came from the package. @jay3332
Turns out my python version (on Google colab) is Lower than the required version, sorry for creating a wrong issue. @jay3332
The code:
from pilmoji import Pilmoji
The error:File "/usr/local/lib/python3.7/dist-packages/pilmoji/sync/core.py", line 103 asset = asset.resize((width := int(emoji_size_factor * font.size), width), Image.ANTIALIAS) ^ SyntaxError: invalid syntax
From my observation, the error came from the package. @jay3332