fix FTBFS issue with python on oneiric

Bug #797908 reported by Sameer Morar
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mayavi2 (Debian)
Fix Released
Unknown
mayavi2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: mayavi2

mayavi2-3.4.1-1 from debian unstable does not build, with the following error on oneiric:
dh --with python2 build
   dh_testdir
   dh_auto_configure
   dh_auto_build
running build
Traceback (most recent call last):
  File "setup.py", line 538, in <module>
    **config
  File "/usr/lib/pymodules/python2.6/numpy/distutils/core.py", line 186, in setup
    return old_setup(**new_attr)
  File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "setup.py", line 326, in run
    build_tvtk_classes_zip()
  File "setup.py", line 313, in build_tvtk_classes_zip
    gen_tvtk_classes_zip()
  File "enthought/tvtk/setup.py", line 46, in gen_tvtk_classes_zip
    from code_gen import TVTKGenerator
  File "enthought/tvtk/code_gen.py", line 10, in <module>
    import vtk
ImportError: No module named vtk
dh_auto_build: python2.6 setup.py build --force returned exit code 1

This occurs because the vtk module is not being built for python2.6.

Revision history for this message
Sameer Morar (smorar) wrote :
tags: added: patch
Changed in mayavi2 (Ubuntu):
status: New → Confirmed
Sameer Morar (smorar)
tags: added: python27
Revision history for this message
Stefano Rivera (stefanor) wrote :

Yes, doesn't look like VTK is about to change that, and this also results in an FTBFS in Debian.

I suggest not using ">= 2.6", just 2.6. It only supports one version at a time. Yes, it's ugly.

Any reason why you are bumping the numpy BD?

Please use a more descriptive changelog entry. Or even better, let's get this fixed in Debian (which probably means XS-Python-Version: current) and sync to Ubuntu.

tags: removed: python27
Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 797908] Re: fix FTBFS issue with python on oneiric

On Thursday, June 16, 2011 10:24:39 AM you wrote:
> Please use a more descriptive changelog entry. Or even better, let's get
> this fixed in Debian (which probably means XS-Python-Version: current)
> and sync to Ubuntu.

current is deprecated. (See Python policy). Please don't use that.

Revision history for this message
Sameer Morar (smorar) wrote :

On Thu, 2011-06-16 at 15:37 +0000, Scott Kitterman wrote:
> On Thursday, June 16, 2011 10:24:39 AM you wrote:
> > Please use a more descriptive changelog entry. Or even better, let's get
> > this fixed in Debian (which probably means XS-Python-Version: current)
> > and sync to Ubuntu.
>
> current is deprecated. (See Python policy). Please don't use that.
>

In this case, would the proper fix for this bug then be to fix the vtk
bindings? Or is there another way of specifying the currently supported
python version?

Revision history for this message
Scott Kitterman (kitterman) wrote :

By 'supported', I assume you mean default? Supported (in Debian/Ubuntu Python
terms) means the Python versions we build modules for (currently 2.6 and 2.7
in both Debian and Ubuntu). You can use pyversions -d (or some variant to get
the output format you want) in debian/rules to access the current (at build
time) python version.

Revision history for this message
Stefano Rivera (stefanor) wrote :

Scott: I'm well aware that it's deprecated, but it's about the only thing one can do without replacing the dh_auto loops. I agree that's probably preferable, just more ugly.

tags: added: pycentral-deprecation
Changed in mayavi2 (Debian):
status: Unknown → Fix Released
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.