Hello,
I have built the Supernova Poi it is working but for the life of me I cannot get the convert.py to run,
I tried it on a linux (Ubuntu) machine, a windows 10 laptop and a macbook without any success.
It always stops at line 141 with a syntax error see following text:
C:\Python34\convert>python convert2.py images/*.jpg > graphics.h
File "convert2.py", line 141
print "// Don't edit this file! It's software-generated."
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("// Don't edit this file! It's software-generated.")?
Any help would be welcomed
Supernova poi
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Steveajb
- Posts: 1
- Joined: Wed Jul 11, 2018 12:35 pm
Supernova poi
- Attachments
-
- Help
- 20180723_223724.jpg (259.8 KiB) Viewed 358 times
- Agundel
- Posts: 6
- Joined: Fri Sep 19, 2014 10:52 pm
Re: Supernova poi
Hi I think its only works with bmp or gif.
- RowdyDy
- Posts: 5
- Joined: Mon Jan 14, 2019 7:16 pm
Re: Supernova poi
I have the same problem could you tell me if you got the solution please
File "convert.py", line 141
print "// Don't edit this file! It's software-generated."
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("// Don't edit this file! It's software-generated.")?
File "convert.py", line 141
print "// Don't edit this file! It's software-generated."
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("// Don't edit this file! It's software-generated.")?
- Attachments
-
- falla convert.jpg (93.21 KiB) Viewed 238 times
- adafruit_support_carter
- Posts: 29189
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Supernova poi
The program appears to be Python 2 only. It won't run with Python 3.
- RowdyDy
- Posts: 5
- Joined: Mon Jan 14, 2019 7:16 pm
Re: Supernova poi
ok muchas gracias solo una pregunta para python 2 es con la libreria PIL o seria Pilllow graciasadafruit_support_carter wrote:The program appears to be Python 2 only. It won't run with Python 3.
- adafruit_support_carter
- Posts: 29189
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Supernova poi
Probably PIL.
- RowdyDy
- Posts: 5
- Joined: Mon Jan 14, 2019 7:16 pm
Re: Supernova poi
muchas gracias lo logre despues de muchisimos intentos fallidos y lo que hice fue instalar python 3 y tambien instale anaconda navigator y ehi instale la libreria PIL 1.1.7 y anaconda navigator solo me dio la opcion de transformar python 3 a python 2.7 y ya de ahi quedo configurado ya solo en win10 inicie como administrador y segui la ruta y listo muchas graciasadafruit_support_carter wrote:Probably PIL.
Please be positive and constructive with your questions and comments.