<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5583" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=953261618-27032009>Steps to 
re-create</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953261618-27032009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=953261618-27032009>* Set up an 
environment as per my previous email but <STRONG>without</STRONG> the egg 
installed in site-packages.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=953261618-27032009>* Delete the egg 
from the egg_repository so that the file we expect to see is missing, but is 
still indicated in the html file which is used as the index of the egg 
repository directory.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=953261618-27032009>* Try to easy 
install the egg (as in previous example) and take note of the exception 
raised.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953261618-27032009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=953261618-27032009>My error is 
here:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=953261618-27032009><A 
href="http://pastebin.com/m36b84d95">http://pastebin.com/m36b84d95</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953261618-27032009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=953261618-27032009>I'm guessing that we 
get a zipimporterror because the stream returned by the URL fetching fuction is 
obviously not zip data. However in this case might it be more appropriate to 
raise DistributionNotFound or some kind of special exception that more correctly 
describes this situation?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953261618-27032009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953261618-27032009>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953261618-27032009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953261618-27032009>Sal</SPAN></FONT></DIV></BODY></HTML>