Package Details: svg2tikz-git 3.2.1.r555.20240924.89d1721-1

Git Clone URL: https://aur.archlinux.org/svg2tikz-git.git (read-only, click to copy)
Package Base: svg2tikz-git
Description: Set of tools for converting SVG graphics to TikZ/PGF code.
Upstream URL: http://xyz2tex.github.io/svg2tikz/
Licenses: GPL-2.0-or-later
Conflicts: inkscape-tikz, python-svg2tikz, svg2tikz, svg2tikz-doc
Provides: inkscape-tikz, python-svg2tikz, svg2tikz, svg2tikz-doc
Replaces: inkscape-tikz-hg
Submitter: haawda
Maintainer: dreieck
Last Packager: dreieck
Votes: 17
Popularity: 0.000000
First Submitted: 2014-08-23 13:27 (UTC)
Last Updated: 2024-09-30 13:04 (UTC)

Required by (0)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

dreieck commented on 2024-06-02 21:50 (UTC)

@lamarpaval wrote:

The packages I listed were all thrown at me in tracebacks

↗ Upstream states that only inkex and lxml are direct dependencies.

So maybe missing dependencies should be directed to python-inkex and python-lxml?

Regards!

dreieck commented on 2024-06-02 14:33 (UTC) (edited on 2024-06-02 14:58 (UTC) by dreieck)

Yes, I do have it on python3.11

And if your python version is 3.12 then it won't find inkex.

Is your Python version on 3.12, or 3.11 (python --version)?


The packages I listed were all thrown at me in tracebacks

I have ↗ asked upstream.

AlbertoAru commented on 2024-06-01 20:51 (UTC)

I mean, I removed everything on ~/.cache and updated again. I've just done it again, but I don't know if that's what you mean by rebuilding it.

Yes, I do have it on python3.11: https://pastebin.com/raw/HLSSpPwH

dreieck commented on 2024-05-31 07:48 (UTC) (edited on 2024-05-31 07:48 (UTC) by dreieck)

@AlbertuAru:

I am still having these issues for some reason

With inkex?
Just a guess: have you not re-built it after the latest python update?

Does it have file (pacman -Ql python-inkex) in /usr/lib/python3.11/ or any other python version directory that is not 3.12 (the up to date python version)?

In that case, you need (and do it also with all other packages for which this holds true) to rebuild it.

lamarpavel commented on 2024-05-31 06:42 (UTC)

But I could not find the string numpy or classpath in any file in the downloaded source directory. How you come that they are needed?, or did you list them just as examples?

The packages I listed were all thrown at me in tracebacks like the one I posted for lxml. I tried building the package in a clean chroot (using aurutils) with nothing installed except base-devel and the dependencies explicitly named in the PKGBUILD.

Every package ever imported by any file needs to be in the dependencies, but as you said there is no mention of numpy in the python code itself. It appears that "poetry" is a dependency management system for python (yet another one...) and while I have never seen it before, looking at poetry.lock that looks like a list of packages that are required.

I gave up manually adding all the names I encountered in the traceback to the checkdepends and simply removed the check() function in the PKGBUILD. That allowed me to build the package, but it's probably bad practice for a package maintainer to do so.

furthermore pyproject.toml has as overall software version version = "3.0.1", but upstream is already at 3.1.0, so I do not know how up to date the dependency information in pyproject.toml is. Can you enlighten me about it?

Sorry, but I don't really know my way around python build tools either. The documentation of the module at https://xyz2tex.github.io/svg2tikz/install.html is not very helpful to me either. It's an unfortunate reality that many projects in the python world only give instructions on how to install them with pip and disregard package manager agnostic usage.

AlbertoAru commented on 2024-05-30 17:58 (UTC)

I am still having these issues for some reason :\

dreieck commented on 2024-05-30 08:30 (UTC)

Ahoj,

The tests are failing due to missing dependencies:
[…]
If the tests are enabled by default in the PKGBUILD, python-lxml should be in checkdepends. Same for python-cssselect, numpy and whichever other modules are needed.`

Thanks for noticing python-lxml.

I have added it to checkdepends.

But I could not find the string numpy or classpath in any file in the downloaded source directory. How you come that they are needed?, or did you list them just as examples?

poetry.lock contains reference to numpy, but also many, many other packages.

I do not know what that means.

I also added a couple of more python-phinx* packages to makedepends since pyproject.toml lists them under [tool.poetry.group.docs.dependencies]. But build so far has also worked for me without them, so I am not sure; furthermore pyproject.toml has as overall software version version = "3.0.1", but upstream is already at 3.1.0, so I do not know how up to date the dependency information in pyproject.toml is. Can you enlighten me about it?
I do not know how python-own packaging works and what the metadata means. The only packaging format I know about is Arch Linux.

Regards!

lamarpavel commented on 2024-05-30 07:09 (UTC) (edited on 2024-05-30 07:12 (UTC) by lamarpavel)

The tests are failing due to missing dependencies:

Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_utility_functions.py:13: in <module>
    from svg2tikz.tikz_export import (
svg2tikz/__init__.py:4: in <module>
    from .tikz_export import convert_file, convert_svg
svg2tikz/tikz_export.py:38: in <module>
    import inkex
/usr/lib/python3.12/site-packages/inkex/__init__.py:11: in <module>
    from .extensions import *
/usr/lib/python3.12/site-packages/inkex/extensions.py:34: in <module>
    from .elements import (
/usr/lib/python3.12/site-packages/inkex/elements/__init__.py:9: in <module>
    from ._parser import SVG_PARSER, load_svg
/usr/lib/python3.12/site-packages/inkex/elements/_parser.py:30: in <module>
    from lxml import etree
E   ModuleNotFoundError: No module named 'lxml'

If the tests are enabled by default in the PKGBUILD, python-lxml should be in checkdepends. Same for python-cssselect, numpy and whichever other modules are needed.

AlbertoAru commented on 2024-05-29 16:06 (UTC)

Hi! Thanks for replying! Yes, I do have it installed. I've tried to update it again, and got the same errors :(