zst-embedded / STM32-LCD_Font_Generator

Generate text font for STM32xx-EVAL's LCD driver
GNU Affero General Public License v3.0
38 stars 21 forks source link

don't started on my linux machine. #2

Closed vasiaplaton closed 5 years ago

vasiaplaton commented 5 years ago

$ python3 ../stm32-font.py --font Menlo.ttc --size 32 File "../stm32-font.py", line 43 return f'{array}, / |{comment}| /\r\n' ^ SyntaxError: invalid syntax

$ python3 --version Python 3.4.3

I don't changed anything in your code.

vasiaplaton commented 5 years ago

I have already add Menlo.ttc to example dir

zst123 commented 5 years ago

The script requires Python 3.6 and above.

Could you try it with that?

vasiaplaton commented 5 years ago

Thank you. I try to start it with python3.6.8. Now i have another error.

$ python3.6 ../stm32-font.py --font Menlo.ttc --size 32 Traceback (most recent call last): File "../stm32-font.py", line 1, in from PIL import Image, ImageFont, ImageDraw File "/usr/lib/python3/dist-packages/PIL/Image.py", line 53, in from PIL import _imaging as core ImportError: cannot import name '_imaging' $ python3.6 --version Python 3.6.8

I googled. But nothing changed.

$ pip3 install Pillow Requirement already satisfied: Pillow in /usr/lib/python3/dist-packages (2.3.0)

zst123 commented 5 years ago

Try it with pip3.6 for python3.6?

vasiaplaton commented 5 years ago

I use wirtualenv and python3.6. All work perfectly. Thank you.