A compound having the formula (I) wherein the substituents are defined herein. Also provided are pharmaceutical compositions including a compound of formula (I) in a pharmaceutical carrier, for treating a disease caused by a picornavirus. Also provided is a method of treating a subject with a disease caused by a picornavirus, including a compound of formula (I) in a pharmaceutical carrier.