mayavi2 will not install on Hardy

Bug #207748 reported by eldad
8
Affects Status Importance Assigned to Milestone
mayavi2 (Ubuntu)
Fix Released
Medium
Andrea Colangelo

Bug Description

Binary package hint: mayavi2

Mayavi2 will not install on Hardy for me any more (it used to till a few days ago).
Please see below the output.
I will appreciate a solution...
(I deeply appreciate the introduction of such a variety of scientific packages, especially python based - excellent work!!!)

eldad@eldad-laptop:~$ apt-cache policy mayavi2
mayavi2:
  Installed: (none)
  Candidate: 2.0.2a1-4ubuntu1
  Version table:
     2.0.2a1-4ubuntu1 0
        500 http://ftp.astral.ro hardy/universe Packages
eldad@eldad-laptop:~$ lsb_release -rd
Description: Ubuntu hardy (development branch)
Release: 8.04
eldad@eldad-laptop:~$

eldad@eldad-laptop:~$ sudo aptitude install mayavi2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Building tag database... Done
The following NEW packages will be automatically installed:
 python-enthought-traits python-enthought-traits-ui python-vtk
The following NEW packages will be installed:
 mayavi2 python-enthought-traits python-enthought-traits-ui python-vtk
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/17.8MB of archives. After unpacking 43.3MB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Selecting previously deselected package python-enthought-traits.
(Reading database ... 191405 files and directories currently installed.)
Unpacking python-enthought-traits (from .../python-enthought-traits_2.0.1b1-2_amd64.deb) ...
Selecting previously deselected package python-enthought-traits-ui.
Unpacking python-enthought-traits-ui (from .../python-enthought-traits-ui_2.0.1b1-3_all.deb) ...
Selecting previously deselected package python-vtk.
Unpacking python-vtk (from .../python-vtk_5.0.3-1ubuntu1_amd64.deb) ...
Selecting previously deselected package mayavi2.
Unpacking mayavi2 (from .../mayavi2_2.0.2a1-4ubuntu1_amd64.deb) ...
Setting up python-enthought-traits (2.0.1b1-2) ...

Setting up python-enthought-traits-ui (2.0.1b1-3) ...

Setting up python-vtk (5.0.3-1ubuntu1) ...
Can't list /usr/lib/python2.5/site-packages/vtk
Can't list /usr/lib/python2.5/site-packages/vtk

