FS#63072 - [vtk] pdal should be runtime depends not makedepends

Attached to Project: Community Packages
Opened by Chris Billington (chrisjbillington) - Tuesday, 02 July 2019, 17:57 GMT
Last edited by Antonio Rojas (arojas) - Monday, 05 August 2019, 16:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

With pdal not installed, one of the Python extension modules in vtk is not importable:


$ python -c 'import vtkmodules.vtkIOPDALPython'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: libpdal_base.so.8: cannot open shared object file: No such file or directory

This prevents you from using mayavi for example:

$ python -c 'import mayavi.mlab'
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/vtkmodules/vtkIOPDAL.py", line 5, in <module>
from .vtkIOPDALPython import *
ImportError: libpdal_base.so.8: cannot open shared object file: No such file or directory

---snip---

Installing pdal resolves the issue.

Additional info:
vtk version: 8.2.0-5

Steps to reproduce:

pacman -Rs pdal
python -c 'import vtkmodules.vtkIOPDALPython'
This task depends upon

Closed by  Antonio Rojas (arojas)
Monday, 05 August 2019, 16:41 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Already an optional dependency
Comment by Dario Pellegrini (DarioP) - Monday, 05 August 2019, 16:36 GMT
I encountered this exact bug installing mayavi, which pulls in vtk as dependency but not pdal.
When mayavi tries to load this very same module it fails to start, unless pdal is explicitly installed.

Loading...