[reportlab-users] issue moving from 3.4.0 to latest

johnf johnf at jfcomputer.com
Fri Sep 6 10:48:05 EDT 2019


I should have added that I am using python 3.6.x, on OpenSuse 15.1.
But I believe the same is happening on windows 10 with python 3.7.x

I  have attached a file - not sure what I should do to make it simple - 
I believe there is data at the bottom.
Johnf

On 9/6/19 7:13 AM, James PK wrote:
> > I'm upgrading reportlab from 3.4.0 to 3.5.x issue with _do_post_text()
>
> You have upgraded reportlab, I assume that your Python version is 
> still the same.
>
> Is the 'issue' an exception or that the output looks different in 3.5.x?
>
>
> > which is returning a string of zero length ('') and not a number.
> > I can fix the issue by changing the lw value to 0 (zero).
>
> From the repository it looks like _usCon() (added in commit in March 
> 2018) and it does look like its intention is to return a number.
>
>
> Do you have a slimmed down source file your could email for testing 
> purposes?
>
> James
>
>
>
> On 06/09/2019 03:13, johnf wrote:
>>
>>   Hi everyone,
>>
>>
>>   I'm upgrading reportlab from 3.4.0 to 3.5.x issue with _do_post_text()
>>
>> I'm upgrading reportlab from 3.4.0 to 3.5.x and there is a change in 
>> paragraph.py -> _do_post_text(). In that method there is a line of code:
>>
>> lw = _isConv(w,values,default=tx._defaultLineWidth)
>>
>> which is returning a string of zero length ('') and not a number. I 
>> can fix the issue by changing the lw value to 0 (zero).
>>
>> But I wonder where I should be looking for the root of the issue???? 
>> Is it in my rxml file. The file print fine with reportlab 3.4.0.
>>
>>
>> Johnf
>>
>>
>>
>> _______________________________________________
>> reportlab-users mailing list
>> reportlab-users at lists2.reportlab.com
>> https://pairlist2.pair.net/mailman/listinfo/reportlab-users
>>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
> https://pairlist2.pair.net/mailman/listinfo/reportlab-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20190906/9fdedf54/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ReminderLetter1.rfxml
Type: text/xml
Size: 21807 bytes
Desc: not available
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20190906/9fdedf54/attachment-0001.xml>


More information about the reportlab-users mailing list