raisr icon indicating copy to clipboard operation
raisr copied to clipboard

Can't get it running, syntax error

Open axymeus opened this issue 5 years ago • 4 comments

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

axymeus avatar Sep 06 '19 20:09 axymeus

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.

bowmanlin avatar Sep 19 '19 09:09 bowmanlin

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?

axymeus avatar Sep 19 '19 09:09 axymeus

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

bowmanlin avatar Sep 19 '19 09:09 bowmanlin

Use pillow.

pip install pillow

CyberLykan avatar Oct 14 '19 17:10 CyberLykan