Opened 14 years ago

Closed 12 years ago

#26132 closed defect (fixed)

py26-mayavi - build failure

Reported by: rkcrockett@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: mf2k (Frank Schima), jjstickel@…
Port: py26-mayavi

Description (last modified by mf2k (Frank Schima))

My build of py26-mayavi fails. The log file "var/macports/logs/..._py26-mayavi/main.log" contains the following: "ImportError: No module named vtk"

I came across a similar error mentioned in ticket:21994. Following the instructions there, I did a 'port clean' on vtk5, and rebuilt it with python26: port install vtk5 +python26 +x11.

Then installing py26-mayavi worked fine.

Change History (9)

comment:1 Changed 14 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: mayavi vtk5 removed

You found the solution, which is to install vtk5 with the +python26 variant. Note that the x11 variant is added by default and does not need to be specified. But we have no way currently to depend on a variant of a port. See #126.

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:3 Changed 13 years ago by jjstickel@…

Cc: jjstickel@… added

Cc Me!

comment:4 Changed 13 years ago by jjstickel@…

Should this be closed?

comment:5 in reply to:  4 Changed 13 years ago by jmroot (Joshua Root)

Replying to jjstickel@…:

Should this be closed?

If it's possible to detect that vtk5 is not installed with +python26, it would be nice to error out early with a helpful message.

comment:6 Changed 13 years ago by jjstickel@…

Maybe something like this would work (inside pre-configure):

    if {![file exists ${prefix}/Python.framework/Versions/2.6/lib/python2.6/site-packages/VTK-5.6.1-py2.6.egg-info/PKG-INFO]} {
        ui_error "vtk must be installed with the +python26 variant"
        error "vtk must be installed with the +python26 variant"
    }

but +python25 and +python27 are also permitted, and so testing for any one of the three should be done. Can you suggest a straightforward way to do that? Or do you think a simple ui_msg would be sufficient?

comment:7 Changed 12 years ago by jjstickel (Jonathan Stickel)

See ticket #33242 for a patch that includes an appropriate error message.

comment:8 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

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

comment:9 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.