Closed MauryaRitesh closed 6 years ago
The script is written in Python 3 -- are you running the script in Python 2? Make sure Tensorflow is installed for Python 3 and then try $ python3 train.py
.
No, I also have Python 3
Try $ python3 train.py
instead of $ python train.py
The same error message.
I think you must be running this in Python 2. Try creating a new python script that contains only the following:
print("Hello", flush=True)
Run that that the same way that you are running the training script. I expect you'll get the same error. The flush
argument was added in Python 3.3.
I added a check to the train script to make sure that it's being run in Python 3. I'd be curious what the result is for you with that change.
I got the following error: riteshk_m_786@bot:~/chatbot-rnn$ python train.py File "train.py", line 179 end='', flush=True) ^ SyntaxError: invalid syntax