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

Adrian Bunk bunk at debian.org
Tue Dec 24 07:49:18 GMT 2019


On Tue, Dec 24, 2019 at 07:50:52AM +0100, Andreas Tille wrote:
> On Mon, Dec 23, 2019 at 11:59:03PM +0200, Adrian Bunk wrote:
> > On Fri, Aug 09, 2019 at 10:39:06AM +0200, Andreas Tille wrote:
> > >     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
> > >...
> > 
> > This one seems fixed by removing the vtk_63.py patch.
> > Next comes some error that goes away with python3-traits (just passed NEW).
> > That's not sufficient for building, but a bit further.
> 
> Thanks a lot for your investigation.  I also made some steps further.
> It seems xvfb is needed for the tests and I added it.  The current
> failure is:
> 
> ...
>    debian/rules override_dh_auto_test
> make[1]: Entering directory '/build/mayavi2-4.7.1'
> xvfb-run --auto-servernum --server-args="-screen 0 1024x768x24" dh_auto_test
> I: pybuild base:217: cd /build/mayavi2-4.7.1/.pybuild/cpython3_3.7/build; python3.7 -m unittest discover -v 
> QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/run/user/1454', please create it with 0700 permissions.
> QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/run/user/1454', please create it with 0700 permissions.
> dbus[368675]: D-Bus library appears to be incorrectly set up: see the manual page for dbus-uuidgen to correct this issue. (Failed to open "/var/lib/dbus/machine-id": No such file or directo; Failed to open "/etc/machine-id": No such file or directory)
>   D-Bus not built with -rdynamic so unable to print a backtrace
> Aborted
> E: pybuild pybuild:341: test: plugin distutils failed with: exit code=134: cd /build/mayavi2-4.7.1/.pybuild/cpython3_3.7/build; python3.7 -m unittest discover -v 
> dh_auto_test: pybuild --test -i python{version} -p 3.7 returned exit code 13
> ...
> 
> 
> Seems some dbus / systemd issue.  Any ideas?

Works for me (with test failures later), but I am using plain chroot.

Problems related to running graphical tests are not something I would 
care too much about right now, important would be that the package 
builds and works.

After disabling the tests and dh_numpy -> dh_numpy3 in debian/rules the 
package builds for me.

Trying to install the resulting package fails with:
E: Package 'python3-wxgtk3.0' has no installation candidate
E: Package 'python3-envisage' has no installation candidate

python3-wxgtk4.0 exists (not sure whether it also works with mayavi2).

python-envisage has not yet been converted to Python3 and seems to be required:
$ mayavi2
Traceback (most recent call last):
  File "/usr/bin/mayavi2", line 464, in <module>
    from mayavi.plugins.app import Mayavi, setup_logger
  File "/usr/lib/python3/dist-packages/mayavi/plugins/app.py", line 19, in <module>
    from .mayavi_workbench_application import MayaviWorkbenchApplication
  File "/usr/lib/python3/dist-packages/mayavi/plugins/mayavi_workbench_application.py", line 13, in <module>
    from envisage.ui.workbench.api import WorkbenchApplication
ModuleNotFoundError: No module named 'envisage'

> Kind regards
> 
>       Andreas.

cu
Adrian



More information about the Python-apps-team mailing list