Ticket #19567 (closed submission: fixed)
ports for Mayavi and its Enthought dependencies
| Reported by: | jjstickel@… | Owned by: | macsforever2000@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.1 |
| Keywords: | python vtk | Cc: | stefan.janecek@…, jameskyle@…, jbrown81@… |
| Port: | py25-mayavi |
Description
I provide here portfiles for Mayavi (py25 version) and its dependencies from Enthought (http://code.enthought.com/). For Mayavi to work, VTK5 must be installed with the carbon variant (and the python variant, obviously).
Attachments
Change History
comment:1 Changed 4 years ago by jjstickel@…
Oops, the attached file named "Portfile" is the same as "py25-apptools_Portfile". Can it be deleted?
comment:3 follow-up: ↓ 4 Changed 4 years ago by stefan.janecek@…
Thanks for providing the portfiles! Tried them today, they build fine, but when I start mayavi2, it crashes with a X Window "Bad Window" error immediately after the window appears. Before that, it issues a warning that the wxPython and wxWidgets version numbers do not match. Anyone else seeing this? Anybody running the code without crashes?
/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py:14450: UserWarning: wxPython/wxWidgets release number mismatch
warnings.warn("wxPython/wxWidgets release number mismatch")
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 2 (X_ChangeWindowAttributes)
Resource id in failed request: 0x17357660
Serial number of failed request: 7
Current serial number in output stream: 9
comment:4 in reply to: ↑ 3 ; follow-up: ↓ 6 Changed 4 years ago by jjstickel@…
The warning about version number mismatch is harmless. The bad window error results if you do not choose the carbon variant for VTK. A check for the variant (if possible) or at least warning should be added to the mayavi portfile. Also, it seems that during the install, a .enthought folder is added to your home folder, if it does not already exist, and with root ownership. This should not happen. I will try to look into these issues soon, but any help is appreciated.
Replying to stefan.janecek@…:
Thanks for providing the portfiles! Tried them today, they build fine, but when I start mayavi2, it crashes with a X Window "Bad Window" error immediately after the window appears. Before that, it issues a warning that the wxPython and wxWidgets version numbers do not match. Anyone else seeing this? Anybody running the code without crashes?
comment:5 Changed 4 years ago by jjstickel@…
I updated the py25-mayavi portfile to include a check that a file provided by the +carbon of vtk5 is installed.
comment:6 in reply to: ↑ 4 ; follow-up: ↓ 7 Changed 4 years ago by stefan.janecek@…
Replying to jjstickel@…: Thanks a lot for the hint! Re-installing vtk5 using the +carbon -x11 -tcltk variant, and then re-installing the above ports did the trick. I've got the .enthought folder in my home, too, but it is not owned by root. In my case, it is most likely a left-over from the Enthought Python Distribution (EPD) I had installed (and deinstalled) before.
I noticed an annoying bug in mayavi2: Most of the sliders are not connected to their respective values, i.e. nothing happens when moving them. There seem to be two different types of sliders: one type has arrows to the left and right of them, those work. The other type (for instance, the value slider of the isosurface module) doesn't have the arrows, and it doesn't work. I think this is a bug the upstream maintainer should be notified of, and I also noticed it in the EPD version of Mayavi2. Can somebody else here confirm it? Or am I the only one who is seeing it?
comment:7 in reply to: ↑ 6 Changed 4 years ago by jjstickel@…
Replying to stefan.janecek@…:
I noticed an annoying bug in mayavi2: Most of the sliders are not connected to their respective values...
Yes, I see this too. I am sure it is a bug upstream. You might like to report it on the Enthought-dev mailing list.
comment:8 Changed 4 years ago by jjstickel@…
The updated portfiles and patch files for apptools, enthoughtbase, and mayavi resolves the sandbox violation of a .enthought folder being created during the build phase. I think these Ports are now ready for inclusion into the port tree.
comment:11 Changed 4 years ago by macsforever2000@…
- Status changed from new to assigned
- Owner changed from macports-tickets@… to macsforever2000@…
comment:12 Changed 4 years ago by macsforever2000@…
- Status changed from assigned to closed
- Resolution set to fixed
- Port changed from mayavi to py25-mayavi
Committed revision r55244. Thanks!
Note that I was able to install everything except py25-mayavi itself. But that's not due to a problem with the portfile.
comment:13 Changed 4 years ago by macsforever2000@…
I was able to install py25-mayavi with the following workaround:
sudo port -n install py25-mayavi
This is due to base bug #2377.
Also, the python variant of vtk5 is needed to build. So here is the proper command to install vtk5:
sudo port install vtk5 +carbon +python -tcltk -x11

