# \`travis encrypt\` just prints "Code execution." and does not achieve anything

**URL:** <https://travis-ci.community/t/travis-encrypt-just-prints-code-execution-and-does-not-achieve-anything/5120>\
**Category:** Deployment\
**Created:** [September 17, 2019, 6:25pm UTC](https://travis-ci.community/t/travis-encrypt-just-prints-code-execution-and-does-not-achieve-anything/5120 "2019-09-17T18:25:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drfreund](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/drfreund/32/2717_2.png) [@drfreund](https://travis-ci.community/u/drfreund)\
**Post date:** [September 17, 2019, 6:25pm UTC](https://travis-ci.community/t/travis-encrypt-just-prints-code-execution-and-does-not-achieve-anything/5120/1 "2019-09-17T18:25:30Z")

</div>

`travis encrypt` does not change the password in .travis.yml for me –– when I run `travis encrypt`, no matter what flags or options I specify, it merely prints “Code execution.” and returns me to my normal bash prompt. I tried --com, --override, tried providing the password upfront and not providing it, but the outcome is always the same. What am I doing wrong?

travis encrypt "NotMyPassword" --add deploy.password --com --override Code execution.

---

<div class="post-metadata">

**Author:** ![drfreund](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/drfreund/32/2717_2.png) [@drfreund](https://travis-ci.community/u/drfreund)\
**Post date:** [September 17, 2019, 6:46pm UTC](https://travis-ci.community/t/travis-encrypt-just-prints-code-execution-and-does-not-achieve-anything/5120/2 "2019-09-17T18:46:59Z")

</div>

Answered my own question. I was using a wrong version of travis CLI, the correct version resides under ~/.gem/ruby/2.3.0/bin and mine was in python path for some reason.

---

<div class="post-metadata">

**Author:** ![DominiqueMakowski](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@DominiqueMakowski](https://travis-ci.community/u/DominiqueMakowski)\
**Post date:** [October 29, 2019, 8:55am UTC](https://travis-ci.community/t/travis-encrypt-just-prints-code-execution-and-does-not-achieve-anything/5120/3 "2019-10-29T08:55:22Z")

</div>

@drfreund I am having the same issue. Could you provide more info on how to resolve it? Thanks!
