Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attractors example is broken #7

Closed
timdiller opened this issue Feb 14, 2012 · 2 comments
Closed

attractors example is broken #7

timdiller opened this issue Feb 14, 2012 · 2 comments

Comments

@timdiller
Copy link

enthought/ets/envisage/examples/plugins/tasks/attractors

$ python run.py

  File "run.py", line 27, in <module>
    main(sys.argv)
  File "run.py", line 20, in main
    app.run()
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/envisage/ui/tasks/tasks_application.py", line 134, in run
    self._create_windows()
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/envisage/ui/tasks/tasks_application.py", line 287, in _create_windows
    restore=self.always_use_default_layout)
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/envisage/ui/tasks/tasks_application.py", line 205, in create_window
    window.add_task(task)
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/pyface/tasks/task_window.py", line 182, in add_task
    state.central_pane.create(self.control)
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/pyface/tasks/traits_task_pane.py", line 40, in create
    self.ui = self.edit_traits(kind='subpanel', parent=parent)
  File "/Users/tdiller/timdiller/traits/traits/has_traits.py", line 2247, in edit_traits
    handler, id, scrollable, args )
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/traitsui/view.py", line 433, in ui
    ui.ui( parent, kind )
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/traitsui/ui.py", line 218, in ui
    self.rebuild( self, parent )
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/traitsui/qt4/toolkit.py", line 140, in ui_subpanel
    ui_panel.ui_subpanel( ui, parent )
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/traitsui/qt4/ui_panel.py", line 78, in ui_subpanel
    _ui_panel_for(ui, parent, True)
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/traitsui/qt4/ui_panel.py", line 84, in _ui_panel_for
    ui.control = control = _Panel(ui, parent, is_subpanel).control
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/traitsui/qt4/ui_panel.py", line 142, in __init__
    self.control = panel(ui)
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/traitsui/qt4/ui_panel.py", line 230, in panel
    panel = _GroupPanel(content[0], ui).control
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/traitsui/qt4/ui_panel.py", line 562, in __init__
    layout = self._add_groups(content, inner)
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/traitsui/qt4/ui_panel.py", line 641, in _add_groups
    panel = _GroupPanel(subgroup, self.ui).control
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/traitsui/qt4/ui_panel.py", line 564, in __init__
    layout = self._add_items(content, inner)
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/traitsui/qt4/ui_panel.py", line 833, in _add_items
    None).set(
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/chaco/chaco_plot_editor.py", line 184, in simple_editor
    description = description )
  File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/traitsui/editor.py", line 133, in __init__
    self.old_value = getattr( self.object, self.name )
AttributeError: 'Plot2dPane' object has no attribute 'Plot'

@jdmarch
Copy link

jdmarch commented Feb 14, 2012

Starts ok for me in Win7 and OSX 10.6, under QT, with pyside 1.1.0-2.
Only with this latest version of pyside are many ETS QT failures fixed.
Did not test this with pyqt.

(For the record, Tasks is currently QT-only.)

@timdiller
Copy link
Author

I just updated to the latest PySide (1.1.0-2) and am running OS 10.7. My repo is up to date on the master branch as of a few minutes ago.

However, pulling the latest changes on Chaco master branch has fixed the problem. I guess that if someone is running the examples, then they have ETS cloned, and we can assume that if they get the same error, the traceback will lead them to a Chaco update, as it did me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants