Bug 2366455 - python-svg2tikz fails to build with Python 3.14: AttributeError: module 'inkex.properties' has no attribute 'match_url_and_return_element'
Summary: python-svg2tikz fails to build with Python 3.14: AttributeError: module 'inke...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: python-svg2tikz
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Benson Muite
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-05-15 09:42 UTC by Karolina Surma
Modified: 2025-05-15 16:36 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-05-15 09:42:51 UTC
python-svg2tikz fails to build with Python 3.14.0b1.

test_get_text and test_handle_shape fail with the same traceback.

ERROR: test_handle_shape (tests.test_tikz_path_exporter.TestTikZPathExporter.test_handle_shape)
Testing handling unkwon shape
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-svg2tikz-3.2.0-build/svg2tikz-3.2.0/tests/test_tikz_path_exporter.py", line 208, in test_handle_shape
    tzpe.convert(StringIO(SVG_TEXT), no_output=True, returnstring=True)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/python-svg2tikz-3.2.0-build/svg2tikz-3.2.0/svg2tikz/tikz_export.py", line 1552, in convert
    self.run(output=None)
    ~~~~~~~~^^^^^^^^^^^^^
  File "/builddir/build/BUILD/python-svg2tikz-3.2.0-build/svg2tikz-3.2.0/svg2tikz/tikz_export.py", line 1513, in run
    self.save_raw(self.effect())
                  ~~~~~~~~~~~^^
  File "/builddir/build/BUILD/python-svg2tikz-3.2.0-build/svg2tikz-3.2.0/svg2tikz/tikz_export.py", line 1438, in effect
    string = self._output_group(nodes)
  File "/builddir/build/BUILD/python-svg2tikz-3.2.0-build/svg2tikz-3.2.0/svg2tikz/tikz_export.py", line 1369, in _output_group
    pathcode = self._handle_text(node)
  File "/builddir/build/BUILD/python-svg2tikz-3.2.0-build/svg2tikz-3.2.0/svg2tikz/tikz_export.py", line 1295, in _handle_text
    shape = self.get_shape_inside(node)
  File "/builddir/build/BUILD/python-svg2tikz-3.2.0-build/svg2tikz-3.2.0/svg2tikz/tikz_export.py", line 822, in get_shape_inside
    shape = inkex.properties.match_url_and_return_element(url, self.svg)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'inkex.properties' has no attribute 'match_url_and_return_element'

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14-b1/fedora-rawhide-x86_64/09037407-python-svg2tikz/

For all our attempts to build python-svg2tikz with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/package/python-svg2tikz/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Benson Muite 2025-05-15 16:36:05 UTC
Updated to latest release and tested a local build.  There is a warning:
RPM build warnings:
    absolute symlink: /usr/share/inkscape/extensions/tikz_export.py -> /usr/lib/python3.14/site-packages/svg2tikz/tikz_export.py
    absolute symlink: /usr/share/inkscape/extensions/tikz_export_effect.inx -> /usr/lib/python3.14/site-packages/svg2tikz/tikz_export_effect.inx
    absolute symlink: /usr/share/inkscape/extensions/tikz_export_output.inx -> /usr/lib/python3.14/site-packages/svg2tikz/tikz_export_output.inx
but otherwise seems ok.


Note You need to log in before you can comment on or make changes to this bug.