ImportError-No module named six

Issue

When I try to verify the configuration of my PSE Cluster with “cje verify”, I see this error:

Unhandled error rendering template: Traceback (most recent call last):
  File "/Users/inifc/Applications/pse_1.2.1/bin/dna", line 13, in <module>
    import dna
  File "/Users/inifc/Applications/pse_1.2.1/lib/site-packages/dna/__init__.py", line 46, in <module>
    from dna import *
  File "/Users/inifc/Applications/pse_1.2.1/lib/site-packages/dna/volumes_analyze.py", line 4, in <module>
    from dna.ec2_env import VOLUMES_SECTION_NAME
  File "/Users/inifc/Applications/pse_1.2.1/lib/site-packages/dna/ec2_env.py", line 9, in <module>
    import boto3
  File "/Users/inifc/Applications/pse_1.2.1/lib/site-packages/boto3/__init__.py", line 16, in <module>
    from boto3.session import Session
  File "/Users/inifc/Applications/pse_1.2.1/lib/site-packages/boto3/session.py", line 17, in <module>
    import botocore.session
  File "/Users/inifc/Applications/pse_1.2.1/lib/site-packages/botocore/session.py", line 25, in <module>
    import botocore.configloader
  File "/Users/inifc/Applications/pse_1.2.1/lib/site-packages/botocore/configloader.py", line 18, in <module>
    from six.moves import configparser
ImportError: No module named six.moves

Environment

  • CloudBees Jenkins Enterprise (CJE) 1.2.1

Resolution

You need to install “six” module in python, you could use one of these commands

easy_install six

or

pip install six
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.