'unicode' does not have the buffer interface

Bug #1325514 reported by Abhijeet Jain
52
This bug affects 13 people
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
Fix Released
Undecided
Unassigned

Bug Description

Due to new setuptools release we might have problems in all OpenStack projects - new_setuptools + python 2.x + pbr == big problem

2014-06-02 07:51:24.673 | + sudo PIP_DOWNLOAD_CACHE=/var/cache/pip http_proxy= https_proxy= no_proxy= /usr/local/bin/pip install --build=/tmp/pip-build.zyNKF /opt/stack/new/pycadf
2014-06-02 07:51:25.000 | DEPRECATION: --no-install, --no-download, --build, and --no-clean are deprecated. See https://github.com/pypa/pip/issues/906.
2014-06-02 07:51:25.039 | Unpacking /opt/stack/new/pycadf
2014-06-02 07:51:25.039 | Running setup.py (path:/tmp/pip-jYQO4H-build/setup.py) egg_info for package from file:///opt/stack/new/pycadf
2014-06-02 07:51:25.541 | Traceback (most recent call last):
2014-06-02 07:51:25.579 | File "<string>", line 17, in <module>
2014-06-02 07:51:25.580 | File "/tmp/pip-jYQO4H-build/setup.py", line 30, in <module>
2014-06-02 07:51:25.580 | pbr=True)
2014-06-02 07:51:25.580 | File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
2014-06-02 07:51:25.580 | dist.run_commands()
2014-06-02 07:51:25.580 | File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
2014-06-02 07:51:25.580 | self.run_command(cmd)
2014-06-02 07:51:25.581 | File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
2014-06-02 07:51:25.581 | cmd_obj.run()
2014-06-02 07:51:25.581 | File "<string>", line 14, in replacement_run
2014-06-02 07:51:25.581 | File "/usr/local/lib/python2.7/dist-packages/setuptools/command/egg_info.py", line 368, in write_requirements
2014-06-02 07:51:25.581 | _write_requirements(data, dist.install_requires)
2014-06-02 07:51:25.581 | File "/usr/local/lib/python2.7/dist-packages/setuptools/command/egg_info.py", line 363, in _write_requirements
2014-06-02 07:51:25.582 | stream.writelines(lines)
2014-06-02 07:51:25.582 | TypeError: 'unicode' does not have the buffer interface
2014-06-02 07:51:25.637 | Complete output from command python setup.py egg_info:
2014-06-02 07:51:25.661 | running egg_info
2014-06-02 07:51:25.662 |
2014-06-02 07:51:25.662 | creating pip-egg-info/pycadf.egg-info
2014-06-02 07:51:25.662 |
2014-06-02 07:51:25.662 | Traceback (most recent call last):
2014-06-02 07:51:25.662 |
2014-06-02 07:51:25.662 | File "<string>", line 17, in <module>
2014-06-02 07:51:25.662 |
2014-06-02 07:51:25.662 | File "/tmp/pip-jYQO4H-build/setup.py", line 30, in <module>
2014-06-02 07:51:25.662 |
2014-06-02 07:51:25.662 | pbr=True)
2014-06-02 07:51:25.662 |
2014-06-02 07:51:25.662 | File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
2014-06-02 07:51:25.663 |
2014-06-02 07:51:25.663 | dist.run_commands()
2014-06-02 07:51:25.663 |
2014-06-02 07:51:25.663 | File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
2014-06-02 07:51:25.663 |
2014-06-02 07:51:25.663 | self.run_command(cmd)
2014-06-02 07:51:25.663 |
2014-06-02 07:51:25.663 | File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
2014-06-02 07:51:25.663 |
2014-06-02 07:51:25.663 | cmd_obj.run()
2014-06-02 07:51:25.663 |
2014-06-02 07:51:25.663 | File "<string>", line 14, in replacement_run
2014-06-02 07:51:25.664 |
2014-06-02 07:51:25.664 | File "/usr/local/lib/python2.7/dist-packages/setuptools/command/egg_info.py", line 368, in write_requirements
2014-06-02 07:51:25.664 |
2014-06-02 07:51:25.664 | _write_requirements(data, dist.install_requires)
2014-06-02 07:51:25.664 |
2014-06-02 07:51:25.664 | File "/usr/local/lib/python2.7/dist-packages/setuptools/command/egg_info.py", line 363, in _write_requirements
2014-06-02 07:51:25.664 |
2014-06-02 07:51:25.664 | stream.writelines(lines)
2014-06-02 07:51:25.664 |
2014-06-02 07:51:25.664 | TypeError: 'unicode' does not have the buffer interface
2014-06-02 07:51:25.664 |
2014-06-02 07:51:25.665 | ----------------------------------------

For more details :
http://logs.openstack.org/10/87910/5/check/check-grenade-dsvm/6e093ba/console.html#_2014-06-02_07_51_25_662

