Skip to content

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

Description

@n3h3m

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashProblems preventing documents from being rendered

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions