Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in train.py ? #12

Open
martymcmodding opened this issue Apr 21, 2018 · 4 comments
Open

Syntax error in train.py ? #12

martymcmodding opened this issue Apr 21, 2018 · 4 comments

Comments

@martymcmodding
Copy link

martymcmodding commented Apr 21, 2018

Windows 10 64 Bit
Python 3.6.5 64 bit
grabbed all requirements except tensorflor 1.5.0 because pip couldn't find 1.4.1 for some reason

Wanted to train the GAN using the linkedin leak, so using

python train.py --output-dir output --training-data data/in.txt

And it throws me a syntax error:

File "D:\PassGAN\train.py", line 144
print " print "validation set JSD for n={}: {}".format(i+1, true_char_ngram_lms[i].js_with(validation_char_ngram_lms[i]))

Syntax Error: invalid syntax. The error is specified to be at the end of the "" encapsulated string. I have little knowledge of Python as I never got in contact with it, so I can't solve it myself..?

@KingerHan
Copy link

I have encounted the same question~

@ghost
Copy link

ghost commented Mar 23, 2019

try this one, https://pastebin.com/raw/JxsnSFCE

@d4ichi
Copy link

d4ichi commented Jun 16, 2019

I updated the source code for Python 3 / TensorFlow 1.13. https://github.com/d4ichi/PassGAN

@rsj123
Copy link

rsj123 commented Mar 8, 2020

try this one, https://pastebin.com/raw/JxsnSFCE

I tried and i meet this
also the numpy's version should be 1.14.1~

Traceback (most recent call last):
File "JxsnSFCE", line 10, in
import utils
File "/root/PassGAN-master/utils.py", line 133
print "loaded {} lines in dataset".format(len(lines))
^
SyntaxError: invalid syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants