Changing the required tech in the unitinfos file should work. Did you do it as a mod or in your original file?
BTW, I tired cannons at gunpowder myself. To me, that seemed to unbalance them. The AI had armies of them running around. I now have them available at chemistry and it seems to work well.