[Insight-users] About SimpleITK installation

Bradley Lowekamp blowekamp at mail.nih.gov
Mon Aug 13 09:23:42 EDT 2012


Hello Arturo,

I am assuming that you tried downloaded, or easy_installed the SimpleITK binary distribution. The binary distribution for windows is compiled against the official Python distribution for windows. In some cases this has worked with other distributions, but those are not tested nor recommended. So I really can't say what is going on with the binary download and your commercial python distribution. However, we have gotten some reports that the SimpleITK binary distribution worked with EPD on windows though I don't know the specific versions. On MacOSX, the SimpleITK binary is completely incompatible with EPD. 

I would recommend compiling SimpleITK your self against your EPD distribution. More information about compiling SimpleITK can be found here:

http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/GettingStarted#Build_It_Yourself

Lastly, the fact that you are getting some type of Unicode error make me think there may be a problem some were with some type of internationalization error, incompatibility or bug in some component. I'd suggest trying to disable these features if  you are able, and see if the SimpleITK binary will work before you recompile.

Good Luck,
Brad


On Aug 9, 2012, at 4:35 PM, Ing. Arturo Vargas Olivares wrote:

> Hi list !!
> 
> I have installed EPD and SimpleITK in a Windows 7 environment (32 bits).
> 
> When I'm trying to import 'SimpleITK' from the IPython prompt a 'UnicodeDecodeError' appears (shown below). I'm not sure about the root cause of this problem.
> 
> Does anybody know about a possible solution for this 'UnicodeDecodeError'  ??
> 
> Regards!
> 
> Arturo V.
> 
> 
> import SimpleITK as sitk
> ---------------------------------------------------------------------------
> UnicodeDecodeError                        Traceback (most recent call last)
> C:\Python27\lib\site-packages\IPython\core\interactiveshell.pyc in run_code(self, code_obj)
>    2547             self.CustomTB(etype,value,tb)
>    2548         except:
> -> 2549             self.showtraceback()
>    2550         else:
>    2551             outflag = 0
> 
> C:\Python27\lib\site-packages\IPython\core\interactiveshell.pyc in showtraceback(self, exc_tuple, filename, tb_offset, exception_only)
>    1646                                                 value, tb, tb_offset=tb_offset)
>    1647 
> -> 1648                         self._showtraceback(etype, value, stb)
>    1649                         if self.call_pdb:
>    1650                             # drop into debugger
> 
> 
> C:\Python27\lib\site-packages\IPython\zmq\zmqshell.pyc in _showtraceback(self, etype, evalue, stb)
>     152             u'traceback' : stb,
>     153             u'ename' : unicode(etype.__name__),
> --> 154             u'evalue' : unicode(evalue)
>     155         }
>     156
> 
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 43: ordinal not in range(128)
> 
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users

========================================================
Bradley Lowekamp  
Medical Science and Computing for
Office of High Performance Computing and Communications
National Library of Medicine 
blowekamp at mail.nih.gov



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


More information about the Insight-users mailing list