[Python-apps-team] Bug#934264: Please update (4.6.2?) and provide/switch to python3

Andreas Tille andreas at fam-tille.de
Fri Aug 9 09:39:06 BST 2019


Hi Yaroslav,

On Thu, Aug 08, 2019 at 04:58:03PM -0400, Yaroslav Halchenko wrote:
> Package: mayavi2
> Version: 4.5.0-1
> Severity: normal
> 
> 4.5.0 still causes segfaults for me (while trying to build/test python-mne
> package).  I could not get to upstream's download page for mayavi2 (server bogs
> out), but conda seems to have 4.6.2 https://anaconda.org/anaconda/mayavi  so I guess
> it is out there.

Its definitely out and the watch file reports a new version which even
supports Python3.  I've updated the packaging Git[1] to latest packaging
standards (attention, since I know NeuroDebian prefers lower versions
of debhelper - feel free to revert my switch to debhelper 12!) and
tried to convert the build system to Python3 but unfortunately the
configure step fails with:

...
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:217: /usr/bin/python3 setup.py build 
running build
----------------------------------------------------------------------
Building TVTK classes... Traceback (most recent call last):
  File "setup.py", line 474, in <module>
  File "/usr/lib/python3/dist-packages/numpy/distutils/core.py", line 171, in setup
    return old_setup(**new_attr)
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "setup.py", line 268, in run
  File "setup.py", line 254, in build_tvtk_classes_zip
  File "tvtk/setup.py", line 99, in gen_tvtk_classes_zip
    gen.generate_code()
  File "/build/mayavi2-4.7.1/tvtk/code_gen.py", line 131, in generate_code
    self._write_wrapper_class(node, tvtk_name)
  File "/build/mayavi2-4.7.1/tvtk/code_gen.py", line 221, in _write_wrapper_class
    self.wrap_gen.generate_code(node, out)
  File "/build/mayavi2-4.7.1/tvtk/wrapper_gen.py", line 250, in generate_code
    self._gen_methods(node, out)
  File "/build/mayavi2-4.7.1/tvtk/wrapper_gen.py", line 371, in _gen_methods
    self._gen_get_methods(klass, out)
  File "/build/mayavi2-4.7.1/tvtk/wrapper_gen.py", line 919, in _gen_get_methods
    if len(sig) == 1 and sig[0][1] is None:
TypeError: object of type 'NoneType' has no len()
E: pybuild pybuild:341: build: plugin distutils failed with: exit code=1: /usr/bin/python3 setup.py build 
dh_auto_build: pybuild --build -i python{version} -p 3.7 returned exit code 13
make: *** [debian/rules:10: build] Error 255
dpkg-buildpackage: error: debian/rules build gave error exit status 2
I: copying local configuration
E: Failed autobuilding of package


I'd be happy if someone would take over from here since I'll be busy
with real life for the next 10 days.

Remark: Since it seems the package is not really maintained by the
Uploader inside the PAPT team and entering the PAPT team might take a
bit longer I'd consider it a sensible step to take over the package to
Debian Science team to enable more people an easy access to the
repository.  I'm not keen on "nursing" merge requests of grown up
Python developers just because these are not part of PAPT team.

Kind regards

      Andreas.


[1] https://salsa.debian.org/python-team/applications/mayavi2

-- 
http://fam-tille.de



More information about the Python-apps-team mailing list