Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#34342 closed defect (fixed)

py26-mayavi: "list index out of range", "NotImplementedError: the enthought.tvtk.pyface.ui.wx. pyface backend doesn't implement DecoratedScene" errors

Reported by: mymacports@… Owned by: jjstickel@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: jjstickel (Jonathan Stickel)
Port: py26-mayavi

Description (last modified by ryandesign (Ryan Carsten Schmidt))

after the recent "sudo port upgrade outdated" mayavi (py26-mayavi package) stopped working on Mac OS X 10.7.3. py26-mayavi package was uninstalled, installed again - no effect. symptoms are:

ZZZ:~ yyy$ mayavi2-2.6

ERROR|2012-05-04 18:13:09,214|error creating editor control <TVTK Scene 1>
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/enthought/pyface/ui/wx/workbench/workbench_window_layout.py", line 96, in add_editor
    self._wx_add_editor(editor, title)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/enthought/pyface/ui/wx/workbench/workbench_window_layout.py", line 320, in _wx_add_editor
    editor_dock_control = self._wx_create_editor_dock_control(editor)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/enthought/pyface/ui/wx/workbench/workbench_window_layout.py", line 441, in _wx_create_editor_dock_control
    self._wx_get_editor_control(editor)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/enthought/pyface/ui/wx/workbench/workbench_window_layout.py", line 509, in _wx_get_editor_control
    editor.control = editor.create_control(parent)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/enthought/tvtk/plugins/scene/scene_editor.py", line 61, in create_control
    self.scene = self._create_decorated_scene(parent)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/enthought/tvtk/plugins/scene/scene_editor.py", line 87, in _create_decorated_scene
    scene = DecoratedScene(parent, stereo=stereo)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/enthought/tvtk/pyface/toolkit.py", line 87, in __init__
    raise NotImplementedError("the %s pyface backend doesn't implement %s" % (be, oname))
