Setup fails on Windows due to changes in neutron/hooks.py

Bug #1212385 reported by Alessandro Pilotti
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Alessandro Pilotti

Bug Description

"python setup.py install" fails on Windows with:

  File "C:\Python27_HyperVNovaCompute\lib\site-packages\pbr\util.py", line 230, in cfg_to_args
    hook_fn(config)
  File "C:\OpenStack\neutron\neutron\hooks.py", line 25, in setup_hook
    requires = metadata.get('requires_dist', list()).split('\n')
AttributeError: 'list' object has no attribute 'split'

See:

https://github.com/openstack/neutron/blob/ee3fe4e836ca1c81e50a8324a9b5f982de4fa97f/neutron/hooks.py#L25

It is most probably related to changes introduced by pbr

Tags: hyperv
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/42170

Changed in neutron:
assignee: nobody → Alessandro Pilotti (alexpilotti)
status: New → In Progress
Changed in neutron:
importance: Undecided → High
milestone: none → havana-3
tags: added: hyperv
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/42170
Committed: http://github.com/openstack/neutron/commit/e1165ce1180bba1a11098cfacfe3c722a084dbcf
Submitter: Jenkins
Branch: master

commit e1165ce1180bba1a11098cfacfe3c722a084dbcf
Author: alexpilotti <email address hidden>
Date: Thu Aug 15 19:49:31 2013 +0300

    Fixes Windows setup dependency bug

    Fixes bug: #1212385

    The neutron project includes a setup hook that allows to dinamically
    include setup dependencies.

    Due to recent changes in the pbr project, the hook raises an exception
    on Windows, which ends the setup process.

    This fix solves the issue by adapting the hook to the recent pbr changes.

    Change-Id: I4b00d74d23a7167a10ba86458943ff16ca51b0db

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-3 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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