Bug 896503 - [abrt] Mayavi-4.2.0-2.fc18: pkg_resources.py:588:resolve:DistributionNotFound: traitsui
Summary: [abrt] Mayavi-4.2.0-2.fc18: pkg_resources.py:588:resolve:DistributionNotFound...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Mayavi
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6f9f0ff7ac9afb65ccc7d1036a1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-17 13:13 UTC by Luca Giuzzi
Modified: 2013-07-30 15:13 UTC (History)
9 users (show)

Fixed In Version: Mayavi-4.3.0-2.fc18
Clone Of:
Environment:
Last Closed: 2013-07-30 15:13:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.02 KB, text/plain)
2013-01-17 13:13 UTC, Luca Giuzzi
no flags Details
File: core_backtrace (395 bytes, text/plain)
2013-01-17 13:13 UTC, Luca Giuzzi
no flags Details
File: environ (2.77 KB, text/plain)
2013-01-17 13:14 UTC, Luca Giuzzi
no flags Details

Description Luca Giuzzi 2013-01-17 13:13:54 UTC
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

Comment 1 Luca Giuzzi 2013-01-17 13:13:57 UTC
Created attachment 680186 [details]
File: backtrace

Comment 2 Luca Giuzzi 2013-01-17 13:13:59 UTC
Created attachment 680187 [details]
File: core_backtrace

Comment 3 Luca Giuzzi 2013-01-17 13:14:01 UTC
Created attachment 680188 [details]
File: environ

Comment 4 Seb L. 2013-02-08 10:15:07 UTC
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

Comment 5 Seb L. 2013-02-08 17:50:23 UTC
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)

Comment 6 Lisandro Dalcin 2013-02-09 13:15:45 UTC
I've installed your pre-compiled packages and everything seems to run smoothly.

Comment 7 Rakesh Pandit 2013-02-11 03:13:21 UTC
(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,

Comment 8 Lisandro Dalcin 2013-02-11 08:36:22 UTC
(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!

Comment 9 Rakesh Pandit 2013-02-11 11:14:21 UTC
(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,

Comment 10 marcindulak 2013-03-19 16:37:27 UTC
Any news about it?

Comment 11 Elliott Sales de Andrade 2013-05-18 01:04:27 UTC
Another two months. Anybody working on this? It's pretty much useless right out of the box.

Comment 12 Fedora Admin XMLRPC Client 2013-07-30 14:08:56 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 13 Orion Poplawski 2013-07-30 15:13:49 UTC
Should be fixed with Mayavi-4.3.0-2.fc18


Note You need to log in before you can comment on or make changes to this bug.