[vtkusers] Bizarre Python Errors

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Mon Apr 29 23:13:46 EDT 2002


>>>>> "MR" == Mike Robertson <fermion at mac.com> writes:

    MR> [localhost:Documents/temp/mayavi-1.0] root# python Python 2.2
    MR> (#1, Apr 25 2002, 11:43:25) [GCC 2.95.2 19991024 (release)] on
    MR> darwin Type "help", "copyright", "credits" or "license" for
    MR> more information.
    >>>> from vtk import * from Tkinter import * root = Tk()
    >>>> root.tk.eval('load
    >>>> /usr/local/bin/libvtkRenderingPythonTkWidget.so
    MR> vtkrenderingpythonwidgets') Traceback (most recent call last):
    MR> File "<stdin>", line 1, in ?  TclError: dyld: permission
    MR> denied
    >>>>

    MR> What does this mean? dyld? That's something relevant to
    MR> dynamic linking, right? Meaning what? That my Tcl build is
    MR> static? In that event, how can I make sure that I install it

Searching on google tells me something like so:

     http://macosx.forked.net/bbarchive/forum1/000033.html

  "You need to create a dynamic library. add -fno-common to your
  linking (check the compiling docs on fink.sourceforge.net it covers
  this)"

So I looked up the fink docs and found this:

     http://fink.sourceforge.net/doc/porting/shared.php

Looks like there is a distinction between loadable modules and shared
libaries on OSX.  The page cited above has more details on how to
build a shared module or a dynamically loadable module.  The last
section in that page tells you how to build a loadable module.  You
will need to change the way the libvtkRenderingPythonTkWidgets.so is
built accordingly.  I guess everything should work fine if that is
done.

Good luck!
prabhu



More information about the vtkusers mailing list