Thread: PRS-600 prs-600 notes to printing
View Single Post
Old 11-30-2010, 01:21 PM   #83
kokoshmusun
Member
kokoshmusun began at the beginning.
 
Posts: 13
Karma: 10
Join Date: May 2010
Device: Sony PRS-600
fail

I finally tried this, but it failed. I don't know what was exactly supposed to happen but nothing happened except this output below. Anybody know what I can do to get it to work?

python annot.py /media/READER

Quote:
/usr/lib/pymodules/python2.6/pyPdf/pdf.py:52: DeprecationWarning: the sets module is deprecated
from sets import ImmutableSet
/usr/lib/pymodules/python2.6/pyPdf/generic.py:216: DeprecationWarning: object.__init__() takes no parameters
int.__init__(self, value)
/usr/lib/pymodules/python2.6/pyPdf/generic.py:406: DeprecationWarning: object.__init__() takes no parameters
str.__init__(self, data)
Traceback (most recent call last):
File "annot.py", line 369, in <module>
tl = p.listFiles()
File "annot.py", line 334, in listFiles
text = Prs600Text(self.topdir,f)
File "annot.py", line 192, in __init__
self.numpages = infile.getNumPages()
File "/usr/lib/pymodules/python2.6/pyPdf/pdf.py", line 334, in getNumPages
self._flatten()
File "/usr/lib/pymodules/python2.6/pyPdf/pdf.py", line 507, in _flatten
self._flatten(page.getObject(), inherit)
File "/usr/lib/pymodules/python2.6/pyPdf/generic.py", line 165, in getObject
return self.pdf.getObject(self).getObject()
File "/usr/lib/pymodules/python2.6/pyPdf/pdf.py", line 549, in getObject
retval = readObject(self.stream, self)
File "/usr/lib/pymodules/python2.6/pyPdf/generic.py", line 67, in readObject
return DictionaryObject.readFromStream(stream, pdf)
File "/usr/lib/pymodules/python2.6/pyPdf/generic.py", line 517, in readFromStream
value = readObject(stream, pdf)
File "/usr/lib/pymodules/python2.6/pyPdf/generic.py", line 67, in readObject
return DictionaryObject.readFromStream(stream, pdf)
File "/usr/lib/pymodules/python2.6/pyPdf/generic.py", line 517, in readFromStream
value = readObject(stream, pdf)
File "/usr/lib/pymodules/python2.6/pyPdf/generic.py", line 67, in readObject
return DictionaryObject.readFromStream(stream, pdf)
File "/usr/lib/pymodules/python2.6/pyPdf/generic.py", line 520, in readFromStream
raise utils.PdfReadError, "multiple definitions in dictionary"
pyPdf.utils.PdfReadError: multiple definitions in dictionary
kokoshmusun is offline   Reply With Quote