Bug 1589

Summary: support pre-2.7 version of python
Product: bake Reporter: Hajime Tazaki <tazaki>
Component: bakeAssignee: Daniel Camara <daniel.camara>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P5    
Version: unspecified   
Hardware: PC   
OS: Linux   
Attachments: patch to support pre-2.7 version of python

Description Hajime Tazaki 2013-02-19 20:41:12 UTC
Created attachment 1514 [details]
patch to support pre-2.7 version of python

based on the following revision:

 http://code.nsnam.org/bake
 changeset:   144:70644974b31b

on my ubuntu 10.04, bake failed as follows.

% ./bake.py show                     
Traceback (most recent call last):
  File "./bake.py", line 8, in <module>
    import bake
  File "/home/tazaki/tmp/bake-merge/bake/bake/__init__.py", line 2, in <module>
    from bake.Bake import Bake
  File "/home/tazaki/tmp/bake-merge/bake/bake/Bake.py", line 10, in <module>
    from xml.etree.ElementTree import ParseError
ImportError: cannot import name ParseError

% python -V
Python 2.6.5

attached patch is derived from the following code.
https://github.com/openstack/nova/commit/b6ae26ba279246d1b9e32b8665316a47847147ce
Comment 1 Daniel Camara 2013-03-05 09:52:05 UTC
Patch applied but it is not enough to provide compatibility. Needs further discussions.
Comment 2 Hajime Tazaki 2013-03-12 22:38:35 UTC
(In reply to comment #1)
> Patch applied but it is not enough to provide compatibility. Needs further
> discussions.

Confirmed to be solved in Ubuntu 10.04 (python 2.6.5).