<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm trying to build and use the PyBuffer external project in WrapITK. &nbsp;I think I've built it ok, but when I try and run a test script, here's the error I get:<div><br></div><div><div>puget =&gt; test.py</div><div>Traceback (most recent call last):</div><div>&nbsp;&nbsp;File "test.py", line 4, in &lt;module&gt;</div><div>&nbsp;&nbsp; &nbsp;import itkPyBufferPython</div><div>&nbsp;&nbsp;File "itkPyBufferPython.py", line 28, in &lt;module&gt;</div><div>&nbsp;&nbsp; &nbsp;_itkPyBufferPython = swig_import_helper()</div><div>&nbsp;&nbsp;File "itkPyBufferPython.py", line 20, in swig_import_helper</div><div>&nbsp;&nbsp; &nbsp;import _itkPyBufferPython</div><div>ImportError: No module named _itkPyBufferPython</div><div><br></div><div><br></div><div>This is my simple test script:</div><div><br></div><div><div><div>#!/usr/bin/env python</div><div><br></div><div>import itk</div><div>import itkPyBufferPython</div><div><br></div><div>pixelType = itk.UC</div><div>imageType = itk.Image[pixelType, 2]</div><div>connector = itk.PyBuffer[imageType]</div></div></div><div><br></div><div>I am running the script in the lib sub-directory of my build directory.</div><div><br></div><div><br></div><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 16px; "><div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px; ">David T. Chen, PhD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[Lockheed Martin contractor]</span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px; "><a href="mailto:dchen@mail.nih.gov">mailto:dchen@mail.nih.gov</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://erie.nlm.nih.gov/~dave">http://erie.nlm.nih.gov/~dave</a></span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px; ">phone:301.435.3264 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iphone:301.524.3174</span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Office of High Performance Computing and Communications</span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px; ">National Library of Medicine</span></font></div></div></div>
</div>
<br></div></body></html>