0

Supernova poi
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Supernova poi

by Steveajb on Mon Jul 23, 2018 4:55 pm

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
Attachments
20180723_223724.jpg
Help
20180723_223724.jpg (259.8 KiB) Viewed 187 times

Steveajb
 
Posts: 1
Joined: Wed Jul 11, 2018 12:35 pm

Re: Supernova poi

by Agundel on Fri Oct 26, 2018 3:25 pm

Hi I think its only works with bmp or gif.

Agundel
 
Posts: 6
Joined: Fri Sep 19, 2014 10:52 pm

Re: Supernova poi

by RowdyDy on Mon Jan 14, 2019 7:28 pm

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.")?
Attachments
falla convert.jpg
falla convert.jpg (93.21 KiB) Viewed 67 times

RowdyDy
 
Posts: 3
Joined: Mon Jan 14, 2019 7:16 pm

Re: Supernova poi

by adafruit_support_carter on Wed Jan 16, 2019 2:26 pm

The program appears to be Python 2 only. It won't run with Python 3.

adafruit_support_carter
 
Posts: 9075
Joined: Tue Nov 29, 2016 2:45 pm

Re: Supernova poi

by RowdyDy on Sun Jan 20, 2019 12:51 am

adafruit_support_carter wrote:The program appears to be Python 2 only. It won't run with Python 3.

ok muchas gracias solo una pregunta para python 2 es con la libreria PIL o seria Pilllow gracias

RowdyDy
 
Posts: 3
Joined: Mon Jan 14, 2019 7:16 pm

Re: Supernova poi

by adafruit_support_carter on Mon Jan 21, 2019 1:57 pm

Probably PIL.

adafruit_support_carter
 
Posts: 9075
Joined: Tue Nov 29, 2016 2:45 pm

Re: Supernova poi

by RowdyDy on Mon Jan 21, 2019 2:53 pm

adafruit_support_carter wrote:Probably PIL.

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 gracias

RowdyDy
 
Posts: 3
Joined: Mon Jan 14, 2019 7:16 pm

Please be positive and constructive with your questions and comments.