Pb ReportLab (ttfonts.py)

M

Méta-MCI

Hi!

I try to generate PDF from Python 2.5 + ReporLab_lib, and, I have:

C:\Python25\reportlab\pdfbase\ttfonts.py:407: DeprecationWarning: struct
integer overflow masking is deprecated
stm.write(pack(">LLL", checksum, offset, len(data)))
C:\Python25\reportlab\pdfbase\ttfonts.py:419: DeprecationWarning: struct
integer overflow masking is deprecated
stm.write(pack('>L', checksum))

(note : the same script run Ok with Python 2.4.3)

One idea?

Thanks you by advance

Michel Claveau
 
M

Marc 'BlackJack' Rintsch

Hi!

I try to generate PDF from Python 2.5 + ReporLab_lib, and, I have:

C:\Python25\reportlab\pdfbase\ttfonts.py:407: DeprecationWarning: struct
integer overflow masking is deprecated
stm.write(pack(">LLL", checksum, offset, len(data)))
C:\Python25\reportlab\pdfbase\ttfonts.py:419: DeprecationWarning: struct
integer overflow masking is deprecated
stm.write(pack('>L', checksum))

Does the PDF generation work? Those are just warnings.

Ciao,
Marc 'BlackJack' Rintsch
 
F

Fredrik Lundh

Méta-MCI said:
I try to generate PDF from Python 2.5 + ReporLab_lib, and, I have:

C:\Python25\reportlab\pdfbase\ttfonts.py:407: DeprecationWarning: struct
integer overflow masking is deprecated
stm.write(pack(">LLL", checksum, offset, len(data)))
C:\Python25\reportlab\pdfbase\ttfonts.py:419: DeprecationWarning: struct
integer overflow masking is deprecated
stm.write(pack('>L', checksum))

(note : the same script run Ok with Python 2.4.3)

One idea?

it's a deprecation warning. the code runs under Python 2.5, but will
probably break in future releases. check with the reportlab folks for
updates.

if you want to turn the messages off, use the filterwarnings function in
the warnings module (see the docs for details).

</F>
 
M

Méta-MCI

Hi!

You are right.

I had suppose than ReportLab folks read this NG.
No luck... for instant.


MCI
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top