Opened 10 years ago

Closed 10 years ago

#46976 closed defect (worksforme)

py27-mayavi referencing vtk6 i.o. vtk5

Reported by: feedingfatalfairies@… Owned by: jjstickel (Jonathan Stickel)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: py27-mayavi

Description

After updating my port definitions, I can no longer install a working version of Mayavi (py27-mayavi)

The problem seems to be that py27-mayavi worked fine with vtk5, but it's dependency is the new portfile is vtk, which installs vtk6.

Is there a way to force installation with vtk5?

I keep getting this error: Warning: In /opt/local/var/macports/build/_opt_mports_dports_graphics_vtk/vtk/work/VTK-6.1.0/Rendering/OpenGL/vtkCocoaRenderWindow.h, line 127 vtkCocoaRenderWindow (0x7fb5ccd29720): Method not implemented.

and than a segfault.

Change History (7)

comment:1 Changed 10 years ago by larryv (Lawrence Velázquez)

Keywords: mayavi vtk cocoa removed
Owner: changed from macports-tickets@… to jjstickel@…

Thanks for the report. In future tickets, please Cc any relevant port maintainers (port info --maintainers py27-mayavi).

comment:2 Changed 10 years ago by jjstickel (Jonathan Stickel)

py27-mayavi with vtk (vtk @6.1.0_0+python27) works for me. Can you describe what you are doing when you see the error? Perhaps you can provide a minimum self-constrained python script? I suspect that something may be wrong with your vtk installation. You can try one of the tutorial examples in the vtk-6.1 sources (http://www.vtk.org/files/release/6.1/VTK-6.1.0.tar.gz). For example,

$ python Cone5.py

should work.

comment:3 in reply to:  2 ; Changed 10 years ago by feedingfatalfairies@…

Replying to jjstickel@…:

py27-mayavi with vtk (vtk @6.1.0_0+python27) works for me. Can you describe what you are doing when you see the error? Perhaps you can provide a minimum self-constrained python script? I suspect that something may be wrong with your vtk installation. You can try one of the tutorial examples in the vtk-6.1 sources (http://www.vtk.org/files/release/6.1/VTK-6.1.0.tar.gz). For example,

$ python Cone5.py

should work.

I'm just starting mayavi from the command line with:

mayavi2-2.7

The window opens, than I get the error. Same from python/ipython

I've tried all six examples in the VTK-6.1.0/Examples/Tutorial/ folder, they work flawlessly.

What I have installed is this:

python27 @2.7.9_0 (active)
py27-mayavi @4.4.0_0 (active)
py27-wxpython-2.8 @2.8.12.1_0+gtk (active)
vtk @6.1.0_0+python27 (active)

It also opens Xquartz, of which I have the latest version.

XQuartz 2.7.7 (xorg-server 1.15.2)
Last edited 10 years ago by feedingfatalfairies@… (previous) (diff)

comment:4 in reply to:  3 Changed 10 years ago by jjstickel (Jonathan Stickel)

Replying to feedingfatalfairies@…:

I'm just starting mayavi from the command line with:

mayavi2-2.7

The window opens, than I get the error. Same from python/ipython

I've tried all six examples in the VTK-6.1.0/Examples/Tutorial/ folder, they work flawlessly.

That is good. VTK-6 is working fine.

What I have installed is this:

python27 @2.7.9_0 (active)
py27-mayavi @4.4.0_0 (active)
py27-wxpython-2.8 @2.8.12.1_0+gtk (active)
vtk @6.1.0_0+python27 (active)

It also opens Xquartz, of which I have the latest version.

XQuartz 2.7.7 (xorg-server 1.15.2)

OK, X11-gtk and wxpython-2.8 are no longer supported. I highly recommend that you uninstall py27-wxpython-2.8 unless you are using it for another reason. Check that you have py27-pyface @4.4.0_1 installed. It will by default install the pyqt4 variant. If you do not have wxpython installed (2.8 OR 3.0), Mayavi should just work. If you have wxpython installed but you want to use the qt4 backend (preferred), you must specify it with the ETS_TOOLKIT environment variable, e.g.:

$ ETS_TOOLKIT=qt4 mayavi2-2.7

Please see if that works for you.

comment:5 Changed 10 years ago by feedingfatalfairies@…

That did it!

I removed py27-wxpython-2.8 , and reinstalled mayavi and all it's dependencies, and now it runs without crashing. The reason why I installed the wx gui is because it was recommended on the mayavi documentation page. Launching mayavi from the command line now gives a whole slew of warnings relating to wx missing, but the python interface works without complaints.

Thanks a lot for helping out

comment:6 Changed 10 years ago by jjstickel (Jonathan Stickel)

Glad to hear it. You can ignore those wx warnings.

Developers: this can be closed as "works for me".

comment:7 Changed 10 years ago by petrrr

Resolution: worksforme
Status: newclosed

Closed as requested by maintainer.

Note: See TracTickets for help on using tickets.