[Insight-users] Using itkPyBuffer

David Chen dchen at mail.nih.gov
Mon Jun 20 14:26:25 EDT 2011


I'm trying to build and use the PyBuffer external project in WrapITK.  I think I've built it ok, but when I try and run a test script, here's the error I get:

puget => test.py
Traceback (most recent call last):
  File "test.py", line 4, in <module>
    import itkPyBufferPython
  File "itkPyBufferPython.py", line 28, in <module>
    _itkPyBufferPython = swig_import_helper()
  File "itkPyBufferPython.py", line 20, in swig_import_helper
    import _itkPyBufferPython
ImportError: No module named _itkPyBufferPython


This is my simple test script:

#!/usr/bin/env python

import itk
import itkPyBufferPython

pixelType = itk.UC
imageType = itk.Image[pixelType, 2]
connector = itk.PyBuffer[imageType]

I am running the script in the lib sub-directory of my build directory.


David T. Chen, PhD                      [Lockheed Martin contractor]
mailto:dchen at mail.nih.gov               http://erie.nlm.nih.gov/~dave
phone:301.435.3264                      iphone:301.524.3174
Office of High Performance Computing and Communications
National Library of Medicine

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110620/6b65266b/attachment.htm>


More information about the Insight-users mailing list