<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 25, 2013 at 4:23 PM, Dinesh B Vadhia <span dir="ltr"><<a href="mailto:dineshbvadhia@hotmail.com" target="_blank">dineshbvadhia@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>



<div style="PADDING-LEFT:10px;PADDING-RIGHT:10px;PADDING-TOP:15px" name="Compose message area">
<div><font face="Garamond" size="4">Using PyInstaller, the following error 
occurs:</font></div>
<div><font face="Garamond" size="4"></font> </div>
<div><font face="Garamond" size="4">Traceback (most recent call last):<br>  
File "<string>", line 9, in <module><br>  File 
"//usr/lib/python2.7/dist-packages/PIL/Image.py", line 355, in 
init<br>    __import__(f, globals(), locals(), [])<br>  File 
"//usr/lib/python2.7/dist-packages/PIL/IptcImagePlugin.py", line 23, in 
<module><br>    import os, tempfile<br>  File 
"/usr/lib/python2.7/tempfile.py", line 34, in 
<module><br>    from random import Random as 
_Random<br>  File 
"//usr/lib/python2.7/dist-packages/numpy/random/__init__.py", line 90, in 
<module><br>    ranf = random = sample = 
random_sample<br>NameError: name 'random_sample' is not defined</font></div>
<div><font face="Garamond" size="4"></font> </div>
<div><font face="Garamond" size="4">Is line 90 in __init.py__ valid?</font></div></div></blockquote><div><br></div><div>It is. <br><br>Above the failing you see a line "from info import __all__", and in random/info.py you'll see that `random_sample` is in the __all__ dict. Somehow it disappeared for you, you'll need to do some debugging to find out why.<br>
<br>Ralf<br><br></div></div></div></div>