Package Details: python-trame-vtk 2.11.1-1

Git Clone URL: https://aur.archlinux.org/python-trame-vtk.git (read-only, click to copy)
Package Base: python-trame-vtk
Description: VTK widgets for trame
Upstream URL: https://github.com/Kitware/trame-vtk
Licenses: BSD-3-Clause
Submitter: carlosal1015
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 0
Popularity: 0.000000
First Submitted: 2023-03-13 19:24 (UTC)
Last Updated: 2026-02-06 15:42 (UTC)

Latest Comments

kingmk13 commented on 2025-12-01 21:12 (UTC)

When trying to install this package, a test is failing : (output shortened on '_-=' lines and Param/Return descriptions)

======================================== FAILURES ===
________________________________________ test_export ___

self = <pyvista.plotting.plotter.Plotter object at 0x7fe78ef0c980>, filename = None, format = 'zip'

    def export_vtksz(
        self,
        filename: str | Path | None = 'scene-export.vtksz',
        format: Literal['zip', 'json'] = 'zip',  # noqa: A002
    ) -> str | Path:
        """Export this plotter as a VTK.js OfflineLocalView file.

        The exported file can be viewed with the OfflineLocalView viewer
        available at https://kitware.github.io/vtk-js/examples/OfflineLocalView.html

        Parameters
        ----------
        [...]
        Returns
        -------
        [...]
        """
        try:
>           from pyvista.trame import PyVistaLocalView  # noqa: PLC0415
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/usr/lib/python3.13/site-packages/pyvista/plotting/plotter.py:755: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.13/site-packages/pyvista/trame/__init__.py:9: in <module>
    from pyvista.trame.jupyter import elegantly_launch
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    """Trame utilities for running in Jupyter."""

    from __future__ import annotations

    import asyncio
    import logging
    import os
    from typing import TYPE_CHECKING
    from typing import Literal
    import warnings

    from trame.widgets import html as html_widgets
    from trame.widgets import vtk as vtk_widgets
>   from trame.widgets import vuetify as vuetify2_widgets
E   ImportError: cannot import name 'vuetify' from 'trame.widgets' (/tmp/makepkg/python-trame-vtk/src/trame-vtk-2.10.0/test-env/lib/python3.13/site-packages/trame/widgets/__init__.py)

/usr/lib/python3.13/site-packages/pyvista/trame/jupyter.py:14: ImportError

During handling of the above exception, another exception occurred:

    @pytest.mark.asyncio
    async def test_export():
        mesh = examples.load_uniform()
        plotter = pv.Plotter(shape=(1, 2))
        plotter.add_mesh(mesh, scalars="Spatial Point Data", show_edges=True)
        plotter.subplot(0, 1)
        plotter.add_mesh(mesh, scalars="Spatial Cell Data", show_edges=True)
>       plotter.export_html("pv.html")

tests/test_export.py:15: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.13/site-packages/pyvista/plotting/plotter.py:712: in export_html
    data = self.export_vtksz(filename=None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pyvista.plotting.plotter.Plotter object at 0x7fe78ef0c980>, filename = None, format = 'zip'

    def export_vtksz(
        self,
        filename: str | Path | None = 'scene-export.vtksz',
        format: Literal['zip', 'json'] = 'zip',  # noqa: A002
    ) -> str | Path:
        """Export this plotter as a VTK.js OfflineLocalView file.

        The exported file can be viewed with the OfflineLocalView viewer
        available at https://kitware.github.io/vtk-js/examples/OfflineLocalView.html

        Parameters
        ----------
        [...]
        Returns
        -------
        [...]
        """
        try:
            from pyvista.trame import PyVistaLocalView  # noqa: PLC0415
            from pyvista.trame.jupyter import elegantly_launch  # noqa: PLC0415
            from pyvista.trame.views import get_server  # noqa: PLC0415
        except ImportError:  # pragma: no cover
            msg = 'Please install trame dependencies: pip install "pyvista[jupyter]"'
>           raise ImportError(msg)
E           ImportError: Please install trame dependencies: pip install "pyvista[jupyter]"

/usr/lib/python3.13/site-packages/pyvista/plotting/plotter.py:760: ImportError
======================================== short test summary info ===
FAILED tests/test_export.py::test_export - ImportError: Please install trame dependencies: pip install "pyvista[jupyter]"
======================================== 1 failed, 1 passed, 3 deselected in 1.57s ===

I installed every python-trame- package except -vuefity (conflict w displaycal) and -rca (pkg pillow_avif missing in a test). Am I missing some python-jupyter or jupyter* pkgs? Or is it an upstream problem?

petronny commented on 2025-06-10 02:08 (UTC)

==> Starting package()...
mv: cannot move '/build/python-trame-vtk/src/package/dist/vue-vtk.umd.js' to '/build/python-trame-vtk/pkg/python-trame-vtk/usr/lib/python3.13/site-packages/trame_vtk/modules/common/serve/trame-vtk.js': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

https://github.com/arch4edu/cactus/actions/runs/15508052891/job/43775096074

RustyRaptor commented on 2023-09-13 22:15 (UTC)

Build is breaking because a file is failing validity check.

==> Making package: python-trame-vtk 2.5.8-1 (Wed 13 Sep 2023 04:13:25 PM MDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading trame-vtk-2.5.8.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  531k    0  531k    0     0   676k      0 --:--:-- --:--:-- --:--:-- 4504k
  -> Downloading vue-vtk-js-3.1.7.tgz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  930k  100  930k    0     0  2776k      0 --:--:-- --:--:-- --:--:-- 2786k
  -> Downloading OfflineLocalView.html...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  889k  100  889k    0     0  4202k      0 --:--:-- --:--:-- --:--:-- 4217k
==> Validating source files with sha512sums...
    trame-vtk-2.5.8.tar.gz ... Passed
    vue-vtk-js-3.1.7.tgz ... Passed
    OfflineLocalView.html ... FAILED
==> ERROR: One or more files did not pass the validity check!