NotImplementedError: the enthought.tvtk.pyface.ui.wx. pyface backend doesn't implement DecoratedScene
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14614, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/enthought/mayavi/scripts/mayavi2.py", line 519, in run
    process_cmd_line(self, options, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/enthought/mayavi/scripts/mayavi2.py", line 275, in process_cmd_line
    last_obj = script.new_scene()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/enthought/mayavi/plugins/script.py", line 84, in new_scene
    return self.engine.new_scene()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/enthought/scripting/recordable.py", line 45, in _wrapper
    result = func(*args, **kw)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/enthought/mayavi/plugins/envisage_engine.py", line 92, in new_scene
    return self.scenes[-1]
IndexError: list index out of range

Attachments (1)

py27-mayavi (4.1.0) - main.log (89.8 KB) - added by mymacports@… 12 years ago.

Download all attachments as: .zip

Change History (29)

comment:1 Changed 12 years ago by mymacports@…

Cc: mymacports@… added

Cc Me!

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mymacports@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to jjstickel@…
Priority: HighNormal

comment:3 Changed 12 years ago by jjstickel (Jonathan Stickel)

Cc: jjstickel@… added

Cc Me!

comment:4 Changed 12 years ago by jjstickel (Jonathan Stickel)

Looks to be some trouble with wx backend. I recommend trying the qt4 backend (+qt4 variant of py*-traitsgui) and/or using the updated enthought ports as summarized in ticket #33108 (still waiting to be committed).

comment:5 in reply to:  4 ; Changed 12 years ago by mymacports@…

Replying to jjstickel@…:

Looks to be some trouble with wx backend. I recommend trying the qt4 backend (+qt4 variant of py*-traitsgui) and/or using the updated enthought ports as summarized in ticket #33108 (still waiting to be committed).

thanks

... the only problem with trying the qt4 backend and/or updated ports is that I do not know how to proceed with either of them ... any hints? please ...

comment:6 in reply to:  5 ; Changed 12 years ago by jjstickel (Jonathan Stickel)

Replying to mymacports@…:

... the only problem with trying the qt4 backend and/or updated ports is that I do not know how to proceed with either of them ... any hints? please ...

To use the existing ports in the macports tree with qt4, uninstall mayavi and dependencies back to traitsgui and traitsbackendwx. Then install traitsgui with the qt4 variant, e.g. "sudo port install py26-traitsgui +qt4". You should see qt4 and py-pyqt4 installed as dependencies, unless you already have them. Then reinstall py-mayavi.

comment:7 Changed 12 years ago by mf2k (Frank Schima)

Keywords: mayavi py26-mayavi "list index out of range" "NotImplementedError: the enthought.tvtk.pyface.ui.wx. pyface backend doesn't implement DecoratedScene" removed

comment:8 in reply to:  6 ; Changed 12 years ago by mymacports@…

Replying to jjstickel@…:

Replying to mymacports@…:

... the only problem with trying the qt4 backend and/or updated ports is that I do not know how to proceed with either of them ... any hints? please ...

To use the existing ports in the macports tree with qt4, uninstall mayavi and dependencies back to traitsgui and traitsbackendwx. Then install traitsgui with the qt4 variant, e.g. "sudo port install py26-traitsgui +qt4". You should see qt4 and py-pyqt4 installed as dependencies, unless you already have them. Then reinstall py-mayavi.


I have followed your instructions.

installation of py26-mayavi gives error (from the log file):

:notice:build --->  Building py26-mayavi
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build Executing org.macports.build (py26-mayavi)
:debug:build Environment: CPATH='/opt/local/include' CFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' CXX='/usr/bin/clang++' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-mayavi/py26-mayavi/work/.CC_PRINT_OPTIONS' F90FLAGS='-m64' LDFLAGS='-arch x86_64' FCFLAGS='-m64' OBJC='/usr/bin/clang' GI_SCANNER_DISABLE_CACHE='1' OBJCFLAGS='-arch x86_64' FFLAGS='-m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-mayavi/py26-mayavi/work/Mayavi-3.4.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-mayavi/py26-mayavi/work/Mayavi-3.4.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build 
:info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:267: UserWarning: Unknown distribution option: 'docs_in_egg'
:info:build   warnings.warn(msg)
:info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:267: UserWarning: Unknown distribution option: 'ssh_server'
:info:build   warnings.warn(msg)
:info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:267: UserWarning: Unknown distribution option: 'ssh_remote_dir'
:info:build   warnings.warn(msg)
:info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:267: UserWarning: Unknown distribution option: 'docs_in_egg_location'
:info:build   warnings.warn(msg)
:info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:267: UserWarning: Unknown distribution option: 'html_doc_repo'
:info:build   warnings.warn(msg)
:info:build running build
:info:build Traceback (most recent call last):
:info:build   File "setup.py", line 538, in <module>
:info:build     **config
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/distutils/core.py", line 186, in setup
:info:build     return old_setup(**new_attr)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 152, in setup
:info:build     dist.run_commands()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 987, in run_commands
:info:build     self.run_command(cmd)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 1007, in run_command
:info:build     cmd_obj.run()
:info:build   File "setup.py", line 326, in run
:info:build     build_tvtk_classes_zip()
:info:build   File "setup.py", line 313, in build_tvtk_classes_zip
:info:build     gen_tvtk_classes_zip()
:info:build   File "enthought/tvtk/setup.py", line 46, in gen_tvtk_classes_zip
:info:build     from code_gen import TVTKGenerator
:info:build   File "enthought/tvtk/code_gen.py", line 10, in <module>
:info:build     import vtk
:info:build ImportError: No module named vtk
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-mayavi/py26-mayavi/work/Mayavi-3.4.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 1
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for py26-mayavi): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for py26-mayavi is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-mayavi/py26-mayavi/main.log

vtk is installed (vtk5 @5.8.0_0+tcltk+x11 (active))

comment:9 in reply to:  8 ; Changed 12 years ago by jjstickel (Jonathan Stickel)

Replying to mymacports@…:

vtk is installed (vtk5 @5.8.0_0+tcltk+x11 (active))

You must installed vtk5 with the appropriate python variant. In order to use the qt4 backend, you should also negate the x11 variant, i.e. "-x11".

