The party desiring to sue out a writ of error shall file with the clerk of the court in which the judgment was rendered a written petition signed by him or by his attorney, and addressed to such clerk.