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

Closed
nehemiahjacob opened this Issue Feb 13, 2019 · 0 comments

Comments

2 participants
@nehemiahjacob
Copy link

nehemiahjacob commented Feb 13, 2019

Seems the issue has come again #260

  File "/usr/local/lib/python3.7/site-packages/weasyprint/layout/blocks.py", line 55, in block_level_layout
    adjoining_margins)
  File "/usr/local/lib/python3.7/site-packages/weasyprint/layout/blocks.py", 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/flex.py", 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 https://www.techlila.com/compile-android-rom-from-source-code/ 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.