[reportlab-users] Fwd: Bug in platypus paragraph.py

Andy Robinson andy at reportlab.com
Mon May 26 10:07:34 EDT 2014


For your info, we were in correspondence with the Ubuntu packaging
expert quite a bit, trying to get ReportLab 3.x done in time to make
14.04.   However, he did tell me that they are trying to do as little
as possible with Python packaging, as it's a huge time burden for him
trying to keep up with every possible Python package, and because they
understand most Python people use pip and pypi.python.org.    I think
reportlab is in there because certain other Ubuntu packages actually
use it to generate reports, and those are clearly working but we can't
prevail on them to do it every month.

Anyway, I'll ask them to update when we do the next significant
release, maybe when Arabic is ready in a few weeks (?)

- Andy

On 26 May 2014 14:53,  <pnmoslo at gmail.com> wrote:
> Thanks for the quick response -- good to know it's been fixed, and apologies
> for not testing with the latest version.
>
> The Ubuntu version seems to be from February -- I suppose they'll catch up
> sometime, and in the meantime I've just modified the file in question (this
> is on a production server running stuff that's been there for years where
> it's much more convenient to just use the Ubuntu updates -- it that respect
> it's rather strange that this problem hasn't turned up previously).
>
> Regards,
>
> Paul Mothersdill
>
>
> On Monday, 26 May 2014 11:15:45 UTC+2, Andy Robinson wrote:
>>
>> Paul, thanks for this.  Our latest source code already has this, so it
>> looks like we fixed it after the 14.4 cutoff was made
>>
>> class _SplitText(unicodeT):
>>     pass
>>
>> (The 'unicodeT' is an indirection to do with python 2-and-3 compatibility)
>>
>>
>> I don't know how often the Ubuntu packagers pick up new versions but
>> there have been a whole lot of subtle improvements since mid-Feb when
>> the cutoff for 14.4 happened.  in the meantime, hopefully you can grab
>> a fresher version with 'pip install reportlab' ?  Most active python
>> users seem to prefer to use Python's packaging tools rather than
>> Ubuntu's ones.
>>
>> - Andy
>>
>>
>> On 26 May 2014 10:04, Paul Mothersdill <pa... at nlhas.no> wrote:
>> > Sorry -- previous mail was sent prematurely.
>> >
>> > There's a helper class in paragraph.py :
>> >
>> > class _SplitText(str):
>> >    pass
>> >
>> > The str here should surely be unicode? The whole programming logic is
>> > that
>> > it should be a unicode object -- and it fails (of course) if the
>> > character
>> > is outside the ascii range.
>> >
>> > I've done limited testing an found that changing this to
>> >
>> >  class _SplitText(unicode):
>> >    pass
>> > solves the problems I've been experiencing.
>> >
>> > Reportlab open source as found in the standard Ubuntu 14.4 server
>> > repositories.
>> >
>> >
>> >
>> >
>> > ---------- Forwarded message ----------
>> > Date: 2014-05-26 10:58 GMT+02:00
>> > Subject: Bug in platypus paragraph.py
>> > To: reportl... at lists2.reportlab.com
>> >
>> >
>> >
>> > There's a helper class in paragraph.py :
>> >
>> > class _SplitText(unicode):
>> > pass
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > reportlab-users mailing list
>> > reportl... at lists2.reportlab.com
>> > http://two.pairlist.net/mailman/listinfo/reportlab-users
>> >
>>
>>
>>
>> --
>> Andy Robinson
>> Managing Director
>> ReportLab Europe Ltd.
>> Thornton House, Thornton Road, Wimbledon, London SW19 4NG, UK
>> Tel +44-20-8405-6420
>> _______________________________________________
>> reportlab-users mailing list
>> reportl... at lists2.reportlab.com
>> http://two.pairlist.net/mailman/listinfo/reportlab-users
>
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>



-- 
Andy Robinson
Managing Director
ReportLab Europe Ltd.
Thornton House, Thornton Road, Wimbledon, London SW19 4NG, UK
Tel +44-20-8405-6420


More information about the reportlab-users mailing list