#2 pypp_api: no function_t attribute causes Attribute error

closed
Roman
None
5
2006-11-08
2006-05-24
Anonymous
No

File:
experimental/pypp_api.py

when:
Wrapping THE boost hello world example with the
exprimental pypp_api, after creating mb, and exposing
the classes, members and the msg var, writing the file
failed (at line 411),
Reason:
the sanity check can't be done becauses code_creators
has no function_t attribute:

AttributeError: 'module' object has no attribute
'function_t'

This is the solution:
if not hasattr(code_creators, "function_t"):
print "Warning: Sanity Check Failed... no
functions to check."
fmfunctions = []
else:
fmfunctions = filter(lambda creator:
isinstance(creator, code_creators.function_t), creators)

Thank You!

René Molenaar

Discussion

  • Roman

    Roman - 2006-05-30

    Logged In: YES
    user_id=1084190

    Hi Rene. Thank you for bug reporting. You are trying to use
    api from expiremental folder. This is a mistake. Probably,
    I should remove that folder. It could be nice if you can
    subscribe to the mailing list, so I could help you to
    start with pyplusplus. Next link will take you to subscribe
    page:
    https://lists.sourceforge.net/lists/listinfo/pygccxml-development

     
  • Roman

    Roman - 2006-05-30
    • status: open --> closed
     
  • Roman

    Roman - 2006-11-08
    • assigned_to: nobody --> roman_yakovenko
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks