beguile

- To charm or enchant someone, sometimes in a deceptive way.

... Jim really didn’t like sitting at a desk and programming, and sometimes he suspected that he chose to be a programmer because he had been beguiled by the hope of becoming a rich entrepreneur.