Revision history for this message
Pavlo Shchelokovskyy (pshchelo) wrote :

I'm seeing the same but for python-keystoneclient

2014-06-02 10:23:37.803 | creating python_keystoneclient.egg-info
2014-06-02 10:23:37.803 |
2014-06-02 10:23:37.803 | Traceback (most recent call last):
2014-06-02 10:23:37.803 |
2014-06-02 10:23:37.803 | File "<string>", line 17, in <module>
2014-06-02 10:23:37.803 |
2014-06-02 10:23:37.804 | File "/opt/stack/new/python-keystoneclient/setup.py", line 30, in <module>
2014-06-02 10:23:37.804 |
2014-06-02 10:23:37.804 | pbr=True)
2014-06-02 10:23:37.804 |
2014-06-02 10:23:37.804 | File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
2014-06-02 10:23:37.804 |
2014-06-02 10:23:37.804 | dist.run_commands()
2014-06-02 10:23:37.804 |
2014-06-02 10:23:37.804 | File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
2014-06-02 10:23:37.804 |
2014-06-02 10:23:37.804 | self.run_command(cmd)
2014-06-02 10:23:37.804 |
2014-06-02 10:23:37.805 | File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
2014-06-02 10:23:37.805 |
2014-06-02 10:23:37.805 | cmd_obj.run()
2014-06-02 10:23:37.805 |
2014-06-02 10:23:37.805 | File "<string>", line 14, in replacement_run
2014-06-02 10:23:37.805 |
2014-06-02 10:23:37.805 | File "/usr/local/lib/python2.7/dist-packages/setuptools/command/egg_info.py", line 368, in write_requirements
2014-06-02 10:23:37.805 |
2014-06-02 10:23:37.805 | _write_requirements(data, dist.install_requires)
2014-06-02 10:23:37.805 |
2014-06-02 10:23:37.805 | File "/usr/local/lib/python2.7/dist-packages/setuptools/command/egg_info.py", line 363, in _write_requirements
2014-06-02 10:23:37.806 |
2014-06-02 10:23:37.806 | stream.writelines(lines)
2014-06-02 10:23:37.806 |
2014-06-02 10:23:37.806 | TypeError: 'unicode' does not have the buffer interface
2014-06-02 10:23:37.806 |
2014-06-02 10:23:37.806 | ----------------------------------------
2014-06-02 10:23:37.806 | Cleaning up...
2014-06-02 10:23:37.807 | Command python setup.py egg_info failed with error code 1 in /opt/stack/new/python-keystoneclient

more info: http://logs.openstack.org/29/96129/6/check/check-grenade-dsvm/d3b764e/console.html

Revision history for this message
Andrey Pavlov (apavlov-e) wrote :
Revision history for this message
Dina Belova (dbelova) wrote :

The same for some of the the ceilometer Jenkins jobs failings - in the https://review.openstack.org/#/c/97176/ and https://review.openstack.org/#/c/96781/ at least

Revision history for this message
Dina Belova (dbelova) wrote :

New setuptools release is the problem - it's everywhere

Revision history for this message
Dina Belova (dbelova) wrote :

here is the link to one of the discussions about this issue: https://bitbucket.org/pypa/setuptools/issue/213/regression-setuptools-37-installation

description: updated
Sean Dague (sdague)
no longer affects: ceilometer
no longer affects: python-keystoneclient
no longer affects: tempest
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to elastic-recheck (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/97221

ruhe (ruhe)
no longer affects: murano
Changed in openstack-ci:
milestone: none → juno
Revision history for this message
Alex Gaynor (alex-gaynor) wrote :

Bug has been fixed upstream: https://bitbucket.org/pypa/setuptools/issue/213/newest-setuptools-breaks-installation-of we need to make sure we have the latest (4.0.1) setuptools and everything should be golden.

Changed in openstack-ci:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to elastic-recheck (master)

Reviewed: https://review.openstack.org/97221
Committed: https://git.openstack.org/cgit/openstack-infra/elastic-recheck/commit/?id=09bbc594f3c9dd9edcd1c93f44428a2f34c1a68d
Submitter: Jenkins
Branch: master

commit 09bbc594f3c9dd9edcd1c93f44428a2f34c1a68d
Author: Sean Dague <email address hidden>
Date: Mon Jun 2 08:40:11 2014 -0400

    added bug for setuptools 3.7 breaking the world

    Change-Id: Iee923bcd05f0435e46dc7f119d1ad63bab815c38
    Related-Bug: #1325514

description: updated
Revision history for this message
James Polley (tchaypo) wrote :

I've updated this to "fix releaseD" as 3.7.1/4.0.1 seem to fix the problem.

Changed in openstack-ci:
status: In Progress → Fix Released
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.