comment:10 in reply to:  9 Changed 12 years ago by mymacports@…

Replying to jjstickel@…:

Replying to mymacports@…:

vtk is installed (vtk5 @5.8.0_0+tcltk+x11 (active))

You must installed vtk5 with the appropriate python variant. In order to use the qt4 backend, you should also negate the x11 variant, i.e. "-x11".

sudo port uninstall --follow-dependencies py26-mayavi

sudo port -v install vtk5 +carbon +python27 +qt4_mac -tcltk -x11

sudo port install py27-traitsgui +qt4

sudo port install py27-mayavi

gives error:

... $ mayavi2-2.7
Warning: Unable to import the wx backend for pyface due to traceback: Traceback (most recent call last):
	  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enthought/pyface/toolkit.py", line 45, in _init_toolkit
	    be = import_toolkit(tk)
	  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enthought/pyface/toolkit.py", line 31, in import_toolkit
	    __import__(be + 'init')
	ImportError: No module named wx.init

Traceback (most recent call last):
  File "/opt/local/bin/mayavi2-2.7", line 9, in <module>
    load_entry_point('Mayavi==3.4.1', 'console_scripts', 'mayavi2')()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enthought/mayavi/scripts/mayavi2.py", line 649, in main
    mayavi.main(sys.argv[1:])
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enthought/mayavi/plugins/app.py", line 195, in main
    app.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enthought/mayavi/plugins/mayavi_workbench_application.py", line 79, in run
    position=self.window_position, size=self.window_size
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enthought/pyface/workbench/workbench.py", line 113, in create_window
    window = self.window_factory(workbench=self, **kw)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enthought/traits/has_traits.py", line 3628, in _init_trait_listeners
    getattr( self, '_init_trait_%s_listener' % data[0] )( name, *data )
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enthought/traits/has_traits.py", line 3683, in _init_trait_delegate_listener
    self.on_trait_change( notify, name_pattern, target=self )
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enthought/traits/has_traits.py", line 2934, in on_trait_change
    listener.register( self )
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enthought/traits/traits_listener.py", line 433, in register
    value = getattr( self, type )( new, name, False )
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enthought/traits/traits_listener.py", line 666, in _register_simple
    return next.register( getattr( object, name ) )
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enthought/pyface/workbench/workbench_window.py", line 252, in _layout_default
    return WorkbenchWindowLayout(window=self)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enthought/pyface/toolkit.py", line 92, in __init__
    raise NotImplementedError("the %s pyface backend doesn't implement %s" % (ETSConfig.toolkit, oname))
NotImplementedError: the qt4 pyface backend doesn't implement WorkbenchWindowLayout
... $

what am I doing wrong?

comment:11 Changed 12 years ago by colbylemon@…

Cc: colbylemon@… added

Cc Me!

comment:12 Changed 12 years ago by colbylemon@…

Cc: colbylemon@… removed

Cc Me!

comment:13 Changed 12 years ago by colbylemon@…

I'm having the exact same problem, but with py27-mayavi, so I'm curious to see what the resolution is (or if we will just have to upgrade to the later versions of the enthought packages).

comment:14 Changed 12 years ago by colbylemon@…

