Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 05-31-2009, 07:13 PM   #61
lindsay1425
Junior Member
lindsay1425 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2009
Device: sony reader
Help I have been at this hours!


This is a bit long sorry!

So people i have read everyones messages and followed the advise and still i am getting no where so i'm hoping if i tell you all what i'm using and typing someone can tell me where i am going wrong. thanks in advance.

So i installed Pythonwin as advised on darkreverser's blog and have downloaded the text file Python Script for eReader2html.py 080312 also on the blog, i entered the script into the python editer and saved it as a script file which i than ran using the pythonwin which gave me the following message:


PythonWin 2.6.2 (r262:71600, Apr 21 2009, 15:05:37) [MSC v.1500 32 bit (Intel)] on win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information.
>>> C:\Users\Lindsay\Books\Angels pain\ereader2html.py.py:1: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import struct, binascii, zlib, os, sha, sys, os.path
eReader2Html v0.03. Copyright (c) 2008 The Dark Reverser
Converts eReader books to HTML
Usage:
ereader2html infile.pdb outdir "your name" credit_card_number
Note:
It's enough to enter the last 8 digits of the credit card number

Then i entered the info as it says and i received the following message:

PythonWin 2.6.2 (r262:71600, Apr 21 2009, 15:05:37) [MSC v.1500 32 bit (Intel)] on win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information.
>>> C:\Users\Lindsay\Books\Angels pain\ereader2html.py.py:1: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import struct, binascii, zlib, os, sha, sys, os.path
eReader2Html v0.03. Copyright (c) 2008 The Dark Reverser
Converts eReader books to HTML
Usage:
ereader2html infile.pdb outdir "your name" credit_card_number
Note:
It's enough to enter the last 8 digits of the credit card number
>>> ereader2html.py AngelsPain_74111.pdb C:\Users\Lindsay\Books\Angels pain "miss l pitchford" xxxxxxxx
Traceback ( File "<interactive input>", line 1
ereader2html.py AngelsPain_74111.pdb C:\Users\Lindsay\Books\Angels pain "miss l pitchford" xxxxxxxx
^
SyntaxError: invalid syntax
>>>

So if someone could tell me what i'm doing wrong before i kill my laptop i would really appreciate it, oh i'm using vista if that makes a difference.

Many Thanks

Lindsay
lindsay1425 is offline   Reply With Quote
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
Old 06-01-2009, 06:11 PM   #63
momghoti
Zealot
momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.
 
momghoti's Avatar
 
Posts: 121
Karma: 1000021
Join Date: Feb 2008
Location: Hook, UK
Device: Cybook Bookeen
Quote:
Originally Posted by Dave_S View Post
So far, whenever I see that error message from ereader2html.py, I have been able to explode the .pdb with pdbshred.exe which supposedly cannot work with newer pdb file types. From that, I assume that the file must have been in an older .pdb format because ereader2html.py cannot handle it but pdbshred.exe can handle it.
Maybe you could try pdbshred.exe on the document that is giving you trouble using ereader2html.py ? Unfortunately, pdbshred.exe explodes to PML and not HTML, so there is more work after that if you need HTML.
I got that error message, so I took your advice and tried pdbshred. I got a message that 'This version of PeanutPress files isn't handled yet!' and a whole bunch of 1kb .out files. Any ideas?
Rene
momghoti is offline   Reply With Quote
Old 06-04-2009, 01:10 PM   #64
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by momghoti View Post
I got a message that 'This version of PeanutPress files isn't handled yet!' and a whole bunch of 1kb .out files
I think this means that the eReader file is DRM-free (i.e. you did not need a credit card number to buy or open the ebook). The 0.6.0 version of Calibre (due as a beta very soon) can import DRM-free eReader files, so you may want to wait until it is available.
wallcraft is offline   Reply With Quote
Old 06-04-2009, 04:50 PM   #65
momghoti
Zealot
momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.
 
momghoti's Avatar
 
Posts: 121
Karma: 1000021
Join Date: Feb 2008
Location: Hook, UK
Device: Cybook Bookeen
Hmmm. The books are freebies from Fictionwise and it claims that they are secure ereader or whatever, but they may be just saying that. I don't think I have a way to read ereader books so I have no way of checking. To be honest, these were test books to see if I could get them converted before I spent money on a few books that I can only find in ereader format. I may just have to gamble that I will be able to convert the books I want to buy....it seems that each ebook has its own quirks and just 'cause I can't manage to convert the freebies yet the other may be a snap.
momghoti is offline   Reply With Quote
Old 06-04-2009, 05:12 PM   #66
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by momghoti View Post
The books are freebies from Fictionwise and it claims that they are secure ereader or whatever, but they may be just saying that.
Are the ebooks still free? Which ebook is giving you problems?
wallcraft is offline   Reply With Quote
Old 06-05-2009, 04:10 PM   #67
momghoti
Zealot
momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.
 
momghoti's Avatar
 
Posts: 121
Karma: 1000021
Join Date: Feb 2008
Location: Hook, UK
Device: Cybook Bookeen
Yes, they are in the Fictionwise free ebook section; I tried 'His Lady Mistress' and 'Stranded With a Spy'. Both give the same error messages from ereader2html and pdbshred(see the earlier posts). I have a few secure ereader books I'd like to buy, but I don't have a way to read ereader books and wanted to try converting some free ones. I should ask...I think if I'm getting the error messages regarding incorrect versions, I've got the syntax etc.
right. Right?
momghoti is offline   Reply With Quote
Old 06-05-2009, 06:11 PM   #68
FizzyWater
You kids get off my lawn!
FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.
 
FizzyWater's Avatar
 
Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
Did you update your ereader2html code using the suggestion from rogue_ronin? The "invalid syntax" message looks to be because of the space between "angels" and "pain", not because of using only 8 digits in the CC number.
FizzyWater is offline   Reply With Quote
Old 06-05-2009, 06:59 PM   #69
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by momghoti View Post
Yes, they are in the Fictionwise free ebook section; I tried 'His Lady Mistress' and 'Stranded With a Spy'. Both give the same error messages from ereader2html and pdbshred(see the earlier posts).
I get the same error from 'Stranded With a Spy'. According to the wiki "version 10" indicates zlib compression (and no DRM). So I think you are probably using the script correctly, but you may want to start out with just one of the ebooks you actually want to confirm that it works for you.
wallcraft is offline   Reply With Quote
Old 06-05-2009, 07:31 PM   #70
momghoti
Zealot
momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.momghoti ought to be getting tired of karma fortunes by now.
 
momghoti's Avatar
 
Posts: 121
Karma: 1000021
Join Date: Feb 2008
Location: Hook, UK
Device: Cybook Bookeen
Sigh. Yeah, I thought so. So...is there any way to convert non-drm ereader to...well...anything? I've looked around a bit and found conflicting info. I understand, though, that Calibre will soon do that, so hope is not lost; I'm in no real hurry anyway.

Thanks a bunch, wallcraft!
momghoti is offline   Reply With Quote
Old 06-05-2009, 07:59 PM   #71
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by momghoti View Post
So...is there any way to convert non-drm ereader to...well...anything?
I found that the ereader2html.exe (Perl-based executable for Windows) from here will extract the ebook (e.g. 'Stranded With a Spy') as HTML with "raw" records for the images. It isn't perfect, and I expect Calibre will do better.
wallcraft is offline   Reply With Quote
Old 06-09-2009, 12:36 PM   #72
Archergal5219
Semi-retired semi-hero
Archergal5219 has learned how to read e-booksArchergal5219 has learned how to read e-booksArchergal5219 has learned how to read e-booksArchergal5219 has learned how to read e-booksArchergal5219 has learned how to read e-booksArchergal5219 has learned how to read e-booksArchergal5219 has learned how to read e-books
 
Archergal5219's Avatar
 
Posts: 64
Karma: 768
Join Date: Aug 2007
Device: Palm Zire71, EEE PC901, Sony PRS-505
Holy cow, Peake, you made this so easy that even I, total n00b at this stuff, was able to start converting my book.

I bow in your general direction. Many, MANY thanks.
Archergal5219 is offline   Reply With Quote
Old 06-11-2009, 09:05 PM   #73
Peake
Member
Peake began at the beginning.
 
Posts: 22
Karma: 32
Join Date: May 2009
Device: none
Thank you, Archergal

I am still a n00b also, and have found this forum to be a great resource when I've gotten stuck. I'm glad that I was able to contribute for a change!
Peake is offline   Reply With Quote
Old 06-15-2009, 08:58 AM   #74
Falk
Junior Member
Falk began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2009
Device: Kindle 2
First off, many thanks for this great tool to the author and for the community helping out! I have recently purchased the recently released Tolkien books in eReader format and as I am about to get a Kindle 2 it would be great if there was a way to get to read them on on it.

I have converted many other books with the 0.3 script, but these ones just give me a wrong version error which I guess is because of the recent changes to the eReader format. Is there anyone here who has successfully converted these books? Your help is appreciated!
Falk is offline   Reply With Quote
Old 06-15-2009, 09:57 AM   #75
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by Falk View Post
I have converted many other books with the 0.3 script, but these ones just give me a wrong version error which I guess is because of the recent changes to the eReader format.
I noticed a while ago that some versions of these eReader ebooks seemed to be DRM-free, and I think this might be the case for your copies. See if Calibre 0.6.0 beta will convert it for you.
wallcraft is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with python (ereader2html) stuff? diana.stout Reading and Management 4 05-30-2010 08:48 AM
ereader2html error. GatorDeb Workshop 13 10-10-2009 08:15 AM
Error in eReader2Html - Help? rleguillow Other formats 2 07-05-2009 04:11 PM
How to change ereader2html.txt to ereader2html.py? jodier Workshop 8 01-26-2009 11:09 AM
Need help with ereader2html. GatorDeb Workshop 6 09-27-2008 11:40 AM


All times are GMT -4. The time now is 12:29 PM.


MobileRead.com is a privately owned, operated and funded community.