Python-exdxf bricht beim conpilieren ab

Ich wollte Updates einspielen und dabei wurde auch die python-exdxf angeboten.
Leider bricht sie jedesmal ab, mit der Meldung:

...

../tests/test_08_addons/test_814_text2path.py:421: AssertionError
___________ TestMakePathsFromEntity.test_rotation_90[get_paths_bbox] ___________

self = <test_814_text2path.TestMakePathsFromEntity object at 0x7f5be8e259f0>
get_bbox = <function get_paths_bbox at 0x7f5be8e7b880>

    def test_rotation_90(self, get_bbox):
        # Horizontal reference measurements:
        bbox_hor = get_bbox(
            make_text("TEXT", (7, 7), TextEntityAlignment.MIDDLE_CENTER)
        )
    
        text_vert = make_text(
            "TEXT", (7, 7), TextEntityAlignment.MIDDLE_CENTER, rotation=90
        )
        bbox_vert = get_bbox(text_vert)
>       assert bbox_hor.center == bbox_vert.center
E       assert Vec3(7.0, 6.857890625, 0.0) == Vec3(7.142109375, 7.0, 0.0)
E         Use -v to get more diff

../tests/test_08_addons/test_814_text2path.py:421: AssertionError
__________ TestMakePathsFromEntity.test_rotation_90[get_hatches_bbox] __________

self = <test_814_text2path.TestMakePathsFromEntity object at 0x7f5be8e25750>
get_bbox = <function get_hatches_bbox at 0x7f5be8e7b910>

    def test_rotation_90(self, get_bbox):
        # Horizontal reference measurements:
        bbox_hor = get_bbox(
            make_text("TEXT", (7, 7), TextEntityAlignment.MIDDLE_CENTER)
        )
    
        text_vert = make_text(
            "TEXT", (7, 7), TextEntityAlignment.MIDDLE_CENTER, rotation=90
        )
        bbox_vert = get_bbox(text_vert)
>       assert bbox_hor.center == bbox_vert.center
E       assert Vec3(7.0, 6.857890625, 0.0) == Vec3(7.142109375, 7.0, 0.0)
E         Use -v to get more diff

../tests/test_08_addons/test_814_text2path.py:421: AssertionError
=============================== warnings summary ===============================
integration_tests/test_drawing_matplotlib_backend.py::test_get_text_width
  /usr/lib/python3.10/site-packages/matplotlib/backends/backend_qt.py:136: DeprecationWarning: Enum value 'Qt::ApplicationAttribute.AA_EnableHighDpiScaling' is marked as deprecated, please check the documentation for more information.
    QtWidgets.QApplication.setAttribute(

integration_tests/test_drawing_matplotlib_backend.py::test_get_text_width
  /usr/lib/python3.10/site-packages/matplotlib/backends/backend_qt.py:154: DeprecationWarning: Enum value 'Qt::ApplicationAttribute.AA_UseHighDpiPixmaps' is marked as deprecated, please check the documentation for more information.
    app.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps)  # Only for Qt<6.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED ../tests/test_07_render/test_708d_qpainter_path_tools.py::TestFromQPainterPath::test_line_to