(I now realize that you, too, are using py27-mayavi; I should be clear that I'm getting the "qt4 pyface backend doesn't implement WorkbenchWindowLayout" error, not the original py26-mayavi errors)

comment:15 Changed 12 years ago by mymacports@…

I did

sudo port uninstall --follow-dependencies py27-mayavi

sudo port uninstall --follow-dependencies py27-traits

sudo port uninstall --follow-dependencies vtk5

then

sudo port -v install vtk5 +carbon +python27 +qt4_mac -tcltk -x11

sudo port -v install py27-traits -wx +qt4

sudo port -v install py27-mayavi

and got the same "NotImplementedError: the qt4 pyface backend doesn't implement WorkbenchWindowLayout" when trying to run "mayavi2-2.7".

some other stuff:

1:

... $ sudo port install py27-mayavi
Password:
--->  Computing dependencies for py27-mayavi
Error: Cannot install py27-traitsbackendwx for the arch(s) 'x86_64' because
Error: its dependency py27-wxpython only supports the arch(s) 'i386 ppc'.
Error: Unable to execute port: architecture mismatch
To report a bug, see <http://guide.macports.org/#project.tickets>
... $

"sudo port install py25-mayavi" gives the same error:

... $ sudo port install py25-mayavi
Password:
--->  Computing dependencies for py25-mayavi
Error: Cannot install py25-traitsbackendwx for the arch(s) 'x86_64' because
Error: its dependency py25-wxpython only supports the arch(s) 'i386 ppc'.
Error: Unable to execute port: architecture mismatch
To report a bug, see <http://guide.macports.org/#project.tickets>
... $

although py27-mayavi has only the 'universal' variant, "sudo port -v install py27-mayavi +qt4" works until it gives the following error:

--->  Building py27-mayavi
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'docs_in_egg'
  warnings.warn(msg)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'ssh_server'
  warnings.warn(msg)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'ssh_remote_dir'
  warnings.warn(msg)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'docs_in_egg_location'
  warnings.warn(msg)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'html_doc_repo'
  warnings.warn(msg)
running build
Traceback (most recent call last):
  File "setup.py", line 538, in <module>
    **config
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/core.py", line 186, in setup
    return old_setup(**new_attr)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, 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
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-mayavi/py27-mayavi/work/Mayavi-3.4.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build " returned error 1
Error: Target org.macports.build returned: shell command failed (see log for details)
Warning: the following items did not execute (for py27-mayavi): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for py27-mayavi is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-mayavi/py27-mayavi/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
... $

2:

I did

sudo port uninstall --follow-dependencies py27-mayavi

sudo port uninstall --follow-dependencies py27-traits

sudo port uninstall --follow-dependencies vtk5

[py26-traits was uninstalled too]

and tried "sudo port install py26-mayavi" and got the same error message as for "sudo port -v install py27-mayavi +qt4":

:info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:267: UserWarning: Unknown distribution option: 'html_doc_repo'
:info:build   warnings.warn(msg)
:info:build running build
:info:build Traceback (most recent call last):
:info:build   File "setup.py", line 538, in <module>
:info:build     **config
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/distutils/core.py", line 186, in setup
:info:build     return old_setup(**new_attr)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 152, in setup
:info:build     dist.run_commands()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 987, in run_commands
:info:build     self.run_command(cmd)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 1007, in run_command
:info:build     cmd_obj.run()
:info:build   File "setup.py", line 326, in run
:info:build     build_tvtk_classes_zip()
:info:build   File "setup.py", line 313, in build_tvtk_classes_zip
:info:build     gen_tvtk_classes_zip()
:info:build   File "enthought/tvtk/setup.py", line 46, in gen_tvtk_classes_zip
:info:build     from code_gen import TVTKGenerator
:info:build   File "enthought/tvtk/code_gen.py", line 10, in <module>
:info:build     import vtk
:info:build ImportError: No module named vtk
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-mayavi/py26-mayavi/work/Mayavi-3.4.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 1
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for py26-mayavi): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for py26-mayavi is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-mayavi/py26-mayavi/main.log

comment:16 in reply to:  15 ; Changed 12 years ago by jjstickel (Jonathan Stickel)

Replying to mymacports@…:

sudo port -v install vtk5 +carbon +python27 +qt4_mac -tcltk -x11

Should be: sudo port -v install vtk5 -carbon +python27 +qt4_mac -tcltk -x11

~

vtk5 should not be installed with carbon. With '-carbon -x11', cocoa will be used as the backend, and that is what qt4-mac uses. Also +qt4_mac is not needed for vtk5, but it doesn't hurt.

sudo port -v install py27-traits -wx +qt4

Should be: sudo port -v install py27-traitsgui -wx +qt4

~

sudo port -v install py27-mayavi

Also, make sure wxwidgets and wxpython are uninstalled or at least deactivated and that all your ports are installed either i386 OR x86_64 (mixing them up or universal builds can cause problems). I am sorry you are having all this trouble. Mayavi is an unruly beast and I have spent a lot of trial and error to get it working over the last few years.

