Karma's a b*tch.
In order to get a valid Canadian work permit, you must apply from your home country.