View Single Post
Old 04-05-2007, 06:22 AM   #45
sammykrupa
Reader of the Reader
sammykrupa doesn't littersammykrupa doesn't litter
 
Posts: 103
Karma: 107
Join Date: Apr 2006
Device: Sony Reader PRS-500
Ashkulz,
Your magic seems to have made the ImageMagick error disappear, but that original pesky error we where getting before still exists:

p$ python pdfread.py -p prs500 sample.pdf
Unable to determine total number of pages in PDF
Please enter total page count: 5

Temporary directory: /tmp/pdfread-tCVV7p

Page 1/5: EXTRACT RASTERIZE CROP DILATE RESIZE DONE
Page 2/5: EXTRACT RASTERIZE CROP DILATE RESIZE DONE
Page 3/5: EXTRACT RASTERIZE CROP DILATE RESIZE DONE
Page 4/5: EXTRACT RASTERIZE CROP DILATE RESIZE DONE
Page 5/5: EXTRACT RASTERIZE CROP DILATE RESIZE DONE
Traceback (most recent call last):
File "/Users/mikekrup/Desktop/pdfread-v4-src/src/pdfread.py", line 496, in ?
PdfConverter().main()
File "/Users/mikekrup/Desktop/pdfread-v4-src/src/pdfread.py", line 319, in main
delete = self.FORMATS[self.options.format](self)
File "/Users/mikekrup/Desktop/pdfread-v4-src/src/pdfread.py", line 260, in generate_lrf
from pylrs.pylrs import Book, PageStyle, BlockStyle, ImageStream, BlockSpace, ImageBlock
File "/Users/mikekrup/Desktop/pdfread-v4-src/src/pylrs/pylrs.py", line 11
from elementtree.ElementTree import (Element, SubElement)
^
SyntaxError: invalid syntax


I have the folder called "elmenttree" in with the pdfread.py file.

Sam Krupa
sammykrupa is offline   Reply With Quote