comment:17 Changed 12 years ago by colbylemon@…

I had also installed vtk5 with +carbon, so I was hopeful that was the problem. However, re-installing with the commands you suggested did not fix the problem for me.

> port -v installed | grep -i 'traits|qt|wx|envisage|mayavi|apptools|vtk|configobj|enthought'

  py27-apptools @3.4.1_0 (active) platform='darwin 10' archs='x86_64'
  py27-configobj @4.6.0_0 (active) platform='darwin 10' archs='noarch'
  py27-enthoughtbase @3.1.0_0 (active) platform='darwin 10' archs='noarch'
  py27-envisagecore @3.2.0_0 (active) platform='darwin 10' archs='noarch'
  py27-envisageplugins @3.2.0_0 (active) platform='darwin 10' archs='x86_64'
  py27-mayavi @3.4.1_0 (active) platform='darwin 10' archs='x86_64'
  py27-pyqt4 @4.9.1_0 (active) platform='darwin 10' archs='x86_64'
  py27-traits @3.6.0_0 (active) platform='darwin 10' archs='x86_64'
  py27-traitsbackendqt @3.6.0_0 (active) platform='darwin 10' archs='x86_64'
  py27-traitsgui @3.6.0_0+qt4-wx (active) platform='darwin 10' archs='x86_64'
  qt4-mac @4.7.4_1+quartz (active) platform='darwin 10' archs='x86_64'
  vtk5 @5.8.0_0+python27+qt4_mac-carbon-tcltk-x11 (active) platform='darwin 10' archs='x86_64'

Does any of this look wrong?

comment:18 in reply to:  17 Changed 12 years ago by jjstickel (Jonathan Stickel)

Replying to colbylemon@…:

I had also installed vtk5 with +carbon, so I was hopeful that was the problem. However, re-installing with the commands you suggested did not fix the problem for me.

...

Does any of this look wrong?

No, all looks good to me. I am guessing that the 3.x series of the enthought ports are having trouble with newer versions of qt4 and/or vtk. I am now using the updated ports summarized in #33108, and unfortunately I don't have time to retest these old versions.

comment:19 Changed 12 years ago by colbylemon@…

I'd be more than happy to use the updated ports myself. Is the procedure for doing so the same as installing an older version of a port? (https://trac.macports.org/wiki/howto/InstallingOlderPort)

Or is there a way to force macports to automatically retrieve these ports?

comment:20 Changed 12 years ago by jjstickel (Jonathan Stickel)

To use ports from the tracker, it works best to setup a local repository:

http://guide.macports.org/#development.local-repositories

If you need help setting up a local repository, please ask on the mailing list so that we do not clutter this ticket further. If you have problems with the new enthought ports, please report them on the individual tickets.

comment:21 in reply to:  16 ; Changed 12 years ago by mymacports@…

Replying to jjstickel@…:

sudo port -v install py27-traits -wx +qt4

Should be: sudo port -v install py27-traitsgui -wx +qt4

ahh... I think I used 'traitsgui'...
(can not check now - mac hung, I had to hard reboot it, and .bash_history does not have logs of that session as a result... )
anyway..
I have the same problem with the correct installation options you provided.

thanks for your guidance though!

when will the updated ports be available for "normal" installation?

comment:22 in reply to:  21 ; Changed 12 years ago by jjstickel (Jonathan Stickel)

Replying to mymacports@…:

when will the updated ports be available for "normal" installation?

When a committer gets to it. I think it is taking extra time for these because there are a lot of port updates and new ports to be committed at once.

comment:23 in reply to:  22 Changed 12 years ago by jjstickel (Jonathan Stickel)

Replying to jjstickel@…:

Replying to mymacports@…:

when will the updated ports be available for "normal" installation?

When a committer gets to it. I think it is taking extra time for these because there are a lot of port updates and new ports to be committed at once.

py-mayavi has been updated to 4.1.0 in r95885. Can you let us know if this resolves your problem?

comment:24 Changed 12 years ago by mymacports@…

