[MacPorts] #37355: py27-mayavi: build ok, but unusable with error `ImportError: No module named cocoa_render_window`
#37355: py27-mayavi: build ok, but unusable with error `ImportError: No module named cocoa_render_window` ---------------------------+-------------------------------- Reporter: nilstec_inc@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: py27-mayavi ---------------------------+-------------------------------- I installed mayavi for python 2.7 using the following ports {{{ vtk5 @5.10.1_0+python27+qt4_mac py27-mayavi @4.1.0_0 py27-pyqt4 @4.9.6_1 }}} Install went fine without problems. But when I try using it, doing {{{ ipython from mayavi import mlab mlab.test_points3d() }}} I get the error message `ImportError: No module named cocoa_render_window`. I'll supply port installed and the full error message from python. -- Ticket URL: <https://trac.macports.org/ticket/37355> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37355: py27-mayavi: build ok, but unusable with error `ImportError: No module named cocoa_render_window` ----------------------------+------------------------- Reporter: nilstec_inc@… | Owner: jjstickel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py27-mayavi | ----------------------------+------------------------- Changes (by ryandesign@…): * cc: gmail.com:jjstickel, openmaintainer (removed) * owner: macports-tickets@… => jjstickel@… Comment: Note that the Cc field needs valid email addresses, and that [wiki:MacPortsDevelopers#special openmaintainer is not a person] so Cc'ing that address is not useful. -- Ticket URL: <https://trac.macports.org/ticket/37355#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37355: py27-mayavi: build ok, but unusable with error `ImportError: No module named cocoa_render_window` ----------------------------+------------------------- Reporter: nilstec_inc@… | Owner: jjstickel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py27-mayavi | ----------------------------+------------------------- Comment (by jjstickel@…): I am not sure why you are receiving this error. The relevant ports appear to be installed and with the correct variants (+qt4_mac is not needed for VT5, but it should not hurt either). Just to make sure it is not a problem with ipython, do you get the same error from python? {{{ [bash terminal] & python
from mayavi import mlab mlab.test_points3d() }}}
-- Ticket URL: <https://trac.macports.org/ticket/37355#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37355: py27-mayavi: build ok, but unusable with error `ImportError: No module named cocoa_render_window` ----------------------------+------------------------- Reporter: nilstec_inc@… | Owner: jjstickel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py27-mayavi | ----------------------------+------------------------- Comment (by nilstec_inc@…): Unfortunately I get the same error using only python. -- Ticket URL: <https://trac.macports.org/ticket/37355#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37355: py27-mayavi: build ok, but unusable with error `ImportError: No module named cocoa_render_window` ----------------------------+------------------------- Reporter: nilstec_inc@… | Owner: jjstickel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py27-mayavi | ----------------------------+------------------------- Comment (by jjstickel@…): OK, that rules out some problem with ipython. Can you check the contents of {{{ /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/tvtk/tvtk_classes.zip }}} to see if it contains cocoa_render_window.py? If not, you can try rebuilding py27-mayavi. -- Ticket URL: <https://trac.macports.org/ticket/37355#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37355: py27-mayavi: build ok, but unusable with error `ImportError: No module named cocoa_render_window` ----------------------------+------------------------- Reporter: nilstec_inc@… | Owner: jjstickel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py27-mayavi | ----------------------------+------------------------- Comment (by nilstec_inc@…): I can not find cocoa_render_window.zip in that file. Ill supply the file contents, and try rebuilding py27-mayavi. Thank you very much! -- Ticket URL: <https://trac.macports.org/ticket/37355#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37355: py27-mayavi: build ok, but unusable with error `ImportError: No module named cocoa_render_window` ----------------------------+------------------------- Reporter: nilstec_inc@… | Owner: jjstickel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py27-mayavi | ----------------------------+------------------------- Comment (by nilstec_inc@…): I did {{{ sudo port uninstall py-mayavi sudo port uninstall py27-mayavi sudo port install py27-mayavi }}} and now it works! The above given file now contains cocoa_render_window.py. Thank you very much for your time! -- Ticket URL: <https://trac.macports.org/ticket/37355#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37355: py27-mayavi: build ok, but unusable with error `ImportError: No module named cocoa_render_window` ----------------------------+------------------------- Reporter: nilstec_inc@… | Owner: jjstickel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py27-mayavi | ----------------------------+------------------------- Comment (by jjstickel@…): Glad to hear it! Developers: this ticket can be closed. -- Ticket URL: <https://trac.macports.org/ticket/37355#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37355: py27-mayavi: build ok, but unusable with error `ImportError: No module named cocoa_render_window` ----------------------------+------------------------- Reporter: nilstec_inc@… | Owner: jjstickel@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: worksforme | Keywords: Port: py27-mayavi | ----------------------------+------------------------- Changes (by macsforever2000@…): * status: new => closed * resolution: => worksforme -- Ticket URL: <https://trac.macports.org/ticket/37355#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37355: py27-mayavi: build ok, but unusable with error `ImportError: No module named cocoa_render_window` ----------------------------+------------------------- Reporter: nilstec_inc@… | Owner: jjstickel@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: worksforme | Keywords: Port: py27-mayavi | ----------------------------+------------------------- Comment (by dcn@…): Thanks for this thread. Exacty the same problem, exactly the same solution. "works for me". DN -- Ticket URL: <https://trac.macports.org/ticket/37355#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts