[Insight-users] About SimpleITK installation
Bradley Lowekamp
blowekamp at mail.nih.gov
Wed Aug 15 10:24:43 EDT 2012
Hello Arturo,
I am continuing to CC the users list in-case some one else encounters this problem.
You may have encountered the following issues that is noted in the FAQ:
http://www.vtk.org/Wiki/ITK_Release_4/SimpleITK/FAQ#Why_do_I_get_an_error_about_a_missing_Dynamic_Library_when_running_SimpleITK_with_Python_on_windows.3F
It may have been that the needed VS10 run-time libraries were not already installed on your system. Due to the way the python library is packaged and distributed as an python egg it's difficult to get all these dlls into the system. There is no indication of that there was an error importing the library due to missing run-time components.
I however will suggest that these libraries be verified in the future when users report "mysterious" importing issues on then windows platform.
Thanks for following up,
Brad
On Aug 15, 2012, at 10:14 AM, Ing. Arturo Vargas Olivares wrote:
> Hi Bradley.
>
> Something strange happened... I downloaded installed Visual C++ and the problem dissapeared. Now SimpleITK is imported without problems.
>
> Your comments are very appreciated. It is good to know that the SimpleITK binary is completely incompatible with EPD on MacOS X because I was thinking in make an installation in my Apple computer. By the mean time I'll be working in my Windows PC.
SimpleITK can work with EPD on OSX, you just will have to compile the SimpleITK, and specify the EPD python libraries and headers during the cmake configuration.
>
> Best Regards!
>
> Arturo V.
>
>
> On Mon, Aug 13, 2012 at 8:23 AM, Bradley Lowekamp <blowekamp at mail.nih.gov> wrote:
> 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
>
>
>
>
========================================================
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/20120815/b451cc93/attachment.htm>
More information about the Insight-users
mailing list