pdfread on osx
Having a small issue with getting PDFRead to work on OSX. Followed the various posts so far as I can tell, also installed PIL successfully after installing freetype2.
Can someone take a look?
cmd:
python src/pdfread.py -p prs505-p -o output.prc -t Title -a "Author Name" -i pdf --dpi=16 -d ./temp input.pdf
terminal:
Temporary directory: ./temp
Page 1/621: EXTRACT RASTERIZE CROP DILATE SAVE Traceback (most recent call last):
File "/Applications/Kindle/PDFRead/src/pdfread.py", line 207, in <module>
main()
File "/Applications/Kindle/PDFRead/src/pdfread.py", line 84, in main
options.unpaper_args, options.no_crop, options.no_dilate)
File "/Applications/Kindle/PDFRead/src/pdfread.py", line 63, in convert
output.add_page(page, mode_tranform(image))
File "/Applications/Kindle/PDFRead/src/common.py", line 153, in add_page
self.downsample(image, filename)
File "/Applications/Kindle/PDFRead/src/common.py", line 163, in downsample
call('pngnq', '-fs', '1', '-n', str(self.colors), 'page.png')
File "/Applications/Kindle/PDFRead/src/common.py", line 201, in call
stderr = subprocess.STDOUT)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 593, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 1079, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Produces this error using python 2.5 and 2.6
Note: all fixed! Thanks for the reminder nrapallo. I had to sudo the install cmd for pngnq.
Last edited by freecia; 05-12-2009 at 01:01 AM.
|