Package Details: python-pyvista 0.44.2-1

Git Clone URL: https://aur.archlinux.org/python-pyvista.git (read-only, click to copy)
Package Base: python-pyvista
Description: 3D plotting and mesh analysis through a streamlined interface for the Visualization Toolkit (VTK)
Upstream URL: https://www.pyvista.org
Licenses: MIT
Submitter: MartinDiehl
Maintainer: MartinDiehl
Last Packager: MartinDiehl
Votes: 7
Popularity: 0.083141
First Submitted: 2020-12-16 05:18 (UTC)
Last Updated: 2024-12-02 13:30 (UTC)

Latest Comments

« First ‹ Previous 1 2

carlosal1015 commented on 2022-01-06 05:25 (UTC) (edited on 2022-01-11 00:13 (UTC) by carlosal1015)

I can confirm this message after installation over environment with base-devel + pyvista.

Python 3.10.1 (main, Dec 18 2021, 23:53:45) [GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyvista as pv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/pyvista/__init__.py", line 12, in <module>
    from pyvista.plotting import *
  File "/usr/lib/python3.10/site-packages/pyvista/plotting/__init__.py", line 4, in <module>
    from .charts import Chart2D, ChartMPL, ChartBox, ChartPie
  File "/usr/lib/python3.10/site-packages/pyvista/plotting/charts.py", line 13, in <module>
    from pyvista import _vtk
  File "/usr/lib/python3.10/site-packages/pyvista/_vtk.py", line 351, in <module>
    from vtkmodules.vtkPythonContext2D import vtkPythonItem
ModuleNotFoundError: No module named 'vtkmodules.vtkPythonContext2D'

I will try another way to install. Remember that for do $ python -c 'import vtk', must be installed vtk with the minimal optional dependencies python-mpi4py pdal ffmpeg unixodbc liblas pugixml fmt libxcursor glew ospray qt5-base openvr cgns adios2 libharu gl2ps.

Edited 2022-01-10:

Working in progress with check() function, PKGBUILD with noparaview.

Valery commented on 2022-01-06 04:52 (UTC) (edited on 2022-01-06 05:28 (UTC) by Valery)

The new version, pyvista-0.33.0 require some python vtk modules: import pyvista as pv

Traceback (most recent call last):

File "/tmp/ipykernel_1073494/1985632967.py", line 1, in <module> import pyvista as pv

File "/usr/lib/python3.10/site-packages/pyvista/init.py", line 12, in <module> from pyvista.plotting import *

File "/usr/lib/python3.10/site-packages/pyvista/plotting/init.py", line 4, in <module> from .charts import Chart2D, ChartMPL, ChartBox, ChartPie

File "/usr/lib/python3.10/site-packages/pyvista/plotting/charts.py", line 13, in <module> from pyvista import _vtk

File "/usr/lib/python3.10/site-packages/pyvista/_vtk.py", line 351, in <module> from vtkmodules.vtkPythonContext2D import vtkPythonItem

ModuleNotFoundError: No module named 'vtkmodules.vtkPythonContext2D'

MartinDiehl commented on 2021-08-12 22:06 (UTC)

@carlosal1015: Yes, technically the dependency is vtk. In an ideal world, paraview would depend on vtk.But due to incompatibilities, paraview needs its on vtk which brings it into conflict with the vtk packet. Since I need paraview, for me switching the dependency is not an option. Is there anything from vtk that you miss in the paraview packet?

carlosal1015 commented on 2021-08-12 19:26 (UTC)

Hi, in the source code I do not see something that makes a dependency of paraview. In Gentoo I also don't see that it depends on paraview.

Paraview has conflicts with VTK, what I see is that the python-pyvista package depends on VTK and is not included as dependency, is it ok to swap paraview for vtk? This change would allow python-pyvista to be used with python vtk modules. I'm not sure of my claim, but I have been able to install python-vista (with another PKGBUILD) using vtk instead of paraview.

sitic commented on 2021-02-17 16:49 (UTC)

python-transforms3d is missing as dependency, import pyvista fails with:

[...]
/usr/lib/python3.9/site-packages/pyvista/utilities/transformations.py in <module>
      1 """Transformations leveraging transforms3d library."""
      2 import numpy as np
----> 3 import transforms3d as tf3d
      4 
      5 

ModuleNotFoundError: No module named 'transforms3d'