pinobatch / hello-world

Staging place for Pitfalls, Issues, and Unovas related to Pin Eight projects not yet on GitHub
6 stars 1 forks source link

Rotpixels needs updated to Python 3 #4

Closed NovaSquirrel closed 6 years ago

NovaSquirrel commented 6 years ago

Attempting to run it as Python 3 produces:

  File "rotpixels.py", line 286
    print algorithmText.replace('%prog', parser.get_prog_name())
                      ^
SyntaxError: invalid syntax

And running it on Python 2 with the latest version of Pillow (py -2 rotpixels.py -i wow.png -o wow3.png -r 10) produces:

Traceback (most recent call last):
  File "rotpixels.py", line 352, in <module>
    main()
  File "rotpixels.py", line 345, in main
    inpar=opt.inpar, outpar=opt.outpar)
  File "rotpixels.py", line 242, in rotpixels
    outsize=(outsize[0] * 8, outsize[1] * 8))
  File "rotpixels.py", line 180, in my_rotate
    from Image import AFFINE
ImportError: No module named Image