Thread: Ereader2Html
View Single Post
Old 05-31-2009, 08:30 PM   #62
rogue_ronin
Banned
rogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-books
 
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
Quote:
Originally Posted by lindsay1425 View Post
Code:
ereader2html.py AngelsPain_74111.pdb C:\Users\Lindsay\Books\Angels pain "miss l pitchford" xxxxxxxx
                                                                                                                        ^
SyntaxError: invalid syntax
Make it a habit of using " marks for each non-numeric bit of info you give it:

Code:
ereader2html.py "AngelsPain_74111.pdb" "C:\Users\Lindsay\Books\Angels pain" "miss l pitchford" xxxxxxxx
Usually, all command line apps look for spaces to divide the arguments (arguments are the "whats" and "hows" and "wheres" and other info that you give it.)

So in your command, the space following "Angels" and preceding "pain" was telling ereader2html that the directory you wanted to make was called "C:\Users\Lindsay\Books\Angels" and your name was "pain". That's why it has a little pointer ^ under "miss | pitchford" -- it's trying to use that as your credit card number, but it's not a number, which it recognizes. It never even gets to your number.

Hope that helps. And I hope I'm perfectly correct here in my interpretation of ereader2html's output. But I'm absolutely sure that it's the space that's borking you.

Can't expect you to notice a space! It's nothing, really.

m a r

Last edited by rogue_ronin; 05-31-2009 at 08:32 PM. Reason: formatted for clarity
rogue_ronin is offline   Reply With Quote