movehand / raisr

A Python implementation of RAISR
MIT License
550 stars 161 forks source link

Can't get it running, syntax error #33

Open axymeus opened 4 years ago

axymeus commented 4 years ago

I've tried setting up your project using Python 2.7 (as far as I can tell PIL will not work with Python 3.x) and installed all listed dependencies. When I try running python train.py this error is encountered:

  File "train.py", line 60
    print('\r', end='')
                   ^
SyntaxError: invalid syntax
bowmanlin commented 4 years ago

this is a syntax using in python3, and you need to use python3 instead of python2 or you need to modify these 'print's to python2 syntax.

axymeus commented 4 years ago

But this project is dependent on PIL, and PIL is not available for Python3 https://www.pythonware.com/products/pil/ is there another PIL implementation that will work?

bowmanlin commented 4 years ago

I used this PIL fork: https://python-pillow.org/, instead.

CyberLykan commented 4 years ago

Use pillow.

pip install pillow