sudo port -d selfupdate

...

sudo port -d install py27-mayavi:

--->  Configuring py27-mayavi
DEBUG: Using compiler 'Mac OS X clang'
DEBUG: Executing proc-pre-org.macports.configure-configure-0
Note that vtk5 must be installed using the same framework (cocoa OR x11/gtk) as that used for the GUI (wxwidgets/wxpython OR qt4/pyqt4).
Error: org.macports.configure for port py27-mayavi returned: no files matched glob pattern "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/VTK-*-py2.7.egg-info/PKG-INFO"
DEBUG: Error code: NONE
DEBUG: Backtrace: no files matched glob pattern "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/VTK-*-py2.7.egg-info/PKG-INFO"
    while executing
"$pre $targetname"
Warning: targets not executed for py27-mayavi: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Please see the log file for port py27-mayavi for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-mayavi/py27-mayavi/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py27-mayavi failed


main.log is attached

Changed 12 years ago by mymacports@…

comment:25 in reply to:  24 Changed 12 years ago by jjstickel (Jonathan Stickel)

Replying to mymacports@…:

sudo port -d selfupdate

...

DEBUG: Backtrace: no files matched glob pattern "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/VTK-*-py2.7.egg-info/PKG-INFO"

The Portfile had a minor error when checking that vtk5 was installed with the matching python variant. See ticket #35560 for a patch.

You just need to reinstall vtk5 with +python27 and try again.

comment:26 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

comment:27 in reply to:  26 Changed 12 years ago by mymacports@…

Replying to ryandesign@…:

r96273

well...
sudo port uninstall vtk5
sudo port install vtk5 +python27
sudo port install py27-mayavi
mayavi2-2.7

Warning: Unable to import the wx backend for pyface due to traceback: Traceback (most recent call last):
	  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/toolkit.py", line 45, in _init_toolkit
	    be = import_toolkit(tk)
	  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/toolkit.py", line 31, in import_toolkit
	    __import__(be + 'init')
	  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/ui/wx/init.py", line 14, in <module>
	    import wx
	ImportError: No module named wx

Traceback (most recent call last):
  File "/opt/local/bin/mayavi2-2.7", line 9, in <module>
    load_entry_point('mayavi==4.1.0', 'console_scripts', 'mayavi2')()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 337, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2311, in load_entry_point
    return ep.load()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2017, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mayavi/scripts/mayavi2.py", line 493, in <module>
    raise ImportError(msg)
ImportError: No module named configobj
________________________________________________________________________________
Could not load envisage. You might have a missing dependency.
Do you have the EnvisageCore and EnvisagePlugins installed?

If you installed Mayavi with easy_install, try 'easy_install <pkg_name>'.
'easy_install Mayavi[app]' will also work.

If you performed a source checkout and installed via 'python setup.py develop',
be sure to run the same command in the EnvisageCore and EnvisagePlugins folders.

If these packages appear to be installed, check that your numpy and
configobj are installed and working. If you need numpy, 'easy_install numpy'
will install numpy. Similarly, 'easy_install configobj' will install
configobj.

port installed *envi* gives:
The following ports are currently installed:

py26-envisagecore @3.2.0_0 (active)
py27-envisage @4.1.0_0 (active)

port installed *traits* gives:
The following ports are currently installed:

py26-traits @3.6.0_0 (active)
py27-traits @4.1.0_0 (active)
py27-traitsui @4.1.0_0 (active)

... any hints, plese?

comment:28 Changed 12 years ago by jjstickel (Jonathan Stickel)

mymacports: I do not think your troubles are due to bugs in the updated portfiles. These ports are tricky and require some extra thought when installing. I suggest you try to troubleshoot this some more on your own. If you continue to have trouble, you might try the macprots-users email list. This ticket has been closed (your original report pertained to ports that have now been updated).

hint 1: you should be more explicit with the variants for vtk5, something like: sudo port -u install vtk5 -tcltk -x11 +python27 hint 2: uninstall the py26 ports; they probably are not hurting anything, but they might be causing some strange conflict

Note: See TracTickets for help on using tickets.