I made a few more tests and noticed that my PYTHONPATH has been modified to search modules first in /usr/share/pyshared.
Comparing /usr/share/pyshared and /usr/lib/python2.6/dist-packages, we can see that some links are missing: No .so module appears in /usr/share/pyshared/Crypto/Hash. So Crypto.Hash.SHA256 can't be imported when looking first in /usr/share/pyshared ! $ ls -lh /usr/lib/python2.6/dist-packages/Crypto/Hash total 76K lrwxrwxrwx 1 root root 39 17 août 10:52 HMAC.py -> /usr/share/pyshared/Crypto/Hash/HMAC.py -rw-r--r-- 1 root root 3,8K 17 août 10:52 HMAC.pyc lrwxrwxrwx 1 root root 43 17 août 10:52 __init__.py -> /usr/share/pyshared/Crypto/Hash/__init__.py -rw-r--r-- 1 root root 982 17 août 10:52 __init__.pyc -rw-r--r-- 1 root root 11K 7 avril 2010 MD2.so -rw-r--r-- 1 root root 8,9K 7 avril 2010 MD4.so lrwxrwxrwx 1 root root 38 17 août 10:52 MD5.py -> /usr/share/pyshared/Crypto/Hash/MD5.py -rw-r--r-- 1 root root 609 17 août 10:52 MD5.pyc -rw-r--r-- 1 root root 17K 7 avril 2010 RIPEMD160.so lrwxrwxrwx 1 root root 41 17 août 10:52 RIPEMD.py -> /usr/share/pyshared/Crypto/Hash/RIPEMD.py -rw-r--r-- 1 root root 233 17 août 10:52 RIPEMD.pyc -rw-r--r-- 1 root root 12K 7 avril 2010 SHA256.so lrwxrwxrwx 1 root root 38 17 août 10:52 SHA.py -> /usr/share/pyshared/Crypto/Hash/SHA.py -rw-r--r-- 1 root root 613 17 août 10:52 SHA.pyc $ ls -lh /usr/share/pyshared/Crypto/Hash/ total 32K -rw-r--r-- 1 root root 4,6K 13 déc. 2009 HMAC.py -rw-r--r-- 1 root root 1,8K 13 déc. 2009 __init__.py -rw-r--r-- 1 root root 969 16 août 15:49 __init__.pyc -rw-r--r-- 1 root root 1,5K 13 déc. 2009 MD5.py -rw-r--r-- 1 root root 1,1K 13 déc. 2009 RIPEMD.py -rw-r--r-- 1 root root 1,5K 13 déc. 2009 SHA.py -rw-r--r-- 1 root root 587 16 août 15:56 SHA.pyc # " Ce courriel et les documents qui lui sont joints peuvent contenir des informations confidentielles ou ayant un caractère privé. S'ils ne vous sont pas destinés, nous vous signalons qu'il est strictement interdit de les divulguer, de les reproduire ou d'en utiliser de quelque manière que ce soit le contenu. Si ce message vous a été transmis par erreur, merci d'en informer l'expéditeur et de supprimer immédiatement de votre système informatique ce courriel ainsi que tous les documents qui y sont attachés." ****** " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system." # -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org