Description of problem: I tried to use mayavi2 under f18 Version-Release number of selected component: Mayavi-4.2.0-2.fc18 Additional info: cmdline: /usr/bin/python /usr/bin/mayavi2 dso_list: python-setuptools-0.6.28-3.fc18.noarch executable: /usr/bin/mayavi2 kernel: 3.7.2-201.fc18.x86_64 uid: 1000 Truncated backtrace: pkg_resources.py:588:resolve:DistributionNotFound: traitsui Traceback (most recent call last): File "/usr/bin/mayavi2", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2815, in <module> working_set.require(__requires__) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 690, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 588, in resolve raise DistributionNotFound(req) DistributionNotFound: traitsui Local variables in innermost frame: dist: None to_activate: [mayavi 4.2.0 (/usr/lib64/python2.7/site-packages)] req: Requirement.parse('traitsui') requirements: [Requirement.parse('traits'), Requirement.parse('apptools')] processed: {Requirement.parse('mayavi==4.2.0'): True} env: <pkg_resources.Environment object at 0x2457f50> installer: None self: <pkg_resources.WorkingSet object at 0x2457190> best: {'traitsui': None} replacement: True
Created attachment 680186 [details] File: backtrace
Created attachment 680187 [details] File: core_backtrace
Created attachment 680188 [details] File: environ
Mayavi package is unusable because of a missed dependency on TraitsUI ( http://code.enthought.com/projects/traits_ui/ ). Mayavi python interface is also broken due to this missing dependency: % python Python 2.7.3 (default, Aug 9 2012, 17:23:57) [GCC 4.7.1 20120720 (Red Hat 4.7.1-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mayavi.mlab Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/site-packages/mayavi/mlab.py", line 27, in <module> from mayavi.tools.camera import view, roll, yaw, pitch, move File "/usr/lib64/python2.7/site-packages/mayavi/tools/camera.py", line 25, in <module> from engine_manager import get_engine File "/usr/lib64/python2.7/site-packages/mayavi/tools/engine_manager.py", line 12, in <module> from mayavi.preferences.api import preference_manager File "/usr/lib64/python2.7/site-packages/mayavi/preferences/api.py", line 4, in <module> from preference_manager import preference_manager File "/usr/lib64/python2.7/site-packages/mayavi/preferences/preference_manager.py", line 29, in <module> from traitsui.api import View, Group, Item ImportError: No module named traitsui.api
Turns out that the dependencies for MayaVi2 are seriously broken. I quickly generated some working version of both MayaVi2 (tested in both GUI and scripted mode) and its dependencies (untested, but at least allows MayaVi2 to work perfectly). Pre-compiled packages available here: http://builds.dev.sd2.net/mayavi-f18/RPMS/ SPEC files used to generated those: http://builds.dev.sd2.net/mayavi-f18/SPECS/ To remove the broken FC18 version and install the fixed version: sudo yum remove python-Traits && sudo yum install http://builds.dev.sd2.net/mayavi-f18/RPMS/{x86_64/python-traits-4.2.0-3.fc18.x86_64,noarch/python-{apptools-4.1.0-1,{traitsui,pyface,envisage}-4.2.0-3}.fc18.noarch,x86_64/mayavi-4.2.0-3.fc18.x86_64}.rpm (the first command should uninstall Mayavi and its dependencies: python-Traits, python-AppTools, python-EnvisageCore, python-EnvisagePlugins, python-TraitsBackendQt and python-TraitsGUI, and the second installs the fixed version)
I've installed your pre-compiled packages and everything seems to run smoothly.
(In reply to comment #5) > Turns out that the dependencies for MayaVi2 are seriously broken. > > I quickly generated some working version of both MayaVi2 (tested in both GUI > and scripted mode) and its dependencies (untested, but at least allows > MayaVi2 to work perfectly). > By any chance are you a package maintainer in Fedora ? If yes, would you mind maintaining Mayavi ? In case no, I will request someone to push updates quickly. My studies have kept me busy and sadly cannot allocate too much time to look into this. Regards,
(In reply to comment #7) > > By any chance are you a package maintainer in Fedora ? If yes, would you > mind maintaining Mayavi ? In case no, I will request someone to push updates > quickly. My studies have kept me busy and sadly cannot allocate too much > time to look into this. > I have very little knowledge about RPMs and the whole packaging process--and I'm too busy as to spend time learning. I cannot really take the responsibility. Sorry!
(In reply to comment #8) > (In reply to comment #7) > > > > By any chance are you a package maintainer in Fedora ? If yes, would you > > mind maintaining Mayavi ? In case no, I will request someone to push updates > > quickly. My studies have kept me busy and sadly cannot allocate too much > > time to look into this. > > > > I have very little knowledge about RPMs and the whole packaging process--and > I'm too busy as to spend time learning. I cannot really take the > responsibility. Sorry! Thank you. Sorry about confusion. I was asking Seb. He has just replied on email. Thank you for reporting this issue. Regards,
Any news about it?
Another two months. Anybody working on this? It's pretty much useless right out of the box.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Should be fixed with Mayavi-4.3.0-2.fc18