[Ironpython-users] PyPDF error
Chris
phatfish at gmail.com
Thu Dec 29 16:30:27 CET 2011
Hi,
Can anyone explain this bellow. Does PyPDF use some unsported part of the
standard lib? Because there are no external modules required for it.
On another note, is there a way for the "Execute Project in Python
Interactive" to use the vanilla Python interpreter rather than the
IronPython one. I cant see a way to change this?
Thanks
*Python 2.7 Interactive Window*
Resetting execution engine
>>> from pyPdf import PdfFileReader
>>> pdf = PdfFileReader(open('D:/Chris/Documents/sorting/short
numbers/2370.pdf', 'rb'))
>>> print 'test'
test
>>>
*IronPython 2.7 Interactive Window*
>>> from pyPdf import PdfFileReader
>>> pdf = PdfFileReader(open('D:/Chris/Documents/sorting/short
numbers/2370.pdf', 'rb'))
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files (x86)\IronPython
2.7.1\lib\site-packages\pyPdf\pdf.py", line 374, in __init__
self.read(stream)
File "C:\Program Files (x86)\IronPython
2.7.1\lib\site-packages\pyPdf\pdf.py", line 732, in read
num = readObject(stream, self)
File "C:\Program Files (x86)\IronPython
2.7.1\lib\site-packages\pyPdf\generic.py", line 87, in readObject
return NumberObject.readFromStream(stream)
File "C:\Program Files (x86)\IronPython
2.7.1\lib\site-packages\pyPdf\generic.py", line 236, in readFromStream
return NumberObject(name)
TypeError: expected int, got str
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20111229/68a31592/attachment.html>
More information about the Ironpython-users
mailing list