# ImportError: No module named six.moves

**URL:** <https://forum.ansible.com/t/importerror-no-module-named-six-moves/18265>\
**Category:** Ansible Project\
**Created:** [May 19, 2015, 10:06pm UTC](https://forum.ansible.com/t/importerror-no-module-named-six-moves/18265 "2015-05-19T22:06:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_Attwood](https://avatars.discourse-cdn.com/v4/letter/w/f9ae1b/32.png) [@William\_Attwood](https://forum.ansible.com/u/William_Attwood)\
**Post date:** [May 19, 2015, 10:06pm UTC](https://forum.ansible.com/t/importerror-no-module-named-six-moves/18265/1 "2015-05-19T22:06:37Z")

</div>

Running Ansible 1.9.1 and Vagrant 1.7.2. Recently, without code changes, and with software version updates, every job .yml file when doing a vagrant provision resulted in:

stderr: Traceback (most recent call last):  
File “/bin/jenkins-jobs”, line 6, in   
from jenkins\_jobs.cmd import main  
File “/usr/lib/python2.7/site-packages/jenkins\_jobs/cmd.py”, line 17, in   
from six.moves import configparser, StringIO  
ImportError: No module named six.moves

This will repeat for every job .yml file. If I go into the machine it is failing on, and pip install six, it then starts to fail on the jenkins module, and so on and so forth.

---

<div class="post-metadata">

**Author:** ![Toshio\_Kuratomi](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Post date:** [May 21, 2015, 4:19am UTC](https://forum.ansible.com/t/importerror-no-module-named-six-moves/18265/2 "2015-05-21T04:19:37Z")

</div>

Hmm… how does ansible figure into this? Looking at the traceback it seems like the jenkins-job tool is somehow miss-installed (it’s not finding its required libraries).

-Toshio

---

<div class="post-metadata">

**Author:** ![William\_Attwood](https://avatars.discourse-cdn.com/v4/letter/w/f9ae1b/32.png) [@William\_Attwood](https://forum.ansible.com/u/William_Attwood)\
**Post date:** [May 27, 2015, 5:02pm UTC](https://forum.ansible.com/t/importerror-no-module-named-six-moves/18265/3 "2015-05-27T17:02:26Z")

</div>

Nothing changed in the Ansible code for this deploy, however, the installation for job builder is breaking. It’s only after Ansible and/or Vagrant were upgraded:

---

<div class="post-metadata">

**Author:** ![William\_Attwood](https://avatars.discourse-cdn.com/v4/letter/w/f9ae1b/32.png) [@William\_Attwood](https://forum.ansible.com/u/William_Attwood)\
**Post date:** [May 27, 2015, 6:46pm UTC](https://forum.ansible.com/t/importerror-no-module-named-six-moves/18265/4 "2015-05-27T18:46:08Z")

</div>

Seems pip went from 6.1.1 to 7.0.1. Working on resolving issues.

---

<div class="post-metadata">

**Author:** ![Simon\_Forsberg](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Simon\_Forsberg](https://forum.ansible.com/u/Simon_Forsberg)\
**Post date:** [June 8, 2015, 11:58am UTC](https://forum.ansible.com/t/importerror-no-module-named-six-moves/18265/5 "2015-06-08T11:58:44Z")

</div>

Hello,

I’m having the exact same issue. Havent done any changes.

Did you come up with a solution?

Thanks,  
Simon

---

<div class="post-metadata">

**Author:** ![William\_Attwood](https://avatars.discourse-cdn.com/v4/letter/w/f9ae1b/32.png) [@William\_Attwood](https://forum.ansible.com/u/William_Attwood)\
**Post date:** [June 8, 2015, 3:45pm UTC](https://forum.ansible.com/t/importerror-no-module-named-six-moves/18265/6 "2015-06-08T15:45:15Z")

</div>

Turns out this is a problem with the python module and jenkins job builder. We had to manually run the requirements to have it pull them in after job builder tasks were completed.

name: install jenkins-job-builder dependencies

command: pip install -r requirements.txt

**WILLIAM A. |** Tooling – DevOps | ext. 5494
