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

TypeError: unsupported operand type(s) for -: 'float' and 'str' #800

nehemiahjacob opened this Issue Feb 13, 2019 · 0 comments


2 participants
Copy link

nehemiahjacob commented Feb 13, 2019

Seems the issue has come again #260

  File "/usr/local/lib/python3.7/site-packages/weasyprint/layout/", line 55, in block_level_layout
  File "/usr/local/lib/python3.7/site-packages/weasyprint/layout/", line 86, in block_level_layout_switch
    device_size, page_is_empty, absolute_boxes, fixed_boxes)
  File "/usr/local/lib/python3.7/site-packages/weasyprint/layout/", line 50, in flex_layout
    box.border_left_width - box.border_right_width)
TypeError: unsupported operand type(s) for -: 'float' and 'str'

Command to reproduce:

weasyprint test.pdf

Issue happens at the latest release of Weasyprint.

nehem@nehem ~/Downloads> weasyprint --version
WeasyPrint version 44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.