Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399537 - sci-visualization/mayavi-4.1.0 - QWidget: Must construct a QApplication before a QPaintDevice
Summary: sci-visualization/mayavi-4.1.0 - QWidget: Must construct a QApplication befor...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
: 398173 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-20 18:05 UTC by Jean-Francois Ostiguy
Modified: 2012-03-05 10:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge .info (emerge.info,5.46 KB, text/plain)
2012-01-20 18:07 UTC, Jean-Francois Ostiguy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Francois Ostiguy 2012-01-20 18:05:41 UTC
* mayavi-4.1.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                        [ ok ]
>>> Unpacking source...
>>> Unpacking mayavi-4.1.0.tar.gz to /var/tmp/portage/sci-visualization/mayavi-4.1.0/work
>>> Source unpacked in /var/tmp/portage/sci-visualization/mayavi-4.1.0/work
>>> Preparing source in /var/tmp/portage/sci-visualization/mayavi-4.1.0/work/mayavi-4.1.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-visualization/mayavi-4.1.0/work/mayavi-4.1.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-visualization/mayavi-4.1.0/work/mayavi-4.1.0 ...
 * Building of sci-visualization/mayavi-4.1.0 with CPython 2.7...
python2.7 setup.py build -b build-2.7
running build
----------------------------------------------------------------------
Building TVTK classes... vtkSimple3DCirclesStrategy: Ignoring method: Get/SetMarkedValue
default: (invalid), range: None
vtkArrayNorm: Ignoring method: Get/SetWindow
default: [0, 9223372036854775807), range: None
vtkChart: Ignoring method: Get/SetSize
default: [0.0, 0.0, 0.0, 0.0], range: None
QWidget: Must construct a QApplication before a QPaintDevice
/var/tmp/portage/sci-visualization/mayavi-4.1.0/temp/environment: line 1353:  9732 Aborted                 "$(PYTHON)" "${setup_file#*|}" "${_DISTUTILS_GLOBAL_OPTIONS[@]}" build -b "$(_distutils_get_build_dir)" "$@"
 * ERROR: sci-visualization/mayavi-4.1.0 failed (compile phase):
 *   Building failed with CPython 2.7 in distutils_building() function
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 5156:  Called distutils_src_compile
 *   environment, line 1362:  Called python_execute_function 'distutils_building'
 *   environment, line 3503:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 * 
 * If you need support, post the output of 'emerge --info =sci-visualization/mayavi-4.1.0',
 * the complete build log and the output of 'emerge -pqv =sci-visualization/mayavi-4.1.0'.
 * The complete build log is located at '/var/tmp/portage/sci-visualization/mayavi-4.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-visualization/mayavi-4.1.0/temp/environment'.
 * S: '/var/tmp/portage/sci-visualization/mayavi-4.1.0/work/mayavi-4.1.0'



Reproducible: Always
Comment 1 Jean-Francois Ostiguy 2012-01-20 18:07:36 UTC
Created attachment 299409 [details]
emerge .info
Comment 2 Aleksandr Yakimov 2012-01-22 14:10:38 UTC
This also affects mayavi-3.4.1 and 4.0.0
Comment 3 Juergen Rose 2012-02-07 13:02:40 UTC
I have the same issue. Is there any workaround?
Comment 4 Martin Luessi 2012-02-19 17:30:12 UTC
As a workaround, emerge sci-libs/vtk without qt4 support (USE="-qt4"). The problem is that mayavi tries to wrap vtkQt classes, which doesn't work.

See her for the upstream bug report and proposed fix: 

https://github.com/enthought/mayavi/issues/24
Comment 5 Juergen Rose 2012-02-20 12:49:20 UTC
After reemerge vtk without the qt4 USE flag 'emerge mayavi' fails now with undefined symbol zungqr_ in  /usr/lib64/python2.7/site-packages/numpy/linalg/lapack_lite.so, which also happens in bug https://bugs.gentoo.org/show_bug.cgi?id=404109.
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2012-03-05 10:22:54 UTC
*** Bug 398173 has been marked as a duplicate of this bug. ***
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2012-03-05 10:27:07 UTC
+*mayavi-4.1.0-r1 (05 Mar 2012)
+
+  05 Mar 2012; Justin Lecher <jlec@gentoo.org> -mayavi-3.4.1.ebuild,
+  -mayavi-4.0.0.ebuild, mayavi-4.1.0.ebuild, +mayavi-4.1.0-r1.ebuild,
+  +files/mayavi-4.1.0-vtkQt.patch:
+  Drop old, #322191; restrict multiabi installation, #405541; include backport
+  patch from upstream, fixes compilation with newer vtk, #399537
+