Re: New InVesalius upstream version (3.1.99994)
Hi Andreas
On Mon, Mar 2, 2020 at 9:21 AM Andreas Tille <andreas@fam-tille.de> wrote:
>
> Hi Thiago,
>
> On Sun, Mar 01, 2020 at 07:46:07PM -0300, Thiago Franco de Moraes wrote:
> > I've just committed the changes to package new upstream version of InVesalius. It seems to be lintian clear. Needs review and sponsorship.
>
> I did some routine-update steps on the package in addition to your
> changes. May some of my changes (like debhelper 12 and pybuild) changed
> something in the build system. So please in any case check these commits:
>
>
> commit 1183d6535a0d003be2f94b80f7daf65efaa33fbc (HEAD -> master, origin/master, origin/HEAD)
> Author: Andreas Tille <tille@debian.org>
> Date: Mon Mar 2 13:06:29 2020 +0100
>
> Fix path of *.so files
>
> commit 54645a18d87cca743a9ccadaca1c67d79ddfe27e
> Author: Andreas Tille <tille@debian.org>
> Date: Mon Mar 2 10:56:15 2020 +0100
>
> Seems 10_import_cython_modules.patch needs to be droped
It's necessary. But pybuild was building before the creation of the cython files. I fixed that by overriding "override_dh_auto_configure". Now it's working correctly. Also, I needed to force GTK to use X11 because OpenGL in WXPython doesn't work in Wayland.
> I've installed the build result and startet:
>
>
> $ LC_ALL=C invesalius3
> /usr/lib/python3/dist-packages/wx/lib/pubsub/__init__.py:25: wxPyDeprecationWarning: wx.lib.pubsub has been deprecated, plese migrate your code to use pypubsub, available on PyPI.
> wx.wxPyDeprecationWarning)
> app.py:225: DeprecationWarning: Yield() is deprecated
> wx.Yield()
> Could not import dl
> /usr/share/invesalius/invesalius/data/transformations.py:1899: UserWarning: failed to import module _transformations
> warnings.warn("failed to import module %s" % name)
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/wx/core.py", line 2228, in Notify
> self.notify()
> File "/usr/lib/python3/dist-packages/wx/core.py", line 3384, in Notify
> self.result = self.callable(*self.args, **self.kwargs)
> File "app.py", line 231, in Startup
> from invesalius.gui.frame import Frame
> File "/usr/share/invesalius/invesalius/gui/frame.py", line 27, in <module>
> import invesalius.gui.default_tasks as tasks
> File "/usr/share/invesalius/invesalius/gui/default_tasks.py", line 28, in <module>
> import invesalius.gui.data_notebook as nb
> File "/usr/share/invesalius/invesalius/gui/data_notebook.py", line 40, in <module>
> import invesalius.data.slice_ as slice_
> File "/usr/share/invesalius/invesalius/data/slice_.py", line 36, in <module>
> from invesalius.data.mask import Mask
> File "/usr/share/invesalius/invesalius/data/mask.py", line 33, in <module>
> from . import floodfill
> ImportError: cannot import name 'floodfill' from 'invesalius.data' (/usr/share/invesalius/invesalius/data/__init__.py)
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/wx/core.py", line 2228, in Notify
> self.notify()
> File "/usr/lib/python3/dist-packages/wx/core.py", line 3384, in Notify
> self.result = self.callable(*self.args, **self.kwargs)
> File "app.py", line 111, in Startup2
> self.control = self.splash.control
> AttributeError: 'Inv3SplashScreen' object has no attribute 'control'
> Traceback (most recent call last):
> File "app.py", line 255, in OnClose
> if self.fc.IsRunning():
> AttributeError: 'Inv3SplashScreen' object has no attribute 'fc'
>
>
>
> Could you please re-check the current status in Git?
This was fixed in my last commit
> Kind regards
>
> Andreas.
>
> --
> http://fam-tille.de
Thanks for the help Andreas.
Best regards.
Reply to: