How to sell your weaknesses as strengths in a job interview

A job interview can be a steppingstone to a steep career, but it is usually a test of hardship - especially when the HR managers ask the dreaded question about the candidate's weaknesses. What is the best way to answer that and avoid the trap without getting caught up in it?