Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Removing DRM protection from eBooks (http://stream-recorder.com/forum/forumdisplay.php?f=63)
-   -  

ereader2html.py error: print "Flags: 0x%X" % self.flags". SyntaxError: invalid syntax

(http://stream-recorder.com/forum/showthread.php?t=6433)

Someone_Else 04-19-2010 06:45 AM

ereader2html.py error: print "Flags: 0x%X" % self.flags". SyntaxError: invalid syntax


 
Hi all... I have been having problems with the ereader2html.py script.

I got thru line 10 of the instructions...

I input at the command prompt:
Code:

ereader2html.py infile.pdb outdir "My Name" 1234567890123456
The file that needs to be fixed was renamed infile.pdb, so that the command would work as typed. "My Name" is my name of course and I put my credit card number in. The 'outdir' part I don't understand but I put it in anyway.

This is the error that I am getting
Code:

print "Flags: 0x%X" % self.flags"
SyntaxError: invalid syntax

Any ideas on what I am doing wrong???

Thanks

Stream Recorder 04-20-2010 01:52 AM

Re: ereader2html.py error: print "Flags: 0x%X" % self.flags". SyntaxError: invalid sy


 
Quote:

Originally Posted by Someone_Else (Post 18319)
I have been having problems with the ereader2html.py script.

I got thru line 10 of the instructions...

I input at the command prompt:
Code:

ereader2html.py infile.pdb outdir "My Name" 1234567890123456
The file that needs to be fixed was renamed infile.pdb, so that the command would work as typed. "My Name" is my name of course and I put my credit card number in. The 'outdir' part I don't understand but I put it in anyway.

This is the error that I am getting
Code:

print "Flags: 0x%X" % self.flags"
SyntaxError: invalid syntax

Any ideas on what I am doing wrong???

Python is white space sensitive. Make sure you download the file from pastebin, not copy-paste it.

If you use Python 3.x, you can also try to use Python 2.6.x instead.

Someone_Else 04-22-2010 02:35 PM

Re: ereader2html.py error: print "Flags: 0x%X" % self.flags". SyntaxError: invalid sy


 
Thanks....

Python 2.6 did the trick.

jab4701 07-02-2010 08:29 AM

Re: ereader2html.py error: print "Flags: 0x%X" % self.flags". SyntaxError: invalid sy


 
I am having the same error.

Code:

File "C:\Python31\ereader2html.py", line 420
print "Flags: 0x%X" % self.flags

I have tried python31 and python26.
I have tried eRdr2Pml and still no luck.
I have tried full cc# and last 8 and still no luck.

Any suggestions.

Thanks.

Stream Recorder 07-03-2010 04:32 AM

Re: ereader2html.py error: print "Flags: 0x%X" % self.flags". SyntaxError: invalid sy


 
Quote:

Originally Posted by jab4701 (Post 19949)
I am having the same error.

Code:

File "C:\Python31\ereader2html.py", line 420
print "Flags: 0x%X" % self.flags

I have tried python31 and python26.
I have tried eRdr2Pml and still no luck.
I have tried full cc# and last 8 and still no luck.

Any suggestions.

Use Python 2.6 x32 even if you have Windows x64. And make sure to download ereader2html.py, not to copy-paste it.


All times are GMT -6. The time now is 11:32 PM.