jenkins-job-builder does not work with python-six-1.3.0 from RHEL7

Bug #1381403 reported by 7hR1x
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
New
Undecided
Unassigned
Python Jenkins
Fix Released
Undecided
Sorin Sbarnea

Bug Description

jenkins-job-builder should require specific python-six version because it does not work with python-six comming with RHEL7:

jenkins-jobs --conf xyz.ini --ignore-cache update <path_to_files>/ci-opts-projex/jobs/
 Traceback (most recent call last):
   File "/usr/bin/jenkins-jobs", line 6, in <module>
    from jenkins_jobs.cmd import main
   File "/usr/lib/python2.7/site-packages/jenkins_jobs/cmd.py", line 24, in <module>
     from jenkins_jobs.builder import Builder
   File "/usr/lib/python2.7/site-packages/jenkins_jobs/builder.py", line 27, in <module>
     import jenkins
   File "/usr/lib/python2.7/site-packages/jenkins/__init__.py", line 52, in <module>
    from six.moves.http_client import BadStatusLine
 ImportError: No module named http_client
# rpm -q python python-six
python-2.7.5-16.el7.x86_64
python-six-1.3.0-4.el7.noarch

Revision history for this message
Martin Th. Fei (nimoth) wrote :

I am running Mac OS X 10.10.2 with Python 2.7.6 preinstalled and this bug also affects me. Previously six 1.4.1 was installed. I upgraded to six 1.9.0 but the same error appears.

Which version of six works? Then at least that can be used as a workaround.

Revision history for this message
Taylor Brown (browtayl) wrote :

Running Mac OS X 10.10.3 with Python 2.7.6. I have installed every version of six from 1.0.0 to 1.9.0 using pip with the same results.

Revision history for this message
Ken Dreyer (ktdreyer) wrote :

python-six 1.3 will be supported with the patch under review at https://review.openstack.org/179826

Sorin Sbarnea (ssbarnea)
Changed in python-jenkins:
assignee: nobody → Sorin Sbârnea (sorin-sbarnea)
Changed in openstack-ci:
assignee: nobody → Sorin Sbârnea (sorin-sbarnea)
Changed in python-jenkins:
status: New → Invalid
Sorin Sbarnea (ssbarnea)
Changed in python-jenkins:
status: Invalid → Fix Released
Changed in openstack-ci:
assignee: Sorin Sbarnea (ssbarnea) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.