Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-blockdiag.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-98472-6004/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-blockdiag.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-blockdiag-3.0.0-4.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-blockdiag.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-98472-6004/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-blockdiag.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.QqHKV0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf blockdiag-3.0.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/blockdiag-3.0.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd blockdiag-3.0.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/159.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + touch src/blockdiag/tests/diagrams/invalid.txt + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.VYeTpU + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd blockdiag-3.0.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' /usr/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead warnings.warn( running build running build_py creating _build creating _build/lib creating _build/lib/blockdiag copying src/blockdiag/parser.py -> _build/lib/blockdiag copying src/blockdiag/builder.py -> _build/lib/blockdiag copying src/blockdiag/metrics.py -> _build/lib/blockdiag copying src/blockdiag/elements.py -> _build/lib/blockdiag copying src/blockdiag/command.py -> _build/lib/blockdiag copying src/blockdiag/drawer.py -> _build/lib/blockdiag copying src/blockdiag/__init__.py -> _build/lib/blockdiag creating _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/minidiamond.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/ellipse.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/actor.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/note.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/dots.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/base.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/square.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/beginpoint.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/diamond.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/textbox.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/none.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/box.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/endpoint.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/circle.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/roundedbox.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/__init__.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/cloud.py -> _build/lib/blockdiag/noderenderer copying src/blockdiag/noderenderer/mail.py -> _build/lib/blockdiag/noderenderer creating _build/lib/blockdiag/imagedraw copying src/blockdiag/imagedraw/base.py -> _build/lib/blockdiag/imagedraw copying src/blockdiag/imagedraw/png.py -> _build/lib/blockdiag/imagedraw copying src/blockdiag/imagedraw/textfolder.py -> _build/lib/blockdiag/imagedraw copying src/blockdiag/imagedraw/svg.py -> _build/lib/blockdiag/imagedraw copying src/blockdiag/imagedraw/simplesvg.py -> _build/lib/blockdiag/imagedraw copying src/blockdiag/imagedraw/__init__.py -> _build/lib/blockdiag/imagedraw copying src/blockdiag/imagedraw/pdf.py -> _build/lib/blockdiag/imagedraw creating _build/lib/blockdiag/tests copying src/blockdiag/tests/test_generate_diagram.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/test_command.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/test_builder_group.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/test_utils_fontmap.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/utils.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/test_builder.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/test_imagedraw_textfolder.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/test_utils.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/test_builder_errors.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/test_builder_node.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/test_builder_separate.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/test_imagedraw_utils.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/test_parser.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/test_boot_params.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/test_builder_edge.py -> _build/lib/blockdiag/tests copying src/blockdiag/tests/__init__.py -> _build/lib/blockdiag/tests creating _build/lib/blockdiag/plugins copying src/blockdiag/plugins/autoclass.py -> _build/lib/blockdiag/plugins copying src/blockdiag/plugins/attributes.py -> _build/lib/blockdiag/plugins copying src/blockdiag/plugins/__init__.py -> _build/lib/blockdiag/plugins creating _build/lib/blockdiag/utils copying src/blockdiag/utils/config.py -> _build/lib/blockdiag/utils copying src/blockdiag/utils/myitertools.py -> _build/lib/blockdiag/utils copying src/blockdiag/utils/compat.py -> _build/lib/blockdiag/utils copying src/blockdiag/utils/images.py -> _build/lib/blockdiag/utils copying src/blockdiag/utils/urlutil.py -> _build/lib/blockdiag/utils copying src/blockdiag/utils/fontmap.py -> _build/lib/blockdiag/utils copying src/blockdiag/utils/uuid.py -> _build/lib/blockdiag/utils copying src/blockdiag/utils/__init__.py -> _build/lib/blockdiag/utils copying src/blockdiag/utils/logging.py -> _build/lib/blockdiag/utils copying src/blockdiag/utils/bootstrap.py -> _build/lib/blockdiag/utils creating _build/lib/blockdiag/noderenderer/flowchart copying src/blockdiag/noderenderer/flowchart/input.py -> _build/lib/blockdiag/noderenderer/flowchart copying src/blockdiag/noderenderer/flowchart/loopout.py -> _build/lib/blockdiag/noderenderer/flowchart copying src/blockdiag/noderenderer/flowchart/loopin.py -> _build/lib/blockdiag/noderenderer/flowchart copying src/blockdiag/noderenderer/flowchart/__init__.py -> _build/lib/blockdiag/noderenderer/flowchart copying src/blockdiag/noderenderer/flowchart/terminator.py -> _build/lib/blockdiag/noderenderer/flowchart copying src/blockdiag/noderenderer/flowchart/database.py -> _build/lib/blockdiag/noderenderer/flowchart creating _build/lib/blockdiag/imagedraw/filters copying src/blockdiag/imagedraw/filters/linejump.py -> _build/lib/blockdiag/imagedraw/filters copying src/blockdiag/imagedraw/filters/__init__.py -> _build/lib/blockdiag/imagedraw/filters creating _build/lib/blockdiag/imagedraw/utils copying src/blockdiag/imagedraw/utils/ellipse.py -> _build/lib/blockdiag/imagedraw/utils copying src/blockdiag/imagedraw/utils/__init__.py -> _build/lib/blockdiag/imagedraw/utils creating _build/lib/blockdiag/tests/rst copying src/blockdiag/tests/rst/test_base_directives.py -> _build/lib/blockdiag/tests/rst copying src/blockdiag/tests/rst/test_blockdiag_directives.py -> _build/lib/blockdiag/tests/rst copying src/blockdiag/tests/rst/__init__.py -> _build/lib/blockdiag/tests/rst creating _build/lib/blockdiag/utils/rst copying src/blockdiag/utils/rst/nodes.py -> _build/lib/blockdiag/utils/rst copying src/blockdiag/utils/rst/directives.py -> _build/lib/blockdiag/utils/rst copying src/blockdiag/utils/rst/__init__.py -> _build/lib/blockdiag/utils/rst running egg_info writing src/blockdiag.egg-info/PKG-INFO writing dependency_links to src/blockdiag.egg-info/dependency_links.txt writing entry points to src/blockdiag.egg-info/entry_points.txt writing requirements to src/blockdiag.egg-info/requires.txt writing top-level names to src/blockdiag.egg-info/top_level.txt reading manifest file 'src/blockdiag.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching 'examples/update.sh' adding license file 'LICENSE' writing manifest file 'src/blockdiag.egg-info/SOURCES.txt' /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'blockdiag.tests.VLGothic' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'blockdiag.tests.VLGothic' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'blockdiag.tests.VLGothic' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'blockdiag.tests.VLGothic' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'blockdiag.tests.diagrams' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'blockdiag.tests.diagrams' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'blockdiag.tests.diagrams' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'blockdiag.tests.diagrams' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'blockdiag.tests.diagrams.errors' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'blockdiag.tests.diagrams.errors' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'blockdiag.tests.diagrams.errors' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'blockdiag.tests.diagrams.errors' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) creating _build/lib/blockdiag/tests/VLGothic copying src/blockdiag/tests/VLGothic/LICENSE -> _build/lib/blockdiag/tests/VLGothic copying src/blockdiag/tests/VLGothic/LICENSE.en -> _build/lib/blockdiag/tests/VLGothic copying src/blockdiag/tests/VLGothic/LICENSE_E.mplus -> _build/lib/blockdiag/tests/VLGothic copying src/blockdiag/tests/VLGothic/LICENSE_J.mplus -> _build/lib/blockdiag/tests/VLGothic copying src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf -> _build/lib/blockdiag/tests/VLGothic creating _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/README -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/auto_jumping_edge.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/background_url_image.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/background_url_local.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/beginpoint_color.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/branched.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/circular_ref.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/circular_ref2.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/circular_ref_and_parent_node.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/circular_ref_to_root.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/circular_skipped_edge.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/debian-logo-256color-palettealpha.png -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/define_class.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/diagram_attributes.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/diagram_attributes_order.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/diagram_orientation.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/edge_attribute.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/edge_datamodels.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/edge_label.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/edge_layout_landscape.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/edge_layout_portrait.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/edge_shape.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/edge_styles.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/empty_group.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/empty_group_declaration.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/empty_nested_group.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/endpoint_color.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/flowable_node.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/folded_edge.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_and_skipped_edge.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_attribute.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_children_height.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_children_order.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_children_order2.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_children_order3.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_children_order4.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_declare_as_node_attribute.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_height.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_id_and_node_id_are_not_conflicted.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_label.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_order.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_order2.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_order3.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_orientation.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_sibling.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/group_works_node_decorator.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/invalid.txt -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/labeled_circular_ref.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/large_group_and_node.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/large_group_and_node2.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/large_group_and_two_nodes.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/merge_groups.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/multiple_groups.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/multiple_nested_groups.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/multiple_node_relation.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/multiple_nodes_definition.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/multiple_parent_node.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/nested_group_orientation.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/nested_group_orientation2.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/nested_groups.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/nested_groups_and_edges.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/nested_groups_work_node_decorator.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/nested_skipped_circular.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_attribute.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_attribute_and_group.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_has_block_label.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_has_multilined_label.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_height.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_icon.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_id_includes_dot.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_in_group_follows_outer_node.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_link.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_rotated_labels.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_shape.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_shape_background.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_shape_namespace.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_shape_with_none_shadow.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_shape_with_solid_shadow.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_style_dasharray.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_styles.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/node_width_and_height.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/non_rhombus_relation_height.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/outer_node_follows_node_in_group.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/plugin_attributes.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/plugin_autoclass.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/portrait_dots.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/quoted_node_id.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/reverse_multiple_groups.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/rhombus_relation_height.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/self_ref.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/separate1.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/separate2.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/simple_group.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/single_edge.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/single_node.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_circular.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_down.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_flowchart_rightdown.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_flowchart_rightdown2.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_leftdown.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_portrait_down.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_portrait_flowchart_rightdown.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_portrait_flowchart_rightdown2.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_portrait_leftdown.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_portrait_right.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_portrait_rightdown.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_right.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_rightdown.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_rightup.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_edge_up.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/skipped_twin_circular.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/slided_children.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/stacked_node_and_edges.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/triple_branched.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/twin_circular_ref.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/twin_circular_ref_to_root.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/twin_forked.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/twin_multiple_parent_node.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/two_edges.diag -> _build/lib/blockdiag/tests/diagrams copying src/blockdiag/tests/diagrams/white.gif -> _build/lib/blockdiag/tests/diagrams creating _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/belongs_to_two_groups.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/group_follows_node.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/lexer_error.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/node_follows_group.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_diagram_default_shape.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_diagram_edge_layout.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_diagram_orientation.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_diagram_type.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_edge_class.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_edge_dir.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_edge_hstyle.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_edge_style.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_group_class.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_group_orientation.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_group_shape.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_node_attribute.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_node_class.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_node_shape.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_node_style.diag -> _build/lib/blockdiag/tests/diagrams/errors copying src/blockdiag/tests/diagrams/errors/unknown_plugin.diag -> _build/lib/blockdiag/tests/diagrams/errors + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.CKCqit + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch ++ dirname /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch + cd blockdiag-3.0.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch /usr/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead warnings.warn( running install /usr/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running install_lib creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11 creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag copying _build/lib/blockdiag/parser.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag copying _build/lib/blockdiag/builder.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/minidiamond.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/ellipse.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/actor.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/note.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/dots.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/base.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/square.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/beginpoint.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/diamond.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/textbox.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/none.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/box.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/endpoint.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/circle.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/flowchart copying _build/lib/blockdiag/noderenderer/flowchart/input.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/flowchart copying _build/lib/blockdiag/noderenderer/flowchart/loopout.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/flowchart copying _build/lib/blockdiag/noderenderer/flowchart/loopin.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/flowchart copying _build/lib/blockdiag/noderenderer/flowchart/__init__.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/flowchart copying _build/lib/blockdiag/noderenderer/flowchart/terminator.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/flowchart copying _build/lib/blockdiag/noderenderer/flowchart/database.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/flowchart copying _build/lib/blockdiag/noderenderer/roundedbox.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/__init__.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/cloud.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/noderenderer/mail.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer copying _build/lib/blockdiag/metrics.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag copying _build/lib/blockdiag/elements.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw copying _build/lib/blockdiag/imagedraw/base.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw copying _build/lib/blockdiag/imagedraw/png.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw copying _build/lib/blockdiag/imagedraw/textfolder.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw copying _build/lib/blockdiag/imagedraw/svg.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw copying _build/lib/blockdiag/imagedraw/simplesvg.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/filters copying _build/lib/blockdiag/imagedraw/filters/linejump.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/filters copying _build/lib/blockdiag/imagedraw/filters/__init__.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/filters copying _build/lib/blockdiag/imagedraw/__init__.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw copying _build/lib/blockdiag/imagedraw/pdf.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/utils copying _build/lib/blockdiag/imagedraw/utils/ellipse.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/utils copying _build/lib/blockdiag/imagedraw/utils/__init__.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/utils copying _build/lib/blockdiag/command.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag copying _build/lib/blockdiag/drawer.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/tests/test_generate_diagram.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/tests/test_command.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/tests/test_builder_group.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/tests/test_utils_fontmap.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/tests/utils.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/tests/test_builder.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/tests/test_imagedraw_textfolder.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/VLGothic copying _build/lib/blockdiag/tests/VLGothic/LICENSE -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/VLGothic copying _build/lib/blockdiag/tests/VLGothic/LICENSE_E.mplus -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/VLGothic copying _build/lib/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/VLGothic copying _build/lib/blockdiag/tests/VLGothic/LICENSE_J.mplus -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/VLGothic copying _build/lib/blockdiag/tests/VLGothic/LICENSE.en -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/VLGothic copying _build/lib/blockdiag/tests/test_utils.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/rst copying _build/lib/blockdiag/tests/rst/test_base_directives.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/rst copying _build/lib/blockdiag/tests/rst/test_blockdiag_directives.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/rst copying _build/lib/blockdiag/tests/rst/__init__.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/rst copying _build/lib/blockdiag/tests/test_builder_errors.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/tests/test_builder_node.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/tests/test_builder_separate.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/tests/test_imagedraw_utils.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/tests/test_parser.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/tests/test_boot_params.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/tests/test_builder_edge.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/large_group_and_node2.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/multiple_nodes_definition.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/edge_layout_landscape.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_down.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/empty_group.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/edge_label.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/separate2.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/slided_children.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/quoted_node_id.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/nested_group_orientation2.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/triple_branched.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/stacked_node_and_edges.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_leftdown.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_width_and_height.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_style_dasharray.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/edge_datamodels.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_twin_circular.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/rhombus_relation_height.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/invalid.txt -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/edge_shape.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/separate1.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/non_rhombus_relation_height.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_works_node_decorator.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/README -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/multiple_parent_node.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/multiple_nested_groups.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/white.gif -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_shape_background.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/nested_groups.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_shape_namespace.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/diagram_orientation.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_rightdown.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/empty_group_declaration.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/twin_forked.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_portrait_rightdown.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_circular.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/circular_skipped_edge.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/single_edge.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_portrait_leftdown.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_rightup.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_right.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_id_and_node_id_are_not_conflicted.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_in_group_follows_outer_node.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_declare_as_node_attribute.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_shape_with_solid_shadow.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_up.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_portrait_down.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/large_group_and_two_nodes.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_portrait_right.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/background_url_local.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_styles.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_icon.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_rotated_labels.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/branched.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/edge_styles.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_order2.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_children_height.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_has_multilined_label.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/twin_circular_ref_to_root.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/plugin_autoclass.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/nested_group_orientation.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_flowchart_rightdown.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/two_edges.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/self_ref.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/flowable_node.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/nested_groups_and_edges.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_flowchart_rightdown2.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/edge_attribute.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/circular_ref_to_root.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/outer_node_follows_node_in_group.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/labeled_circular_ref.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/circular_ref.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_portrait_flowchart_rightdown2.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/merge_groups.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_height.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_children_order.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/nested_groups_work_node_decorator.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/multiple_groups.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_sibling.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_attribute_and_group.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_group_shape.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_group_orientation.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_node_class.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_edge_style.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_edge_class.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/node_follows_group.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/lexer_error.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_node_attribute.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_group_class.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_edge_dir.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_node_style.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_node_shape.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/belongs_to_two_groups.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_plugin.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_diagram_type.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_edge_hstyle.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_diagram_orientation.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_diagram_default_shape.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/group_follows_node.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/errors/unknown_diagram_edge_layout.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams/errors copying _build/lib/blockdiag/tests/diagrams/group_children_order4.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/large_group_and_node.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/twin_multiple_parent_node.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/folded_edge.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/twin_circular_ref.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_shape.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge_portrait_flowchart_rightdown.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/plugin_attributes.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/reverse_multiple_groups.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_attribute.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/circular_ref2.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_id_includes_dot.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_height.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/diagram_attributes.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/multiple_node_relation.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/simple_group.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/edge_layout_portrait.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/portrait_dots.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/nested_skipped_circular.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/endpoint_color.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_and_skipped_edge.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/auto_jumping_edge.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_children_order3.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/circular_ref_and_parent_node.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_label.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_orientation.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_order.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/beginpoint_color.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_order3.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_link.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/group_children_order2.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/empty_nested_group.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/skipped_edge.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/background_url_image.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_attribute.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/diagram_attributes_order.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_shape_with_none_shadow.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/define_class.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/debian-logo-256color-palettealpha.png -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/node_has_block_label.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/diagrams/single_node.diag -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/diagrams copying _build/lib/blockdiag/tests/__init__.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests copying _build/lib/blockdiag/__init__.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/plugins copying _build/lib/blockdiag/plugins/autoclass.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/plugins copying _build/lib/blockdiag/plugins/attributes.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/plugins copying _build/lib/blockdiag/plugins/__init__.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/plugins creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils creating /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/rst copying _build/lib/blockdiag/utils/rst/nodes.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/rst copying _build/lib/blockdiag/utils/rst/directives.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/rst copying _build/lib/blockdiag/utils/rst/__init__.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/rst copying _build/lib/blockdiag/utils/config.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils copying _build/lib/blockdiag/utils/myitertools.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils copying _build/lib/blockdiag/utils/compat.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils copying _build/lib/blockdiag/utils/images.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils copying _build/lib/blockdiag/utils/urlutil.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils copying _build/lib/blockdiag/utils/fontmap.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils copying _build/lib/blockdiag/utils/uuid.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils copying _build/lib/blockdiag/utils/__init__.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils copying _build/lib/blockdiag/utils/logging.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils copying _build/lib/blockdiag/utils/bootstrap.py -> /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/parser.py to parser.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/builder.py to builder.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/minidiamond.py to minidiamond.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/ellipse.py to ellipse.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/actor.py to actor.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/note.py to note.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/dots.py to dots.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/base.py to base.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/square.py to square.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/beginpoint.py to beginpoint.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/diamond.py to diamond.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/textbox.py to textbox.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/none.py to none.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/box.py to box.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/endpoint.py to endpoint.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/circle.py to circle.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/flowchart/input.py to input.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/flowchart/loopout.py to loopout.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/flowchart/loopin.py to loopin.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/flowchart/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/flowchart/terminator.py to terminator.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/flowchart/database.py to database.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/roundedbox.py to roundedbox.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/cloud.py to cloud.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/noderenderer/mail.py to mail.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/metrics.py to metrics.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/elements.py to elements.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/base.py to base.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/png.py to png.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/textfolder.py to textfolder.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/svg.py to svg.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/simplesvg.py to simplesvg.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/filters/linejump.py to linejump.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/filters/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/pdf.py to pdf.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/utils/ellipse.py to ellipse.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/imagedraw/utils/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/command.py to command.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/drawer.py to drawer.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_generate_diagram.py to test_generate_diagram.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_command.py to test_command.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_builder_group.py to test_builder_group.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_utils_fontmap.py to test_utils_fontmap.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/utils.py to utils.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_builder.py to test_builder.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_imagedraw_textfolder.py to test_imagedraw_textfolder.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_utils.py to test_utils.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/rst/test_base_directives.py to test_base_directives.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/rst/test_blockdiag_directives.py to test_blockdiag_directives.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/rst/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_builder_errors.py to test_builder_errors.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_builder_node.py to test_builder_node.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_builder_separate.py to test_builder_separate.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_imagedraw_utils.py to test_imagedraw_utils.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_parser.py to test_parser.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_boot_params.py to test_boot_params.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/test_builder_edge.py to test_builder_edge.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/tests/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/plugins/autoclass.py to autoclass.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/plugins/attributes.py to attributes.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/plugins/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/rst/nodes.py to nodes.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/rst/directives.py to directives.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/rst/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/config.py to config.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/myitertools.py to myitertools.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/compat.py to compat.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/images.py to images.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/urlutil.py to urlutil.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/fontmap.py to fontmap.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/uuid.py to uuid.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/logging.py to logging.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag/utils/bootstrap.py to bootstrap.cpython-311.pyc writing byte-compilation script '/tmp/tmp4bza93_m.py' /usr/bin/python3 /tmp/tmp4bza93_m.py removing /tmp/tmp4bza93_m.py running install_egg_info running egg_info writing src/blockdiag.egg-info/PKG-INFO writing dependency_links to src/blockdiag.egg-info/dependency_links.txt writing entry points to src/blockdiag.egg-info/entry_points.txt writing requirements to src/blockdiag.egg-info/requires.txt writing top-level names to src/blockdiag.egg-info/top_level.txt reading manifest file 'src/blockdiag.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching 'examples/update.sh' adding license file 'LICENSE' writing manifest file 'src/blockdiag.egg-info/SOURCES.txt' Copying src/blockdiag.egg-info to /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages/blockdiag-3.0.0-py3.11.egg-info running install_scripts Installing blockdiag script to /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/bin + rm -rfv /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/bin/__pycache__ + install -pm 644 -D blockdiag.1 /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/share/man/man1/blockdiag.1 + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 3.0.0-4.ocs23 --unique-debug-suffix -3.0.0-4.ocs23.noarch --unique-debug-src-base python-blockdiag-3.0.0-4.ocs23.noarch -S debugsourcefiles.list /builddir/build/BUILD/blockdiag-3.0.0 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.GGPkER + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd blockdiag-3.0.0 + ALL_TESTS=1 + TOX_TESTENV_PASSENV='*' + PYTHONDONTWRITEBYTECODE=1 + PATH=/builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib64/python3.11/site-packages:/builddir/build/BUILDROOT/python-blockdiag-3.0.0-4.ocs23.noarch/usr/lib/python3.11/site-packages + HOSTNAME=rpmbuild + /usr/bin/python3 -m tox --current-env -q --recreate -e py311 ........EEE.E.EEEEEEEEEEEEEEEEEEEEEE...EEEEEEEEEEEEE.E..............................................................................................................................................FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.SSSSFFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF..FF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FSFSFFF.FFF.FFF.FFF.FFF.FFF.FFF.FFF.FEE.ERROR: 'ImageDraw' object has no attribute 'textsize' F......................................... ====================================================================== ERROR: test_align_option1 (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_align_option1) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 298, in test_align_option1 doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_align_option2 (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_align_option2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 310, in test_align_option2 doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_align_option3 (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_align_option3) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 322, in test_align_option3 doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_alt_option (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_alt_option) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 286, in test_alt_option doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_call_with_brace (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_call_with_brace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 265, in test_call_with_brace doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_call_without_braces (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_call_without_braces) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 275, in test_call_without_braces doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_caption_option (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_caption_option) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 349, in test_caption_option doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_caption_option2 (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_caption_option2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 365, in test_caption_option2 doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_caption_option_and_align_option (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_caption_option_and_align_option) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 386, in test_caption_option_and_align_option doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_class_option (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_class_option) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 466, in test_class_option doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_cleanup (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_cleanup) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 75, in wrap func(*args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 79, in test_cleanup publish_doctree(text) File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: plugin "autoclass" is already loaded. ignored. --------------------- >> end captured stdout << ---------------------- ====================================================================== ERROR: test_desctable_option (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_desctable_option) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 516, in test_desctable_option doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_desctable_option_for_edges (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_desctable_option_for_edges) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 764, in test_desctable_option_for_edges doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_desctable_option_for_nodes_and_edges (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_desctable_option_for_nodes_and_edges) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 807, in test_desctable_option_for_nodes_and_edges doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_desctable_option_using_node_group (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_desctable_option_using_node_group) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 564, in test_desctable_option_using_node_group doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_desctable_option_with_numbered (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_desctable_option_with_numbered) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 682, in test_desctable_option_with_numbered doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_desctable_option_with_numbered_and_description (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_desctable_option_with_numbered_and_description) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 719, in test_desctable_option_with_numbered_and_description doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_desctable_option_with_rest_markups (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_desctable_option_with_rest_markups) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 624, in test_desctable_option_with_rest_markups doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_desctable_option_without_description (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_desctable_option_without_description) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 552, in test_desctable_option_without_description doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_figclass_option (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_figclass_option) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 503, in test_figclass_option doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_figwidth_option1 (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_figwidth_option1) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 479, in test_figwidth_option1 doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_figwidth_option2 (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_figwidth_option2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 491, in test_figwidth_option2 doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_height_option (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_height_option) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 430, in test_height_option doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_maxwidth_option (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_maxwidth_option) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 75, in wrap func(*args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 405, in test_maxwidth_option doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- :1: (WARNING/2) :maxwidth: option is deprecated. Use :width: option. --------------------- >> end captured stdout << ---------------------- ====================================================================== ERROR: test_name_option (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_name_option) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 454, in test_name_option doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_scale_option (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_scale_option) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 442, in test_scale_option doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_setup_inline_svg_is_false (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_setup_inline_svg_is_false) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 166, in test_setup_inline_svg_is_false doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_setup_inline_svg_is_true (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_setup_inline_svg_is_true) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 152, in test_setup_inline_svg_is_true doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 239, in node2image return self.node2image_inline_svg(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 270, in node2image_inline_svg content = drawer.save(size) ^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_setup_inline_svg_is_true_and_height_option1 (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_setup_inline_svg_is_true_and_height_option1) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 225, in test_setup_inline_svg_is_true_and_height_option1 doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 239, in node2image return self.node2image_inline_svg(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 270, in node2image_inline_svg content = drawer.save(size) ^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_setup_inline_svg_is_true_and_height_option2 (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_setup_inline_svg_is_true_and_height_option2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 238, in test_setup_inline_svg_is_true_and_height_option2 doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 239, in node2image return self.node2image_inline_svg(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 270, in node2image_inline_svg content = drawer.save(size) ^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_setup_inline_svg_is_true_and_width_and_height_option (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_setup_inline_svg_is_true_and_width_and_height_option) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 252, in test_setup_inline_svg_is_true_and_width_and_height_option doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 239, in node2image return self.node2image_inline_svg(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 270, in node2image_inline_svg content = drawer.save(size) ^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_setup_inline_svg_is_true_and_width_option1 (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_setup_inline_svg_is_true_and_width_option1) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 199, in test_setup_inline_svg_is_true_and_width_option1 doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 239, in node2image return self.node2image_inline_svg(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 270, in node2image_inline_svg content = drawer.save(size) ^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_setup_inline_svg_is_true_and_width_option2 (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_setup_inline_svg_is_true_and_width_option2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 212, in test_setup_inline_svg_is_true_and_width_option2 doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 239, in node2image return self.node2image_inline_svg(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 270, in node2image_inline_svg content = drawer.save(size) ^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_setup_inline_svg_is_true_but_format_isnt_svg (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_setup_inline_svg_is_true_but_format_isnt_svg) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 177, in test_setup_inline_svg_is_true_but_format_isnt_svg doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_setup_inline_svg_is_true_with_multibytes (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_setup_inline_svg_is_true_with_multibytes) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 188, in test_setup_inline_svg_is_true_with_multibytes doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' ====================================================================== ERROR: test_setup_nodoctype_is_false (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_setup_nodoctype_is_false) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 118, in test_setup_nodoctype_is_false doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_setup_nodoctype_is_true (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_setup_nodoctype_is_true) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 107, in test_setup_nodoctype_is_true doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_setup_noviewbox_is_false (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_setup_noviewbox_is_false) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 141, in test_setup_noviewbox_is_false doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_setup_noviewbox_is_true (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_setup_noviewbox_is_true) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 130, in test_setup_noviewbox_is_true doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: test_width_option (blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives.test_width_option) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/rst/test_blockdiag_directives.py", line 418, in test_width_option doctree = publish_doctree(text) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 524, in publish_doctree _output, publisher = publish_programmatically( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 722, in publish_programmatically output = publisher.publish(enable_exit_status=enable_exit_status) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/core.py", line 234, in publish self.document = self.reader.read(self.source, self.parser, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 70, in read self.parse() File "/usr/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 169, in run results = StateMachineWS.run(self, input_lines, input_offset, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 233, in run context, next_state, result = self.check_line( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/statemachine.py", line 445, in check_line return method(match, context, next_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2355, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct return method(self, expmatch) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2104, in directive return self.run_directive( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive result = directive_instance.run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 54, in decorator return fn(*args) ^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 178, in run results[0] = self.node2image(node, diagram) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/rst/directives.py", line 254, in node2image drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize' ====================================================================== ERROR: blockdiag.tests.test_generate_diagram.svg_includes_source_code_tag_test ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 75, in wrap func(*args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/test_generate_diagram.py", line 179, in svg_includes_source_code_tag_test tree = ElementTree.parse(tmpfile) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/xml/etree/ElementTree.py", line 1218, in parse tree.parse(source, parser) File "/usr/lib64/python3.11/xml/etree/ElementTree.py", line 580, in parse self._root = parser._parse_whole(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ xml.etree.ElementTree.ParseError: no element found: line 1, column 0 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 133, in run self.runTest(result) File "/usr/lib/python3.11/site-packages/nose/case.py", line 151, in runTest test(result) File "/usr/lib64/python3.11/unittest/case.py", line 678, in __call__ return self.run(*args, **kwds) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/unittest/case.py", line 622, in run with outcome.testPartExecutor(self): File "/usr/lib64/python3.11/contextlib.py", line 155, in __exit__ self.gen.throw(typ, value, traceback) File "/usr/lib64/python3.11/unittest/case.py", line 74, in testPartExecutor _addError(self.result, test_case, exc_info) File "/usr/lib64/python3.11/unittest/case.py", line 99, in _addError result.addError(test, exc_info) File "/usr/lib/python3.11/site-packages/nose/proxy.py", line 132, in addError self.result.addError(self.test, self._prepareErr(err)) File "/usr/lib/python3.11/site-packages/nose/result.py", line 61, in addError exc_info = self._exc_info_to_string(err, test) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/nose/result.py", line 187, in _exc_info_to_string return _TextTestResult._exc_info_to_string(self, err, test) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/unittest/result.py", line 177, in _exc_info_to_string tb_e = traceback.TracebackException( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/traceback.py", line 704, in __init__ self.filename = exc_value.filename ^^^^^^^^^^^^^^^^^^ AttributeError: 'ParseError' object has no attribute 'filename' ====================================================================== ERROR: blockdiag.tests.test_generate_diagram.svg_sanitizes_url_on_error_test ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 75, in wrap func(*args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/test_generate_diagram.py", line 202, in svg_sanitizes_url_on_error_test tree = ElementTree.parse(tmpfile) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/xml/etree/ElementTree.py", line 1218, in parse tree.parse(source, parser) File "/usr/lib64/python3.11/xml/etree/ElementTree.py", line 580, in parse self._root = parser._parse_whole(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ xml.etree.ElementTree.ParseError: no element found: line 1, column 0 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 133, in run self.runTest(result) File "/usr/lib/python3.11/site-packages/nose/case.py", line 151, in runTest test(result) File "/usr/lib64/python3.11/unittest/case.py", line 678, in __call__ return self.run(*args, **kwds) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/unittest/case.py", line 622, in run with outcome.testPartExecutor(self): File "/usr/lib64/python3.11/contextlib.py", line 155, in __exit__ self.gen.throw(typ, value, traceback) File "/usr/lib64/python3.11/unittest/case.py", line 74, in testPartExecutor _addError(self.result, test_case, exc_info) File "/usr/lib64/python3.11/unittest/case.py", line 99, in _addError result.addError(test, exc_info) File "/usr/lib/python3.11/site-packages/nose/proxy.py", line 132, in addError self.result.addError(self.test, self._prepareErr(err)) File "/usr/lib/python3.11/site-packages/nose/result.py", line 61, in addError exc_info = self._exc_info_to_string(err, test) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/nose/result.py", line 187, in _exc_info_to_string return _TextTestResult._exc_info_to_string(self, err, test) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/unittest/result.py", line 177, in _exc_info_to_string tb_e = traceback.TracebackException( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/traceback.py", line 704, in __init__ self.filename = exc_value.filename ^^^^^^^^^^^^^^^^^^ AttributeError: 'ParseError' object has no attribute 'filename' ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/large_group_and_node2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/large_group_and_node2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/large_group_and_node2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_nodes_definition.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_nodes_definition.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_nodes_definition.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_layout_landscape.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_layout_landscape.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_layout_landscape.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_down.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_down.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_down.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/empty_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/empty_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/empty_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_label.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_label.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_label.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/separate2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/separate2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/separate2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/slided_children.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/slided_children.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/slided_children.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/quoted_node_id.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/quoted_node_id.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/quoted_node_id.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_group_orientation2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_group_orientation2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_group_orientation2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/triple_branched.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/triple_branched.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/triple_branched.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/stacked_node_and_edges.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/stacked_node_and_edges.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/stacked_node_and_edges.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_leftdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_leftdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_leftdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_width_and_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_width_and_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_width_and_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_style_dasharray.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_style_dasharray.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_style_dasharray.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_datamodels.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_datamodels.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_datamodels.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_twin_circular.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_twin_circular.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_twin_circular.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/rhombus_relation_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/rhombus_relation_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/rhombus_relation_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_shape.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_shape.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_shape.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/separate1.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/separate1.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/separate1.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/non_rhombus_relation_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/non_rhombus_relation_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/non_rhombus_relation_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_works_node_decorator.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_works_node_decorator.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_works_node_decorator.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_parent_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_parent_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_parent_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_nested_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_nested_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_nested_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape_background.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 103, in build_diagram drawer.draw() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 89, in draw self._draw_background() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 115, in _draw_background shape = r(node, self.metrics) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/noderenderer/actor.py", line 30, in __init__ textsize = metrics.textsize(node.label, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/metrics.py", line 202, in textsize return self.drawer.textsize(string, font, maxwidth=width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/base.py", line 54, in textsize textbox = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape_background.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 103, in build_diagram drawer.draw() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 89, in draw self._draw_background() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 115, in _draw_background shape = r(node, self.metrics) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/noderenderer/actor.py", line 30, in __init__ textsize = metrics.textsize(node.label, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/metrics.py", line 202, in textsize return self.drawer.textsize(string, font, maxwidth=width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/base.py", line 54, in textsize textbox = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape_background.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 103, in build_diagram drawer.draw() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 89, in draw self._draw_background() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 115, in _draw_background shape = r(node, self.metrics) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/noderenderer/actor.py", line 30, in __init__ textsize = metrics.textsize(node.label, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/metrics.py", line 202, in textsize return self.drawer.textsize(string, font, maxwidth=width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/base.py", line 54, in textsize textbox = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape_namespace.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape_namespace.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape_namespace.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/diagram_orientation.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/diagram_orientation.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/diagram_orientation.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_rightdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_rightdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_rightdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/empty_group_declaration.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/empty_group_declaration.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/empty_group_declaration.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/twin_forked.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/twin_forked.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/twin_forked.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_rightdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_rightdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_rightdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_circular.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_circular.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_circular.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_skipped_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_skipped_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_skipped_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/single_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/single_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/single_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_leftdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_leftdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_leftdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_rightup.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_rightup.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_rightup.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_right.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_right.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_right.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_id_and_node_id_are_not_conflicted.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_id_and_node_id_are_not_conflicted.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_id_and_node_id_are_not_conflicted.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_in_group_follows_outer_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_in_group_follows_outer_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_in_group_follows_outer_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_declare_as_node_attribute.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_declare_as_node_attribute.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_declare_as_node_attribute.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape_with_solid_shadow.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 103, in build_diagram drawer.draw() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 89, in draw self._draw_background() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 115, in _draw_background shape = r(node, self.metrics) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/noderenderer/actor.py", line 30, in __init__ textsize = metrics.textsize(node.label, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/metrics.py", line 202, in textsize return self.drawer.textsize(string, font, maxwidth=width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/base.py", line 54, in textsize textbox = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape_with_solid_shadow.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 103, in build_diagram drawer.draw() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 89, in draw self._draw_background() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 115, in _draw_background shape = r(node, self.metrics) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/noderenderer/actor.py", line 30, in __init__ textsize = metrics.textsize(node.label, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/metrics.py", line 202, in textsize return self.drawer.textsize(string, font, maxwidth=width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/base.py", line 54, in textsize textbox = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape_with_solid_shadow.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 103, in build_diagram drawer.draw() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 89, in draw self._draw_background() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 115, in _draw_background shape = r(node, self.metrics) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/noderenderer/actor.py", line 30, in __init__ textsize = metrics.textsize(node.label, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/metrics.py", line 202, in textsize return self.drawer.textsize(string, font, maxwidth=width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/base.py", line 54, in textsize textbox = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_up.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_up.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_up.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_down.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_down.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_down.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/large_group_and_two_nodes.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/large_group_and_two_nodes.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/large_group_and_two_nodes.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_right.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_right.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_right.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/background_url_local.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/background_url_local.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 373, in image image.thumbnail((w, h), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/background_url_local.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_styles.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_styles.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_styles.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_rotated_labels.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_rotated_labels.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_rotated_labels.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/branched.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/branched.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/branched.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_styles.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_styles.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_styles.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_order2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_order2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_order2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_has_multilined_label.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_has_multilined_label.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_has_multilined_label.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/twin_circular_ref_to_root.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/twin_circular_ref_to_root.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/twin_circular_ref_to_root.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/plugin_autoclass.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/plugin_autoclass.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/plugin_autoclass.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_group_orientation.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_group_orientation.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_group_orientation.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_flowchart_rightdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_flowchart_rightdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_flowchart_rightdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/two_edges.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/two_edges.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/two_edges.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/self_ref.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/self_ref.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/self_ref.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/flowable_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/flowable_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/flowable_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_groups_and_edges.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_groups_and_edges.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_groups_and_edges.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_flowchart_rightdown2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_flowchart_rightdown2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_flowchart_rightdown2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_attribute.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_attribute.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_attribute.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_ref_to_root.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_ref_to_root.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_ref_to_root.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/outer_node_follows_node_in_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/outer_node_follows_node_in_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/outer_node_follows_node_in_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/labeled_circular_ref.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/labeled_circular_ref.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/labeled_circular_ref.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_ref.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_ref.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_ref.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_flowchart_rightdown2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_flowchart_rightdown2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_flowchart_rightdown2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/merge_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/merge_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/merge_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_order.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_order.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_order.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_groups_work_node_decorator.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_groups_work_node_decorator.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_groups_work_node_decorator.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_sibling.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_sibling.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_sibling.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_attribute_and_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_attribute_and_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_attribute_and_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_order4.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_order4.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_order4.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/large_group_and_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/large_group_and_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/large_group_and_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/twin_multiple_parent_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/twin_multiple_parent_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/twin_multiple_parent_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/folded_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/folded_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/folded_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/twin_circular_ref.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/twin_circular_ref.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/twin_circular_ref.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 103, in build_diagram drawer.draw() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 89, in draw self._draw_background() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 115, in _draw_background shape = r(node, self.metrics) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/noderenderer/actor.py", line 30, in __init__ textsize = metrics.textsize(node.label, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/metrics.py", line 202, in textsize return self.drawer.textsize(string, font, maxwidth=width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/base.py", line 54, in textsize textbox = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 103, in build_diagram drawer.draw() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 89, in draw self._draw_background() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 115, in _draw_background shape = r(node, self.metrics) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/noderenderer/actor.py", line 30, in __init__ textsize = metrics.textsize(node.label, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/metrics.py", line 202, in textsize return self.drawer.textsize(string, font, maxwidth=width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/base.py", line 54, in textsize textbox = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 103, in build_diagram drawer.draw() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 89, in draw self._draw_background() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 115, in _draw_background shape = r(node, self.metrics) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/noderenderer/actor.py", line 30, in __init__ textsize = metrics.textsize(node.label, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/metrics.py", line 202, in textsize return self.drawer.textsize(string, font, maxwidth=width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/base.py", line 54, in textsize textbox = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_flowchart_rightdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_flowchart_rightdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge_portrait_flowchart_rightdown.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/plugin_attributes.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/plugin_attributes.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/plugin_attributes.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/reverse_multiple_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/reverse_multiple_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/reverse_multiple_groups.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_attribute.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_attribute.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_attribute.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_ref2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_ref2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_ref2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_id_includes_dot.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_id_includes_dot.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_id_includes_dot.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_height.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/diagram_attributes.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 64, in get return VerticalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 86, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 173, in _lines for folded in splittext(self, line, maxheight, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 90, in textsize size = [self.drawer.textlinesize(c, self.font) for c in text] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 90, in size = [self.drawer.textlinesize(c, self.font) for c in text] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/diagram_attributes.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 64, in get return VerticalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 86, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 173, in _lines for folded in splittext(self, line, maxheight, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 90, in textsize size = [self.drawer.textlinesize(c, self.font) for c in text] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 90, in size = [self.drawer.textlinesize(c, self.font) for c in text] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/diagram_attributes.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_node_relation.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_node_relation.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/multiple_node_relation.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/simple_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/simple_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/simple_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_layout_portrait.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_layout_portrait.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/edge_layout_portrait.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- WARNING: edge_layout is very experimental feature! Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/portrait_dots.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 183, in save return self.target.save(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 407, in save self._image.thumbnail(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/portrait_dots.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_skipped_circular.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_skipped_circular.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/nested_skipped_circular.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/endpoint_color.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/endpoint_color.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/endpoint_color.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_and_skipped_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_and_skipped_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_and_skipped_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/auto_jumping_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/auto_jumping_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/auto_jumping_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_order3.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_order3.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_order3.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_ref_and_parent_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_ref_and_parent_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/circular_ref_and_parent_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_label.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_label.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_label.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_orientation.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_orientation.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_orientation.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_order.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_order.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_order.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/beginpoint_color.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/beginpoint_color.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/beginpoint_color.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_order3.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_order3.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_order3.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_link.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 74, in __call__ self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 61, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_link.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_link.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_order2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_order2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/group_children_order2.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/empty_nested_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/empty_nested_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/empty_nested_group.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/skipped_edge.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/background_url_image.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/background_url_image.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_attribute.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_attribute.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_attribute.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/diagram_attributes_order.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/diagram_attributes_order.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/diagram_attributes_order.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape_with_none_shadow.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 103, in build_diagram drawer.draw() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 96, in draw self._draw_elements(**kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 127, in _draw_elements self.node(node, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 146, in node shape = r(node, self.metrics) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/noderenderer/actor.py", line 30, in __init__ textsize = metrics.textsize(node.label, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/metrics.py", line 202, in textsize return self.drawer.textsize(string, font, maxwidth=width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/base.py", line 54, in textsize textbox = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape_with_none_shadow.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 103, in build_diagram drawer.draw() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 96, in draw self._draw_elements(**kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 127, in _draw_elements self.node(node, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 146, in node shape = r(node, self.metrics) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/noderenderer/actor.py", line 30, in __init__ textsize = metrics.textsize(node.label, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/metrics.py", line 202, in textsize return self.drawer.textsize(string, font, maxwidth=width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/base.py", line 54, in textsize textbox = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_shape_with_none_shadow.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 103, in build_diagram drawer.draw() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 96, in draw self._draw_elements(**kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 127, in _draw_elements self.node(node, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 146, in node shape = r(node, self.metrics) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/noderenderer/actor.py", line 30, in __init__ textsize = metrics.textsize(node.label, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/metrics.py", line 91, in _ ret = value(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/metrics.py", line 202, in textsize return self.drawer.textsize(string, font, maxwidth=width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/base.py", line 54, in textsize textbox = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/define_class.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/define_class.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/define_class.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_has_block_label.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_has_block_label.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/node_has_block_label.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/single_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/single_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/single_node.diag', ['-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 43, in build_diagram return super(BlockdiagApp, self).build_diagram(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 108, in build_diagram drawer.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate_with_separate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/separate2.diag', ['--separate', '-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 57, in build_diagram draw.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate_with_separate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/separate2.diag', ['--separate', '-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 57, in build_diagram draw.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate_with_separate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/separate2.diag', ['--separate', '-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 57, in build_diagram draw.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate_with_separate(, 'svg', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/separate1.diag', ['--separate', '-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 57, in build_diagram draw.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 136, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/svg.py", line 116, in textlinesize return self._pil_drawer.textlinesize(string, font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate_with_separate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/separate1.diag', ['--separate', '-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 57, in build_diagram draw.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 346, in textarea lines = self.textfolder(box, string, font, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 66, in get return HorizontalTextFolder(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 208, in __init__ self._result = self._lines() ^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 285, in _lines for folded in splittext(self, line, maxwidth, measure): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 41, in splittext textsize = metrics.textsize(text[0:i]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/textfolder.py", line 212, in textsize textsize = self.drawer.textlinesize(text, self.font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/utils/__init__.py", line 65, in func fn.cache[key] = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 282, in textlinesize size = Size(*ttfont.getsize(string)) ^^^^^^^^^^^^^^ AttributeError: 'FreeTypeFont' object has no attribute 'getsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.test_generate_with_separate(, 'png', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/diagrams/separate1.diag', ['--separate', '-f', '/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', '--antialias']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 78, in wrap raise AssertionError('Caught error') AssertionError: Caught error -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- Traceback (most recent call last): File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/utils/bootstrap.py", line 54, in run return self.build_diagram(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/command.py", line 57, in build_diagram draw.save() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/drawer.py", line 188, in save return self.drawer.save(self.filename, size, self.format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 182, in save self._run() File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/filters/linejump.py", line 109, in _run method(self.target, *args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/imagedraw/png.py", line 150, in resizeCanvas self._image = self._image.resize(size, Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.ghostscript_not_found_test ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/utils.py", line 75, in wrap func(*args, **kwargs) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/test_generate_diagram.py", line 157, in ghostscript_not_found_test assert 'Could not convert image:' in sys.stderr.getvalue() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: -------------------- >> begin captured stdout << --------------------- ---[ stderr ] --- ERROR: 'ImageDraw' object has no attribute 'textsize' --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: blockdiag.tests.test_generate_diagram.stdin_test ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/blockdiag-3.0.0/src/blockdiag/tests/test_generate_diagram.py", line 135, in stdin_test assert ret == 0 ^^^^^^^^ AssertionError ---------------------------------------------------------------------- Ran 718 tests in 36.604s FAILED (SKIP=6, errors=42, failures=354) ERROR: InvocationError for command /usr/bin/nosetests (exited with code 1) ___________________________________ summary ____________________________________ ERROR: py311: commands failed error: Bad exit status from /var/tmp/rpm-tmp.GGPkER (%check) Bad exit status from /var/tmp/rpm-tmp.GGPkER (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-blockdiag.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-blockdiag.spec