Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#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)

Portfile (1.0 KB) - added by jjstickel@… 11 years ago.
py25-envisagecore_Portfile (838 bytes) - added by jjstickel@… 11 years ago.
py25-evisageplugins_Portfile (864 bytes) - added by jjstickel@… 11 years ago.
py25-traits_Portfile (891 bytes) - added by jjstickel@… 11 years ago.
py25-traitsbackendwx_Portfile (874 bytes) - added by jjstickel@… 11 years ago.
patch-traitsbackendwx_helper.py.diff (419 bytes) - added by jjstickel@… 11 years ago.
py25-traitsgui_Portfile (947 bytes) - added by jjstickel@… 11 years ago.
py25-apptools_Portfile (1.1 KB) - added by jjstickel@… 11 years ago.
changeset_r24035.diff (623 bytes) - added by jjstickel@… 11 years ago.
patch for apptools
py25-enthoughtbase_Portfile (891 bytes) - added by jjstickel@… 11 years ago.
changeset_r24034.diff (7.0 KB) - added by jjstickel@… 11 years ago.
patch for enthoughtbase
py25-mayavi_Portfile (1.3 KB) - added by jjstickel@… 11 years ago.
changeset_r24036.diff (767 bytes) - added by jjstickel@… 11 years ago.
patch for mayavi

Download all attachments as: .zip

Change History (26)

Changed 11 years ago by jjstickel@…

Attachment: Portfile added

Changed 11 years ago by jjstickel@…

Attachment: py25-envisagecore_Portfile added

Changed 11 years ago by jjstickel@…

Changed 11 years ago by jjstickel@…

Attachment: py25-traits_Portfile added

Changed 11 years ago by jjstickel@…

Changed 11 years ago by jjstickel@…

Changed 11 years ago by jjstickel@…

Attachment: py25-traitsgui_Portfile added

comment:1 Changed 11 years ago by jjstickel@…

Oops, the attached file named "Portfile" is the same as "py25-apptools_Portfile". Can it be deleted?

comment:2 Changed 11 years ago by stefan.janecek@…

Cc: stefan.janecek@… added

Cc Me!

comment:3 Changed 11 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 ; Changed 11 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 11 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 ; Changed 11 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 11 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 11 years ago by jjstickel@…

Attachment: py25-apptools_Portfile added

Changed 11 years ago by jjstickel@…

Attachment: changeset_r24035.diff added

patch for apptools

Changed 11 years ago by jjstickel@…

Attachment: py25-enthoughtbase_Portfile added

Changed 11 years ago by jjstickel@…

Attachment: changeset_r24034.diff added

patch for enthoughtbase

Changed 11 years ago by jjstickel@…

Attachment: py25-mayavi_Portfile added

Changed 11 years ago by jjstickel@…

Attachment: changeset_r24036.diff added

patch for mayavi

comment:8 Changed 11 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:9 Changed 11 years ago by jameskyle@…

Cc: jameskyle@… added

Cc Me!

comment:10 Changed 11 years ago by jbrown81@…

Cc: jbrown81@… added

Cc Me!

comment:11 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to macsforever2000@…
Status: newassigned

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

Port: py25-mayavi added; mayavi removed
Resolution: fixed
Status: assignedclosed

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 10 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
Note: See TracTickets for help on using tickets.