Re: [Bug 241352] Re: mayavi2 willnot run

2008-06-20 Thread Gaël Varoquaux
On Fri, Jun 20, 2008 at 05:28:59AM -, Scott Kitterman wrote:
> So this is a bug in python-enthought-traits-ui?  Before we could change
> that, we'd need to understand the impacts of that on that package and
> other users of SimpleScene.

It is. This code that is in python-enthought-traits-ui should really be
moved to mayavi2. The whole ethnought.pyface.tvtk should be moved to
enthought.tvtk.pyface (whcch lives in the mayavi2 Debian package). This
is historical, because at some point we where considering these projects
as non independant. These 2 projects are a split of the same SVN for
modularity: the python-matplotlib project (to which we are not directly
related) uses the python-enthought-traits project. The
python-enthought-traits-ui project is the ui part of the
python-enthought-traits project. It is not currently used by another
Debian package, but it is used in other projects, who do not use the 3D
plotting code in mayavi2. Thus they do not want the dependency on vtk,
which is a heavy dependency. We will probably need to split the Debian
packages a bit more, as time goes on, as this code is very modular, and
there are usecases for its modularity.

As the python-vtk project as declared wxVTKRenderWindow obsolete and
unmainained, we have declared the SimpleScene obsolete and have removed
in from the api. It is still in the codebase, and can be imported
directly from its source file, but this will cause a traceback when used
with wxpython2.8.

When we did this, we surveyed our users, and the SimpleScene was not used
anywhere. People use the Scene, and so did we in mayavi.

So as a conclusion, this is an API breakage, but to react to a wxPython
API breakage, and the packages python-enthought-traits,
python-enthought-traits-ui and mayavi2 are stronly linked.

I hope the clarifies a bit things.

Cheers,

Gaël

-- 
mayavi2 willnot run
https://bugs.launchpad.net/bugs/241352
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 241352] Re: mayavi2 willnot run

2008-06-19 Thread Gaël Varoquaux
On Fri, Jun 20, 2008 at 03:06:52AM -, Gaël Varoquaux wrote:
> On Fri, Jun 20, 2008 at 02:59:03AM -, Scott Kitterman wrote:
> > Responding to Gaël:

> > SRU is Stable Release Update.  Once a version of Ubuntu is released, we
> > virtually never put a new version into it.  So to fix Hardy, we'd need a
> > minimally invasive patch to fix this issue that could be added to the
> > current Hardy version.  If someone can come up with the patch, there are
> > a number of developers that could package the fix to get it into Hardy.

> Looking into it right now. I seem to remember the modification is very
> small, but I can't find it in the svn history. We'll see if I can find
> it.

OK, it took me pretty much one hour to figure out that the change that
fixed this problem is the following one liner: in package
python-enthought-traits-ui, in file enthought/pyface/tvtk/api.py, remove
the second line, ie "from simple_scene import SimpleScene".

One my box (ubuntu hardy) this fixes the problem. Can somebody confirm it
does for him.

Hopefully this means we can call this bug fixed, right?

Gaël

-- 
mayavi2 willnot run
https://bugs.launchpad.net/bugs/241352
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 241352] Re: mayavi2 willnot run

2008-06-19 Thread Gaël Varoquaux
On Fri, Jun 20, 2008 at 02:59:03AM -, Scott Kitterman wrote:
> Responding to Gaël:

> SRU is Stable Release Update.  Once a version of Ubuntu is released, we
> virtually never put a new version into it.  So to fix Hardy, we'd need a
> minimally invasive patch to fix this issue that could be added to the
> current Hardy version.  If someone can come up with the patch, there are
> a number of developers that could package the fix to get it into Hardy.

Looking into it right now. I seem to remember the modification is very
small, but I can't find it in the svn history. We'll see if I can find
it.

Gaël

-- 
mayavi2 willnot run
https://bugs.launchpad.net/bugs/241352
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 241352] Re: mayavi2 willnot run

2008-06-19 Thread Gaël Varoquaux
On Fri, Jun 20, 2008 at 02:50:13AM -, Joe Kilner wrote:
> After reading the rest of the thread, I removed wxgtk2.8 and mayavi2
> runs fine now.

> I'll try reinstalling it when the backport goes out.

OK, thanks.

I am browsing through Trac history to see if I can isolate the change
that fixed that, but the problem is that it is quite old, we'll see.

Gaël

-- 
mayavi2 willnot run
https://bugs.launchpad.net/bugs/241352
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 241352] Re: mayavi2 willnot run

2008-06-19 Thread Gaël Varoquaux
On Thu, Jun 19, 2008 at 10:12:29PM -, Andrea Colangelo wrote:
> Gael, since not everyone enable -backport repositories, this bug could
> be worth a SRU for hardy. When the new mayavi2 is out, it would be great
> if you can isolate the patch for this bug, so that we can try the SRU
> road along with the hardy-backport one.

What's SRU?

I can make a special patch, it is just going to take me precious time,
that I would much rather spend elsewhere, especially since the release
I'd be patching for is quite old (around Christams, I think) and has
quite a few other bugs that where fixed.

Gaël

-- 
mayavi2 willnot run
https://bugs.launchpad.net/bugs/241352
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 241352] Re: mayavi2 willnot run

2008-06-19 Thread Gaël Varoquaux
On Thu, Jun 19, 2008 at 09:03:32PM -, Hayden Callow wrote:
> Is mayavi2 ok with wx2.8?

Should be.

> ETS log mentioned above attached

> Removing wx2.8 (with wx2.6 installed in parallel) appears to give
> working mayavi2

OK, that's an interesting piece of information.
It seems to be in the python-vtk, as the following line fails:

from vtk.wx.wxVTKRenderWindow import wxVTKRenderWindow

Actually, know that you point it out, this is a know issue. The
wxVTKRenderWindow is depreciated, and does not work with wxpython2.8. The
solution is to use a different RenderWindow, and we switched to that in
newer versions of Mayavi2. There will soon be a new release of mayavi,
and we are planning to push it into hardy-backports. In the mean time you
can get some package that (I believe) do not display this bug on my PPA
(they are a slightly newer version of Mayavi2).

We have a few problems with VTK 5.3 that we want to fix with Mayavi2? and
after that we do a new release. Hopefully in a week. Give another week
for the Debian packages to follow, and the MOTUs to sync with Debian, and
backport, and you should have a nice and shiny new version of Mayavi2,
with this fix, and other ones.

Cheers,

Gaël

-- 
mayavi2 willnot run
https://bugs.launchpad.net/bugs/241352
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs