Bug 1589 - support pre-2.7 version of python
support pre-2.7 version of python
Status: RESOLVED FIXED
Product: bake
Classification: Unclassified
Component: bake
unspecified
PC Linux
: P5 normal
Assigned To: Daniel Camara
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-19 20:41 UTC by Hajime Tazaki
Modified: 2013-04-24 20:45 UTC (History)
1 user (show)

See Also:


Attachments
patch to support pre-2.7 version of python (1.64 KB, application/octet-stream)
2013-02-19 20:41 UTC, Hajime Tazaki
Details

Note You need to log in before you can comment on or make changes to this bug.
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).