carolinux / gdata-python-client

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

beginner programmer - module attributes have disappeared #512

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. running
import gdata.finance
from xml.etree import ElementTree as ET

# create account client object
client = gdata.finance.service.FinanceService()

2. fires back error
Traceback (most recent call last):
  File "<pyshell#7>", line 1, in <module>
    client = gdata.finance.service.FinanceService()
AttributeError: 'module' object has no attribute 'service'

This code did not cause this error earlier, and it seems pretty bizarre to me. 
The underlying module was changed somehow? The only thing I did differently 
before this error started being thrown was run the finance test script in the 
samples folder.

What is the expected output? What do you see instead?
I expected to be able to create a client.

What version of the product are you using?
most recent, updated it with SVN

Please provide any additional information below.

Original issue reported on code.google.com by RobertEM...@gmail.com on 14 Apr 2011 at 4:12

GoogleCodeExporter commented 9 years ago
Robert, you must use

    import gdata.finance.service

instead of

    import gdata.finance

Original comment by seriy...@gmail.com on 21 Apr 2011 at 2:36

GoogleCodeExporter commented 9 years ago

Original comment by afs...@google.com on 7 Oct 2011 at 2:51