FAILED ../tests/test_07_render/test_708d_qpainter_path_tools.py::TestFromQPainterPath::test_cubic_to
FAILED ../tests/test_07_render/test_708d_qpainter_path_tools.py::TestFromQPainterPath::test_two_lines
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_text_path_height_for_exact_drawing_units[0.05]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_text_path_height_for_exact_drawing_units[1]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_text_path_height_for_exact_drawing_units[2]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_text_path_height_for_exact_drawing_units[100]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_text_path_height_for_exact_drawing_units[-1]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_text_path_height_for_exact_drawing_units[-2]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_text_path_height_for_exact_drawing_units[-100]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_path_coordinates_for_positive_size[0.05]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_path_coordinates_for_positive_size[1]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_path_coordinates_for_positive_size[2]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_path_coordinates_for_positive_size[100]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_path_coordinates_for_negative_size[-0.05]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_path_coordinates_for_negative_size[-1]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_path_coordinates_for_negative_size[-2]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_path_coordinates_for_negative_size[-100]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_length_for_fit_alignment[0.05]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_length_for_fit_alignment[1]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_length_for_fit_alignment[2]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_length_for_fit_alignment[100]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_scaled_height_and_length_for_aligned_text[0.05]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_scaled_height_and_length_for_aligned_text[1]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_scaled_height_and_length_for_aligned_text[2]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathFromString::test_scaled_height_and_length_for_aligned_text[100]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakeHatchesFromString::test_total_length_for_fit_alignment
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_text_height[get_path_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_text_height[get_paths_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_text_height[get_hatches_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_alignment_bottom[get_path_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_alignment_bottom[get_paths_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_alignment_bottom[get_hatches_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_alignment_middle[get_path_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_alignment_middle[get_paths_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_alignment_middle[get_hatches_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_alignment_top[get_path_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_alignment_top[get_paths_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_alignment_top[get_hatches_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_alignment_fit[get_path_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_alignment_fit[get_paths_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_alignment_fit[get_hatches_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_rotation_90[get_path_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_rotation_90[get_paths_bbox]
FAILED ../tests/test_08_addons/test_814_text2path.py::TestMakePathsFromEntity::test_rotation_90[get_hatches_bbox]
===== 45 failed, 6710 passed, 41 skipped, 2 warnings in 219.93s (0:03:39) ======
==> FEHLER: Ein Fehler geschah in check().
    Breche ab...

Keine Ahnung warum aber es klappte, auch nicht wenn ich erst alles andere einspielte und dann nochmal eine Versuch unternahm.

Weiß von euch woran es liegt ujnd wie man es wieder installiert bekommt.?
Vie vorige Version 0.17.2 tut noch ihren Dienst.

Ich weiß zwar nicht wofür sie gebraucht wird aber wenn es schon einen Versionssprung von 0.17.2 auf 1.0.1b1-1 macht sollte man vielleicht die aktuellere einspielen.

MfG R.Lehmeier

Hallo @Lehmeier,

… gibt es nicht. Besteht die Möglichkeit das du ‘python-ezdxf’ meinst?

… weißt du den was das Paket für dich tut? DXF ist so weit ich weiß ein CAD Dateiformat.

Ich prüfe bei solchen Fehlern auch immer erstmal ob das Paket überhaupt noch von nöten ist. Was sagt den:

pactree -r python-ezdxf

Ist dieser Kommentar sinnvoll da hilfreich? Und das Format so okay? Was denkst du?

https://aur.archlinux.org/packages/python-ezdxf#comment-897810

Sind die Abhängigkeiten aktuell rekompiliert?

==> Abhängigkeiten:
  -> python-nurbs
  -> python-pytest
checkdepends=(
python-nurbs
python-pytest
)

Um den Fehler zu Umschiffen, ohne viel tun zu müssen…wäre ein abändern der PKGBUILD nötig. Lösche “check” in den Zeilen 35-39

check() {
  cd ezdxf-${pkgver}
  cd src
  python -m pytest ../tests ../integration_tests
}

Die ganzen commands könnten so aus sehen…

git clone https://aur.archlinux.org/packages/python-ezdxf
cd python-ezdxf
nano PKGBUILD
ZEILE 35-39 LÖSCHEN
STRG+X (y)
makepkg -si

Aktuell lässt es sich erstellen, dein Python-eXdxf Paket…

==> Säubere Installation...
  -> Entferne libtool Dateien...
  -> Bereinige ungewollte Dateien...
  -> Entferne statische Bibliotheken...
  -> Entferne unnötige Symbole aus Binär-Dateien und Bibliotheken...
  -> Komprimiere Man-Pages und Info-Seiten...
==> Prüfe auf Paketierungsprobleme...
==> Erstelle Paket "python-ezdxf"...
  -> Erstelle .PKGINFO Datei...
  -> Erstelle .BUILDINFO Datei...
  -> Erstelle .MTREE-Datei...
  -> Komprimiere Paket... 
==> Verlasse fakeroot Umgebung.
==> Beendete Erstellung: python-ezdxf 1.0.1b1-1 (So 15 Jan 2023 20:54:03 CET)

3311251 15. Jan 20:54 python-ezdxf-1.0.1b1-1-x86_64.pkg.tar.zst

Ich weiß das es sich bei .dxf um ein Cad-Format handelt, wahrscheinlich wird es dann von Freecad benötigt, das ich gelegentlich nutze.

Die Antwort lautet : python-ezdxf