a blog by Marius Gedminas

Posts tagged Python

ImportError: No module named _md5

If you're using virtualenv, and after a system upgrade you get errors like ... File "...", line ... from hashlib import md5 File "/usr/lib/python2.6/hashlib.py", line 63, in __get_builtin_constructor import _md5 ImportError: No module named _md5 this means that the copy of the python executable in your virtualenv/bin directory is outdated and you should update it: $ cp /usr/bin/python2.6 /path/to/venv/bin/python or, better yet, recreate the virtualenv.

Re: Web frameworks considered useful.

Martijn Faassen defends web frameworks in a rather longish post (you can tell it's 5 AM in the morning and I've nearly defeated the unread post queue in Google Reader). I'd like to propose a condensed version. Consider this slogan: Simple things should be easy; complicated things should be possible. Frameworks make simple things easy. Good frameworks keep the complicated thing possible; poorly-designed frameworks make the complicated thing more difficult than necessary; bad frameworks make even simple things complicated.

Review: Python Testing: Beginner's Guide

I've been testing (as well as writing) Python code for the last eight years, so a book with the words Begginer's Guide prominently displayed on the cover isn't something I'd've decided to buy for myself. Nevertheless I jumped at the offer of receiving a free e-copy for reviewing it. Short summary: it's good book. I learned a thing or two from it. I don't know well it would work as an introductionary text for someone new to unit testing (or Python).