Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Pb ReportLab (ttfonts.py)

Reply
Thread Tools

Pb ReportLab (ttfonts.py)

 
 
Méta-MCI
Guest
Posts: n/a
 
      12-11-2006
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



 
Reply With Quote
 
 
 
 
Marc 'BlackJack' Rintsch
Guest
Posts: n/a
 
      12-11-2006
In <457d4ba5$0$5067$(E-Mail Removed)>, Méta-MCI wrote:

> 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
 
Reply With Quote
 
 
 
 
Fredrik Lundh
Guest
Posts: n/a
 
      12-11-2006
Méta-MCI wrote:

> 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>

 
Reply With Quote
 
Méta-MCI
Guest
Posts: n/a
 
      12-11-2006
Hi!


>>> Does the PDF generation work? Those are just warnings.


Yes, it run.
Yes it's only warning
But, it's wincing...



@-salutations

MCI


 
Reply With Quote
 
Méta-MCI
Guest
Posts: n/a
 
      12-11-2006
Hi!

You are right.

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


MCI




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching for UTF8 capable font for REPORTLAB Andreas Jung Python 3 01-19-2004 04:46 AM
[reportlab] print directly to printer Karlheinz Klingbeil Python 1 12-18-2003 09:53 PM
ReportLab sponsor the XML Conference 2003 John Precedo Python 0 12-01-2003 04:47 PM
Reportlab Image object opens filehandles Michael Schmitt Python 4 09-12-2003 11:39 AM
ReportLab 1.18 Released Robin Becker Python 0 07-09-2003 01:51 PM



Advertisments