[reportlab-users] import of playtypus.ListFlowable and ListItem fails

53 views
Skip to first unread message

Werner Thie

unread,
Dec 15, 2011, 7:34:20 AM12/15/11
to reportlab-users
Hi all

just installed a daily build Version="2.5.20111214204004" on MSW and
tried to run genAll.py in docs.

genuserguide.py fails when trying to build chapter six (ch6_tables.py) with

"C:\Python27\python.exe" genuserguide.py
Traceback (most recent call last):
File "genuserguide.py", line 104, in <module>
main()
File "genuserguide.py", line 102, in main
run(pagesize, verbose,outDir)
File "genuserguide.py", line 53, in run
exec open_and_read(f+'.py',mode='t') in G, G
File "<string>", line 5, in <module>
ImportError: cannot import name ListFlowable

What am I missing? I suppose this should work out of the box, the other
two documents

reportlab-graphics-reference.pdf
reportlab-reference.pdf

are just building ok

Thxs, Werner
_______________________________________________
reportlab-users mailing list
reportl...@lists2.reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users

Andy Robinson

unread,
Dec 15, 2011, 8:01:02 AM12/15/11
to wer...@thieprojects.ch, reportlab-users
On 15 December 2011 12:34, Werner Thie <wer...@thieprojects.ch> wrote:
> Hi all
>
> just installed a daily build Version="2.5.20111214204004" on MSW and tried
> to run genAll.py in docs.
>
> genuserguide.py fails when trying to build chapter six (ch6_tables.py) with
>

Do you have another, older copy of reportlab on your path which is
being imported by the script? That would explain it.

- Andy

Marta Luchi

unread,
Dec 16, 2011, 3:40:22 AM12/16/11
to reportlab-users
Hi all,

maybe I'm asking an obvious question...
I'm using BaseDocTemplate with two templates, portrait and landscape. I used
addPageTemplate to include both in the document.
I have to produce a document with the first page in portrait, with a header
and a small table (flowable), and, from the second page, I have to print a
large table (always flowable) but in landscape mode. I used NextPageTemplate to
change the orientation of the page and it works if the table is only one page
long. If it has two pages it works again if I put another NextPageTemplate to
landscape checking if the length of the table is greater than one page.

Unfortunately if the table is three or four pages long, the third and forth
pages are back in portrait.

Is there a way to make the flowable using the same template until the table
will be printed entirely?

Thank you in advance for your help.

Kindest Regards,
Marta

Marta Luchi

unread,
Dec 16, 2011, 3:58:14 AM12/16/11
to reportlab-users
Hi all,

I solved, I was still using SimpleDocTemplate and not BaseDocTemplate. Now
it works.

Reply all
Reply to author
Forward
0 new messages