An attempt to overturn the results of the election? Yes. A coup? Not really; doesn't fit the definition, though it was far closer than I thought I would ever see. "Very nearly successful"? No.
Yes, many people are under the impression that a coup is only the result of military or generalized revolt. In fact most modern coups are staged as a political mechanism to avoid the results of the democratic norm.