Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1001105: RFP: pyvista -- 3D plotting and mesh analysis

26 views
Skip to first unread message

Drew Parsons

unread,
Dec 4, 2021, 7:30:04 AM12/4/21
to
Package: wnpp
Severity: wishlist
X-Debbugs-Cc: debian...@lists.debian.org, debian-...@lists.debian.org

* Package name : pyvista
Version : 0.32.0
Upstream Author : The PyVista Developers
* URL : https://github.com/pyvista/pyvista
* License : MIT
Programming Lang: Python
Description : 3D plotting and mesh analysis

PyVista is...

- "VTK for humans": a high-level API to the Visualization Toolkit (VTK)
- mesh data structures and filtering methods for spatial datasets
- 3D plotting made simple and built for large/complex data geometries

PyVista is a helper module for the Visualization Toolkit (VTK) that
wraps the VTK library through NumPy and direct array access through a
variety of methods and classes. This package provides a Pythonic,
well-documented interface exposing VTK's powerful visualization
backend to facilitate rapid prototyping, analysis, and visual
integration of spatially referenced datasets.

This module can be used for scientific plotting for presentations and
research papers as well as a supporting module for other mesh 3D
rendering dependent Python modules.


pyvista has started being used in demos for some client packages
(dolfinx), where it is used to visualize solutions. It would be nice
to be able to run these demos without seeing the "pyvista is required
to visualise the solution" warning message.

Well suited to team maintenance under the Debian Python Team, but
could be adopted by more specialized teams such as the Debian Science
Team.

Diego M. Rodriguez

unread,
Mar 3, 2022, 2:00:04 PM3/3/22
to
Control: retitle -1 ITP: pyvista -- 3D plotting and mesh analysis
Control: owner -1 !

Hello,

On Sat, 04 Dec 2021 12:51:13 +0100 Drew Parsons <dpar...@debian.org> wrote:
> Well suited to team maintenance under the Debian Python Team, but
> could be adopted by more specialized teams such as the Debian Science
> Team.

I intend to package this software, along with its unpackaged
dependencies ("scooby"), under the umbrella of the Debian Python Team.

Best,
--
Diego M. Rodriguez

Diego M. Rodriguez

unread,
Jan 22, 2024, 1:50:04 PM1/22/24
to
Control: retitle 1001105 RFP: pyvista -- 3D plotting and mesh analysis
Control: noowner 1001105

Hello,

regrettably, I'm no longer able / interested in packaging this software. I'm attempting to officially signal it by removing my ownership, in the hopes it can be picked up by other contributor (specially in light of the recent blocking dependency from python-scooby).

Best, and thanks Drew for the collaboration that led to the initial ITP,
---
Diego M. Rodriguez

Drew Parsons

unread,
Jan 27, 2024, 1:20:05 PM1/27/24
to
On 2024-01-27 18:28, Francesco Ballarin wrote:
> OK Andreas, I'll push to master. Let me take the lead on that, and
> I'll come back to you and Drew with progress and questions.
>
> I think I have some ideas on how to get started on the basic package.

Thanks Francesco and Andreas. Will be interesting to see the dolfinx
demos running in their full pyvista livery.


> The full package (i.e., all optional components that one can install
> with "pip install pyvista[all]") will be much more complex, because it
> depends on trame, which comes split in five interdependent packages
...
> and who knows how many dependencies each one of those have.
...
> but let's start with a less ambitious goal ;)

I agree, get the basic functionality in place first :)


>
> I think that the error you see is because python3-vtk9 is only built
> for python 3.11, but unit tests are getting run with python 3.12.

This is annoying problem, constrained by cmake limitations. Other
packages are also affected, like spglib, which then constrains pymatgen.
The problem is that cmake does not allow for building python modules
over multiple python versions. The FEniCS project has been smarter
about it, keeping the C++ library and the python module build separate
(the first using cmake, the latter using setup/pyproject).

Not much we can do about it with vtk9 in the short term. Complaints
should be pushed to kitware though.
They seem to think it should be done in your source, which is pretty
weird.
https://gitlab.kitware.com/cmake/cmake/-/issues/21797

Different source dirs makes little sense, but possibly cmake could be
run multiple times, once for each python, in separate build dirs.

Andreas Tille

unread,
Jan 27, 2024, 1:20:05 PM1/27/24
to
Am Sat, Jan 27, 2024 at 06:28:14PM +0100 schrieb Francesco Ballarin:
> OK Andreas, I'll push to master. Let me take the lead on that, and I'll come back to you and Drew with progress and questions.

Perfectly fine for me.

> I think I have some ideas on how to get started on the basic package.
>
> The full package (i.e., all optional components that one can install with "pip install pyvista[all]") will be much more complex, because it depends on trame, which comes split in five interdependent packages
> ====
> trame 3.2.4
> trame-client 2.11.2
> trame-server 2.11.7
> trame-vtk 2.5.8
> trame-vuetify 2.3.1
> ====
> and who knows how many dependencies each one of those have.

Sounds complex and I'd love to stay in background given that I need to
care for >1000 packages.

> Down the line I'd want to have that too, because that's what I actually need for plotting within jupyter notebooks in my libraries, see for instance
> https://viskex.github.io/tutorials/01_introduction/tutorial_plot_subdomains_3d_dolfinx.html
> but let's start with a less ambitious goal ;)

+1

> I think that the error you see is because python3-vtk9 is only built for python 3.11, but unit tests are getting run with python 3.12.
> At the moment, I'd like to disable that part adding an empty override_dh_auto_test-indep and run tests with autopkgtest only, so that I can have a clearer idea on the difference between dependencies required for building the package vs dependencies required for testing it, because I know from experience that there are a few packages that are only needed for testing pyvista.

Perfectly fine for me. Feel free to turn the RFP in ITP and I can
sponsor the upload if needed.

Thanks a lot for your help
Andreas.

--
http://fam-tille.de

Andreas Tille

unread,
Jan 27, 2024, 5:40:04 PM1/27/24
to
Hi Francesco,

thanks a lot for the fix - the package is uploaded to new.

Kind regards
Andreas.

Am Sat, Jan 27, 2024 at 10:23:20PM +0100 schrieb Francesco Ballarin:
> A first version is available at
> https://salsa.debian.org/science-team/python-pyvista
> in case you want to have a look before I/we change it from UNRELEASED
> to unstable.
>
> autopkgtest passes.
> test-crossbuild-arm64 is failing, but is allowed to do so, not sure if
> it is relevant.
>
> As agreed, interactive plotting within jupyter is not considered for now.
>
> Cheers,
> Francesco
> [http://static.unicatt.it/ext-portale/5xmille_firma_mail_2023.jpg] <https://www.unicatt.it/uc/5xmille>
>
>

--
http://fam-tille.de
0 new messages