I had the same problem. I got it to work by first flashing cm 10 and letting that boot. Then I went in and installed cyanogen 10.1 through the cyanogen updater in settings. After you do that just flash the proper gapps and everything will work. I don't know why teamwin recovery won't install it, but this is a workaround I found
Sent from my SGH-I747 running carbon rom version 1.6.1 jellybean 4.2.2