View Single Post
Old 04-07-2010, 02:16 AM   #3
RaDeuX
Junior Member
RaDeuX began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2010
Device: Ectaco jetBook-Lite
For some reason, I'm getting this error...

Quote:
Temporary directory: /var/folders/J7/J7twrQr8HuSmttl7BDYKuU+++TI/-Tmp-/pdfread-TY9x08

Page 1/586: EXTRACT Traceback (most recent call last):
File "/Users/home/Desktop/pdfread-v5-src/pdfread.py", line 619, in <module>
PdfConverter().main()
File "/Users/home/Desktop/pdfread-v5-src/pdfread.py", line 439, in main
self.convert_pages_to_png()
File "/Users/home/Desktop/pdfread-v5-src/pdfread.py", line 120, in convert_pages_to_png
raw_image = self.INPUT_FORMATS[self.options.input_format](self, i)
File "/Users/home/Desktop/pdfread-v5-src/pdfread.py", line 220, in extract_pdf
exec_cmd('pdftops', '-f', str(number), '-l', str(number), '-eps', self.input, 'page.eps')
File "/Users/home/Desktop/pdfread-v5-src/pdfread.py", line 606, in exec_cmd
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 594, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 1097, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Apparently it's caused by the PIL, despite adding things to $PYTHONPATH
Quote:
>>> import _imaging
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/opt/local/lib/python2.5/site-packages/PIL/_imaging.so, 2): no suitable image found. Did find:
/opt/local/lib/python2.5/site-packages/PIL/_imaging.so: mach-o, but wrong architecture

Last edited by RaDeuX; 04-07-2010 at 02:20 AM.
RaDeuX is offline   Reply With Quote