[Distutils] Misleading exception thrown when attempting to install a missing .egg from a file:// url

Fadhley Salim Fadhley.Salim at uk.calyon.com
Fri Mar 27 19:23:42 CET 2009


Steps to re-create
 
* Set up an environment as per my previous email but without the egg
installed in site-packages.
* 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.
* Try to easy install the egg (as in previous example) and take note of
the exception raised.
 
My error is here:
http://pastebin.com/m36b84d95
 
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?
 
Thanks,
 
Sal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090327/f5ea4039/attachment.htm>
-------------- next part --------------
This email does not create a legal relationship between any member of the 
Cr=E9dit Agricole group and the recipient or constitute investment advice. 
The content of this email should not be copied or disclosed (in whole or 
part) to any other person. It may contain information which is 
confidential, privileged or otherwise protected from disclosure. If you 
are not the intended recipient, you should notify us and delete it from 
your system. Emails may be monitored, are not secure and may be amended, 
destroyed or contain viruses and in communicating with us such conditions 
are accepted. Any content which does not relate to business matters is not 
endorsed by us.

Calyon is authorised by the Comit=e9 des Etablissements de Cr=e9dit et des
Entreprises d'Investissement (CECEI) and supervised by the Commission Bancaire
in France and subject to limited regulation by the Financial Services Authority.
Details about the extent of our regulation by the Financial Services Authority
are available from us on request. Calyon is incorporated in France with limited
liability and registered in England & Wales. Registration number: FC008194.
Registered office: Broadwalk House, 5 Appold Street, London, EC2A 2DA.
This message and/or any  attachments is intended for the sole use of its addressee.
If you are not the addressee, please immediately notify the sender and then destroy the message.
As this message and/or any attachments may have been altered without our knowledge, its content is not legally binding on CALYON Cr?dit Agricole CIB.
All rights reserved.

Ce message et ses pi?ces jointes est destin? ? l'usage exclusif de son destinataire.
Si vous recevez ce message par erreur, merci d'en aviser imm?diatement l'exp?diteur et de le d?truire ensuite.
Le pr?sent message pouvant ?tre alt?r? ? notre insu, CALYON Cr?dit Agricole CIB ne peut pas ?tre engag? par son contenu.
Tous droits r?serv?s.


More information about the Distutils-SIG mailing list