473,385 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Pb ReportLab (ttfonts.py)

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

Dec 11 '06 #1
4 1736
In <45**********************@news.orange.fr>, 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
Dec 11 '06 #2
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>

Dec 11 '06 #3
Hi!

>>Does the PDF generation work? Those are just warnings.
Yes, it run.
Yes it's only warning
But, it's wincing...

@-salutations

MCI
Dec 11 '06 #4
Hi!

You are right.

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


Dec 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andreas Jung | last post by:
Reportlab has some problems with creating PDFs from UTF8 encoded text. For this reason they are using a truetype font rina.ttf which looks *very ugly*. Does anyone know of a suitable free...
4
by: Active8 | last post by:
I did this once and can't remember how <blush> so I read the reportlab user guid. It says to unzip the reportlab archive - this is on w2k, BTW, with Python23 - to a directory and make a file...
7
by: Josh | last post by:
Hi All, I need someone to explain to me how to output a Code39 barcode to a Reportlab PDF. As far as I can tell, there is no means to do this with the Canvas object, and the demo that is...
2
by: Chuck | last post by:
I have been trying all day to get this to work. My complete code is below. I can get my text into the PDF, I can get my image in the PDF. What I can't get to work is frames so that the image (logo)...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.