[vtkusers] Custom classes wrapped into Python

Robb Brown brownr at ucalgary.ca
Tue May 20 19:02:47 EDT 2003


On Mac OSX using a framework build of Python 2.2.2, and VTK 4.2 I have 
two situations:

I have a set of custom classes I wrote in a vtkLocal type directory and 
the vtkCISG class tree which I'm trying to add Python wrapping to.

I'm having trouble with VTK's Python wrapping.  In my vtkLocal compiled 
with shared libraries I seem to have a maximum of two classes per 
module.  Any more than this and Python will hang (no message) when 
importing.  Two or less and everything works fine.  If I switch to 
static libraries, the problem seems to go away.

vtkCISG on the other hand, shows the same problem (more than two 
classes hangs Python) but switching to static libraries does not solve 
the problem.

Does anyone have any suggestions?  I'm going to try all this on my 
Linux machine at home tonight.


_____________________________
Robb Brown
Seaman Family MR Center
Calgary, AB




More information about the vtkusers mailing list