python23

Dan Williams dcbw at redhat.com
Mon Dec 17 09:39:03 PST 2012


On Mon, 2012-12-17 at 11:46 -0500, Shawn J. Goff wrote:
> qmi-codegen produces lots of python2/3 problems like this:
> 
> Traceback (most recent call last):
>      message = Message(object_dictionary, common_objects_dictionary)
>    File "../../build-aux/qmi-codegen/qmi-codegen", line 97, in <module>
>      message_list = MessageList(object_list_json, common_object_list_json)
>    File 
> "/home/shawn/projects/all-projects/fx/buildroot-fresh/output/build/libqmi-1.0.0/build-aux/qmi-codegen/Message.py", 
> line 56, in __init__
>    File 
> "/home/shawn/projects/all-projects/fx/buildroot-fresh/output/build/libqmi-1.0.0/build-aux/qmi-codegen/MessageList.py", 
> line 46, in __init__
>      message = Message(object_dictionary, common_objects_dictionary)
>    File 
> "/home/shawn/projects/all-projects/fx/buildroot-fresh/output/build/libqmi-1.0.0/build-aux/qmi-codegen/Message.py", 
> line 56, in __init__
>      self.id_enum_name = 
> string.upper(utils.build_underscore_name(self.fullname))
> AttributeError: 'module' object has no attribute 'upper'

Can you give the 'python3' branch a shot and we'll work on fixing stuff
up there?  That should fix all the relevant upper/lower calls to start
with.

Dan



More information about the libqmi-devel mailing list