FS#64511 - [vtk] missing deps

Attached to Project: Community Packages
Opened by DarcyHu (DarcyHu) - Friday, 15 November 2019, 13:14 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 15 November 2019, 14:46 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
unixodbc and openmpi should be added as deps, not opt deps. You could not import vtk if these two pkgs are not installed.

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
This task depends upon

Closed by  Doug Newgard (Scimmia)
Friday, 15 November 2019, 14:46 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#61655 
Comment by Doug Newgard (Scimmia) - Friday, 15 November 2019, 13:28 GMT
what do you mean "import vtk"? What errors are you seeing?
Comment by DarcyHu (DarcyHu) - Friday, 15 November 2019, 14:30 GMT
Oh, my mistake. I mean, when using python binding, we could not `import vtk` correctly without these two deps.
```
>>> import vtk
Traceback (most recent call last):
File "<input>", line 1, in <module>
import vtk
File "/usr/lib/python3.8/site-packages/vtk.py", line 32, in <module>
all_spec.loader.exec_module(all_m)
File "/usr/lib/python3.8/site-packages/vtkmodules/all.py", line 116, in <module>
from .vtkIOODBC import *
File "/usr/lib/python3.8/site-packages/vtkmodules/vtkIOODBC.py", line 9, in <module>
from vtkIOODBCPython import *
ModuleNotFoundError: No module named 'vtkIOODBCPython'
```
If openmpi is not installed, one would get error like this:
```
ImportError: libmpi.so.40: cannot open shared object file: No such file or directory
```
Maybe we need to check the nmap check log?
Comment by Doug Newgard (Scimmia) - Friday, 15 November 2019, 14:44 GMT
Well yeah, importing everything probably needs all of the optional deps. Descriptions should probably be updated, at least.

Loading...