#19567 closed submission (fixed)
ports for Mayavi and its Enthought dependencies
Reported by: | jjstickel@… | Owned by: | mf2k (Frank Schima) |
---|---|---|---|
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 (13)
Change History (26)
Changed 16 years ago by jjstickel@…
Changed 16 years ago by jjstickel@…
Attachment: | py25-envisagecore_Portfile added |
---|
Changed 16 years ago by jjstickel@…
Attachment: | py25-evisageplugins_Portfile added |
---|
Changed 16 years ago by jjstickel@…
Attachment: | py25-traits_Portfile added |
---|
Changed 16 years ago by jjstickel@…
Attachment: | py25-traitsbackendwx_Portfile added |
---|
Changed 16 years ago by jjstickel@…
Attachment: | patch-traitsbackendwx_helper.py.diff added |
---|
Changed 16 years ago by jjstickel@…
Attachment: | py25-traitsgui_Portfile added |
---|
comment:1 Changed 16 years ago by jjstickel@…
comment:3 follow-up: 4 Changed 15 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 follow-up: 6 Changed 15 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 15 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 follow-up: 7 Changed 15 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 Changed 15 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.
Changed 15 years ago by jjstickel@…
Attachment: | py25-apptools_Portfile added |
---|
Changed 15 years ago by jjstickel@…
Attachment: | py25-enthoughtbase_Portfile added |
---|
Changed 15 years ago by jjstickel@…
Attachment: | changeset_r24034.diff added |
---|
patch for enthoughtbase
Changed 15 years ago by jjstickel@…
Attachment: | py25-mayavi_Portfile added |
---|
comment:8 Changed 15 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 15 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to macsforever2000@… |
---|---|
Status: | new → assigned |
comment:12 Changed 15 years ago by mf2k (Frank Schima)
Port: | py25-mayavi added; mayavi removed |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
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 15 years ago by mf2k (Frank Schima)
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
Oops, the attached file named "Portfile" is the same as "py25-apptools_Portfile". Can it be deleted?