FS#72732 - [mayavi] Rebuild of tvtk classes required for vtk 9.1

Attached to Project: Community Packages
Opened by Chris Billington (chrisjbillington) - Saturday, 13 November 2021, 07:26 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 07 February 2023, 21:01 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

I get the following error when importing mayavi.mlab:

$ python
Python 3.9.7 (default, Oct 10 2021, 15:13:22)
[GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mayavi.mlab
********************************************************************************
WARNING: Imported VTK version (9.1) does not match the one used
to build the TVTK classes (8.2). This may cause problems.
Please rebuild TVTK.
********************************************************************************

[openvkl] application requested ISPC device width 8via device name cpu_8
[openvkl] trying to look up device type 'cpu_8' for the first time
Segmentation fault (core dumped)

I don't believe I'm in a partial upgrade state, which would be the normal suspicion for an error like this. It looks like mayavi needs a rebuild in light up the recent upgrade of vtk in the Arch repos.

I attempted to rebuild myself to test, but get the following error running makekg, which isn't enough of a lead for me to figure out what's wrong:

$ asp checkout mayavi
$ cd mayavi/trunk/
$ makepkg
==> Making package: mayavi 4.6.2-1 (Sat 13 Nov 2021 18:25:17)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found mayavi-4.6.2.tar.gz
-> Found mayavi.sh
-> Found mayavi.csh
==> Validating source files with md5sums...
mayavi-4.6.2.tar.gz ... Passed
mayavi.sh ... Passed
mayavi.csh ... Passed
==> Extracting sources...
-> Extracting mayavi-4.6.2.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
running build
----------------------------------------------------------------------
Building TVTK classes... Traceback (most recent call last):
File "/tmp/mayavi/trunk/src/mayavi-4.6.2/setup.py", line 406, in <module>
setup(
File "/usr/lib/python3.9/site-packages/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/mayavi/trunk/src/mayavi-4.6.2/setup.py", line 267, in run
build_tvtk_classes_zip()
File "/tmp/mayavi/trunk/src/mayavi-4.6.2/setup.py", line 253, in build_tvtk_classes_zip
gen_tvtk_classes_zip()
File "/tmp/mayavi/trunk/src/mayavi-4.6.2/tvtk/setup.py", line 99, in gen_tvtk_classes_zip
gen.generate_code()
File "/tmp/mayavi/trunk/src/mayavi-4.6.2/tvtk/code_gen.py", line 131, in generate_code
self._write_wrapper_class(node, tvtk_name)
File "/tmp/mayavi/trunk/src/mayavi-4.6.2/tvtk/code_gen.py", line 221, in _write_wrapper_class
self.wrap_gen.generate_code(node, out)
File "/tmp/mayavi/trunk/src/mayavi-4.6.2/tvtk/wrapper_gen.py", line 250, in generate_code
self._gen_methods(node, out)
File "/tmp/mayavi/trunk/src/mayavi-4.6.2/tvtk/wrapper_gen.py", line 367, in _gen_methods
get_set, allow_update_failure = self._gen_get_set_methods(klass, out)
File "/tmp/mayavi/trunk/src/mayavi-4.6.2/tvtk/wrapper_gen.py", line 762, in _gen_get_set_methods
if not meths[vtk_attr_name] and get_sig[0][1]:
IndexError: list index out of range
==> ERROR: A failure occurred in build().
Aborting...
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 07 February 2023, 21:01 GMT
Reason for closing:  Fixed
Additional comments about closing:  Seems to be fixed. See comments.
Comment by Chris Billington (chrisjbillington) - Saturday, 13 November 2021, 07:40 GMT
It seems that `asp checkout mayavi` is getting me the PKGBUILD for mayavi 4.6.2, whereas the latest in the repos is 4.7.3. I had to run `asp update` and `git pull` to get the latest PKGBUILD. I'm unsure why - have always thought that a simple `asp checkout` would retrieve the latest `PKGBUILD` for a package. Any insight about that would be appreciated.

However, I still get the same error running `makepkg` on the PKGBUILD for mayavi 4.7.3-2.
Comment by drocheam (drocheam) - Tuesday, 07 February 2023, 19:19 GMT
I don't think this issue still persists, as the current vtk community package is built with tvtk 9.1 and the current mayavi package requires the same 9.1.
The problem seems outdated.

Loading...