Setting up mayavi2 (2.0.2a1-4ubuntu1) ...
file does not exist: /usr/lib/python2.5/site-packages/enthought.debug-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.envisage-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.logger-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.mayavi-2.0.2a1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.persistence-2.0.1b2-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.plugins.debug-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.plugins.python_shell-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.plugins.refresh_code-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.plugins.text_editor-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.tvtk-2.0.0b2-nspkg.pth
pycentral: pycentral pkginstall: error byte-compiling files (731)
pycentral pkginstall: error byte-compiling files (731)
dpkg: error processing mayavi2 (--configure):
 subprocess post-installation script returned error exit status 1
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 mayavi2
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up mayavi2 (2.0.2a1-4ubuntu1) ...
file does not exist: /usr/lib/python2.5/site-packages/enthought.debug-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.envisage-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.logger-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.mayavi-2.0.2a1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.persistence-2.0.1b2-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.plugins.debug-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.plugins.python_shell-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.plugins.refresh_code-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.plugins.text_editor-2.0.1b1-nspkg.pth
file does not exist: /usr/lib/python2.5/site-packages/enthought.tvtk-2.0.0b2-nspkg.pth
pycentral: pycentral pkginstall: error byte-compiling files (731)
pycentral pkginstall: error byte-compiling files (731)
dpkg: error processing mayavi2 (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 mayavi2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Writing extended state information... Done
Building tag database... Done

Revision history for this message
Andrea Colangelo (warp10) wrote :

I can confirm this bug, with the same output from the original reporter.

Changed in mayavi2:
assignee: nobody → warp10
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Gael Varoquaux (gael-varoquaux) wrote : Re: [Bug 207748] Re: mayavi2 will not install on Hardy

On Thu, Mar 27, 2008 at 03:00:50PM -0000, Andrea Colangelo wrote:
> I can confirm this bug, with the same output from the original reporter.

OK, I will need help from python packagers for this bug. I am not too
sure it is related to upstream problems. I don't know if these files "the
.pth" should be there or not, as I don't know how the python packages are
installed.

Gaël

Revision history for this message
eldad (eldad-a) wrote :

I do not like the following solution but it seems to work fine (as a temporary one):
install EPD package (using Enthought windows installer found @ http://www.enthought.com/products/epddownload.php ) under wine.
I haven't managed to get the IPython to work under wine but Mayavi2 works well.

Revision history for this message
Gael Varoquaux (gael-varoquaux) wrote :

On Sat, Mar 29, 2008 at 07:48:26PM -0000, eldad wrote:
> I do not like the following solution but it seems to work fine (as a temporary one):
> install EPD package (using Enthought windows installer found @ http://www.enthought.com/products/epddownload.php ) under wine.
> I haven't managed to get the IPython to work under wine but Mayavi2 works well.
Well, there are simpler ways to install Mayavi2 under Linux :->.

Anyhow, the bug in hardy should now be fixed. Can you confirm this
please.

Cheers,

Gaël

Revision history for this message
LaserJock (laserjock) wrote :

It is not fixed here with 2.0.2a1-4ubuntu1, I get the same issue as above.

Revision history for this message
Andrea Colangelo (warp10) wrote :

Debian unstable currently ships mayavi2 2.1.1-2. I tried it and builds and installs fine. Looks like the problem is related to this bug in debian:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472032

Revision history for this message
Gael Varoquaux (gael-varoquaux) wrote :

On Wed, Apr 02, 2008 at 10:50:59AM -0000, Andrea Colangelo wrote:
> Debian unstable currently ships mayavi2 2.1.1-2. I tried it and builds
> and installs fine. Looks like the problem is related to this bug in
> debian:

> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472032

So mayavi2 still does not install under hardy. Hum, this is really bad.

AFAIK we do not hardcode any paths in Mayavi2. We heavily really on
setuptools (for the best or the worst :->).

Would simply syncing the debian package be an option? The upstream code
itself was consolidated quite a lot, and few features where added, so I
would hope that no new bugs appear.

Thanks for keeping me posted, this issue is very important for me,
unfortunatebly as I know next to nothing about packaging, I have
difficulties helping out.

Cheers,

Gaël

Revision history for this message
Andrea Colangelo (warp10) wrote :

Gael: a sync could be done, but since we are in Feature Freeze, we must go through a Feature Freeze Exception: https://wiki.ubuntu.com/FreezeExceptionProcess

Could you find a changelog from version 2.0.2a1 to 2.1.1? It would be of great help to understand which new features have been added.

Revision history for this message
Gael Varoquaux (gael-varoquaux) wrote :
Download full text (4.6 KiB)

On Wed, Apr 02, 2008 at 11:44:03AM -0000, Andrea Colangelo wrote:
> Gael: a sync could be done, but since we are in Feature Freeze, we must
> go through a Feature Freeze Exception:
> https://wiki.ubuntu.com/FreezeExceptionProcess

I am aware of that, and I fully understand the reasons behind it.

> Could you find a changelog from version 2.0.2a1 to 2.1.1? It would be of
> great help to understand which new features have been added.

Our tracking of changes is pretty poor I am afraid. I can't give you a
list of all the small changes done. Changes from 2.1.0 to 2.1.1 where
just a few bugfixes in python-enthought-traits and
python-enthought-traits-ui, but as mayavi2 depends on these, we had to
make a new release.

The changes from mayavi2.0.2a1 to mayavi2.1.0, and those to the two other
packages it is closely tied to (that is changes from ETS release 2.6.0 to
2.7.0), are exposed in
https://mail.enthought.com/pipermail/enthought-dev/2008-February/012908.html

  * [Envisage] Fixed numerous examples so that they run again.
  * [Envisage] Changed icons to better match downstream licensing
  * policies.
  * [ETSConfig] Minor change to allow the Envisage refresh code plugin
to work without raising a traceback.
  * [Kiva] Fixed examples so that they run again.
  * [Mayavi] Significant documentation improvements.
  * [Mayavi] Increased number and reliability of examples.
  * [Mayavi] Enabled Mayavi to run outside of an Envisage app. It can
now display also in a Traits UI.
  * [Mayavi] Moved enthought.mayavi.tools.mlab to enthought.mayavi.mlab.
  * [Mayavi] Exposed modules and filters via mlab.
  * [Mayavi] Added full support for tensor visualization.
  * [Mayavi] First cut for new options framework.
  * [Mayavi] Using new API for adding widgets to a scene.
  * [Mayavi] Add the possibility to specify to which scene a source
should be added.
  * [Mayavi] Remove wxversioncheck that caused problems in too many
  * cases.
  * [Mayavi] Reimplemented VTKFileReader to be a subclass of
VTKXMLFileReader thus making codebase smaller and more consistent but
also allowing reading of OpenFOAM data.
  * [Mayavi] Added option to enable/disable the auto updating of ranges
used in contours.
  * [Mayavi] Numerous bug fixes and other minor enhancements.
  * [PyFace] Fixed full screen TVTK scenes issues. Full screen should
also work with VTK 5.0.3.
  * [PyFace] Added new TVTK SceneModel and SceneEditor classes that let
one embed a scene and manipulate it from within a Traits UI.
  * [PyFace] Added a configure scene button to the TVTK scene widget so
that users can configure the background and foreground colors, etc.
  * [PyFace] Added a new TVTK SceneEditor that supports actors and 3D
widgets.
  * [PyFace] Removed SimpleScene from the standard api.py module since
it is not commonly used and generates unnecessary warnings.
  * [PyFace] Refactored the TVTK actor_editor and actor_model into
separate modules to facilitate easier porting to PyFace 3.
  * [PyFace] Fixed splitwidget to work with wxPython 2.8.
  * [Traits] Added an auto_close_message function and corresponding UI
dialog.
  * [TVTK] Added support for local VTK classes that a user may have
  * built.
...

Read more...

Revision history for this message
Andrea Colangelo (warp10) wrote :

Gael, thank you for your comment. I don't want to go through a FFe, given your report, so I preferred to modify the debian/rules to fix the problem. I have taken it from the current debian version. I'm going to upload mayavi2 2.0.2a1-4ubuntu2 just now.
Once the binary package will be built, please confirm that you can regularly install it.

Thank you for your help! :-)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mayavi2 - 2.0.2a1-4ubuntu2

---------------
mayavi2 (2.0.2a1-4ubuntu2) hardy; urgency=low

  * debian/rules: Switch to new directory structure of python-central, to make
    the package actually installable. (LP: #207748)

 -- Andrea Colangelo <email address hidden> Wed, 02 Apr 2008 17:32:21 +0200

Changed in mayavi2:
status: In Progress → Fix Released
Revision history for this message
Gael Varoquaux (gael-varoquaux) wrote :

On Wed, Apr 02, 2008 at 03:49:05PM -0000, Andrea Colangelo wrote:
> Gael, thank you for your comment. I don't want to go through a FFe,
> given your report,

I can fully understand that. IMHO the 2.1 release is much nicer than the
2.0, but I know very well why you choose not to force a sync, and I
respect the decision a lot, as I know that it is more important to be
stable and predictible rather than leeding edge.

> so I preferred to modify the debian/rules to fix the problem. I have
> taken it from the current debian version. I'm going to upload mayavi2
> 2.0.2a1-4ubuntu2 just now. Once the binary package will be built,
> please confirm that you can regularly install it.

I don't run hardy :->. I could set up a VM, but each time I have done
that, I have lost a full evening (if you have VMs already set up that I
can use, I would be happy trying them out).

Hopefully the original reporter will be able to confirm that the package
installs.

Cheers,

Gaël

Revision history for this message
sv3t (tassev) wrote :

It installs now, but when I run mayavi2 I get the following:

Set Envisage to use the workbench UI: True
Set Envisage to use the workbench UI: True
Traceback (most recent call last):
  File "/usr/bin/mayavi2", line 4, in <module>
    mayavi2.main()
  File "/usr/lib/python2.5/site-packages/enthought/mayavi/scripts/mayavi2.py", line 465, in main
    m.main(sys.argv[1:])
  File "/usr/lib/python2.5/site-packages/enthought/mayavi/app.py", line 122, in main
    app.start()
  File "/usr/lib/python2.5/site-packages/enthought/envisage/core/application.py", line 331, in start
    self.load_plugin_definitions(self.plugin_definitions)
  File "/usr/lib/python2.5/site-packages/enthought/envisage/core/application.py", line 546, in load_plugin_definitions
    self.plugin_definition_loader.load(filenames)
  File "/usr/lib/python2.5/site-packages/enthought/envisage/core/plugin_definition_loader.py", line 98, in load
    definitions.extend(self._get_plugin_definitions(module))
  File "/usr/lib/python2.5/site-packages/enthought/envisage/core/plugin_definition_loader.py", line 272, in _get_plugin_definitions
    definitions = self._get_class_plugin_definitions(module)
  File "/usr/lib/python2.5/site-packages/enthought/envisage/core/plugin_definition_loader.py", line 307, in _get_class_plugin_definitions
    definition = value()
  File "/usr/lib/python2.5/site-packages/enthought/envisage/core/plugin_definition.py", line 94, in __init__
    self._add_to_module()
  File "/usr/lib/python2.5/site-packages/enthought/envisage/core/plugin_definition.py", line 106, in _add_to_module
    module = self._get_module()
  File "/usr/lib/python2.5/site-packages/enthought/envisage/core/plugin_definition.py", line 153, in _get_module
    return sys.modules[module_name]
KeyError: 'envisage.core.plugin_definition_loader'

Revision history for this message
Gael Varoquaux (gael-varoquaux) wrote :

On Wed, Apr 02, 2008 at 06:41:41PM -0000, sv3t wrote:
> It installs now, but when I run mayavi2 I get the following:

Wow, that's ugly.

Let's try to diagnose this.

Can you try to access Mayavi functionnality throught ipython, for
instance, run "ipython -wthread", and run the following commands:

from enthought.mayavi import mlab
mlab.test_contour3d()

You should see a window poping up, with 3 isosurfaces. You should be able
to rotate the view with the mouse. Going to fullscreen yields a crash
with the version you have.

If this doesn't work, we'll try an even simpler test, can you run the
following script (with the standard python):

++++++++++++++++++++
from enthought.traits.api import HasTraits, Str

class A(HasTraits):
    a = Str()

A().configure_traits()
++++++++++++++++++++

You should have a very simple dialog that pops up, with a text box to
edit a string.

Please give me the results of these tests with any traceback.

Cheers,

Gaël

Revision history for this message
Andrea Colangelo (warp10) wrote :

This bug refers to mayavi2 being not installable. Since this has been fixed, if you find a different bug, please feel free to open a new bug report for it.

Revision history for this message
sv3t (tassev) wrote :

Sorry. I reported the bug as Bug #211030, and will reply to Gaël Varoquaux there.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.