carolinux / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 1 forks source link

Analytics account_feed_demo.py generates AttributeError #382

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run account_feed_demo.py
2. Use client login.

What is the expected output? What do you see instead?
I expect to see the account information, instead it prints some of it, and then 
dies with:

-------- Custom Variables --------
Traceback (most recent call last):
  File "./account_feed_demo.py", line 188, in <module>
    main()
  File "./account_feed_demo.py", line 39, in main
    demo.PrintCustomVarForOneEntry()
  File "./account_feed_demo.py", line 102, in PrintCustomVarForOneEntry
    if entry.custom_Variable:
AttributeError: 'AccountEntry' object has no attribute 'custom_Variable'

What version of the product are you using?
gdata 2.0.10

Please provide any additional information below.

This also happens when you comment out

  demo.PrintCustomVarForOneEntry()

as it tries later when printing entries, which generates:

-------- First 1000 Profiles in Account Feed --------
Web Property ID = UA-XXXXX-X
Account Name    = XXXX
Account Id      = XXXXX
Profile Name    = www.XXXXX.com
Profile ID      = XXXXXX
Table ID        = ga:XXXXXX
Currency        = USD
TimeZone        = America/Los_Angeles
Traceback (most recent call last):
  File "./account_feed_demo.py", line 188, in <module>
    main()
  File "./account_feed_demo.py", line 41, in main
    demo.PrintAccountEntries()
  File "./account_feed_demo.py", line 181, in PrintAccountEntries
    if entry.custom_variables:
AttributeError: 'AccountEntry' object has no attribute 'custom_variables'

Original issue reported on code.google.com by pedah...@gmail.com on 16 Jun 2010 at 8:02

GoogleCodeExporter commented 9 years ago
Thanks! W'eve fixed the issue in this change: 
http://code.google.com/p/gdata-python-client/source/detail?r=989

Sorry for the delay. You rock for using our python library. :)

Original comment by nickski1...@gmail.com on 21 Jun 2010 at 6:08