Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving too much favorites is broken #4

Open
JazzCore opened this issue Dec 11, 2012 · 4 comments
Open

Saving too much favorites is broken #4

JazzCore opened this issue Dec 11, 2012 · 4 comments

Comments

@JazzCore
Copy link
Collaborator

Вылезает вот такое когда избранного много (150-200+), пока не знаю почему:

ERROR [ho.pisa] /usr/local/lib/python2.7/site-packages/sx/pisa3/pisa_document.py line 223: Document error
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/sx/pisa3/pisa_document.py", line 172, in pisaDocument
    doc.build(c.story)
  File "/usr/local/lib/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 892, in build
    self.handle_flowable(flowables)
  File "/usr/local/lib/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 792, in handle_flowable
    raise LayoutError(ident)
LayoutError: Splitting error(n==1) on page 1419 in
<PmlParagraphAndImage at 0x2e0583ac frame=body>...
S[0]=<PmlParagraphAndImage at 0x2e0583ac frame=body>...
Traceback (most recent call last):
  File "fav2pdf.py", line 149, in <module>
    go(content, user + '.pdf')
  File "/root/fav2pdf/pdf_gen.py", line 171, in go
    pisa.CreatePDF(content.encode('UTF-8'), file(filename, 'wb'))
  File "/usr/local/lib/python2.7/site-packages/sx/pisa3/pisa_document.py", line 172, in pisaDocument
    doc.build(c.story)
  File "/usr/local/lib/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 892, in build
    self.handle_flowable(flowables)
  File "/usr/local/lib/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 792, in handle_flowable
    raise LayoutError(ident)
reportlab.platypus.doctemplate.LayoutError: Splitting error(n==1) on page 1419 in
<PmlParagraphAndImage at 0x2e0583ac frame=body>...
S[0]=<PmlParagraphAndImage at 0x2e0583ac frame=body>...
@vrtx64
Copy link
Owner

vrtx64 commented Dec 11, 2012

Есть мнение, что это pisa не может обработать html из какой-то статьи. У меня была похожая ошибка, методом бинарного поиска находил статью и уже в ней разбирал причину.

@JazzCore
Copy link
Collaborator Author

Этот экспешн дает к примеру вот эта страница: http://habrahabr.ru/post/106912/
Разбираюсь дальше)

@JazzCore
Copy link
Collaborator Author

Nevermind, pisa на этой странице лажает только в винде, в никсах все нормально...

@JazzCore
Copy link
Collaborator Author

http://habrahabr.ru/post/139265/ - тут уже лажает в никсах, а в винде нормально...

@JazzCore JazzCore reopened this Dec 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants