google-code-export / gdata-python-client

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

module object has no attribute data #441

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.activate a virtualenv and install client library with setup.py install
2.run MapsExample.py

What is the expected output? What do you see instead?
expect to see MapsExample running but see:

(pinax-env)H1N1:maps ricket$ python MapsExample.py
/Users/ricket/Envs/pinax-env/lib/python2.6/site-packages/gdata/tlslite/utils/cry
ptomath.py:9: DeprecationWarning: the sha module is deprecated; use the hashlib 
module instead
  import sha
Traceback (most recent call last):
  File "MapsExample.py", line 21, in <module>
    import gdata.maps.client
  File "/Users/ricket/Envs/pinax-env/lib/python2.6/site-packages/gdata/maps/client.py", line 29, in <module>
    import gdata.maps.data
  File "/Users/ricket/Envs/pinax-env/lib/python2.6/site-packages/gdata/maps/data.py", line 78, in <module>
    class KmlContent(atom.data.Content):
AttributeError: 'module' object has no attribute 'data'

What version of the product are you using?
gdata-2.0.11

Please provide any additional information below.
I am on Mac OSX 10.6.4

Original issue reported on code.google.com by dstrijdh...@gmail.com on 1 Sep 2010 at 9:10

GoogleCodeExporter commented 9 years ago
also note: the virtualenv in question had pinax installed and pinax already 
came with gdata 1.3.3 (http://pinaxproject.com/)

Original comment by dstrijdh...@gmail.com on 1 Sep 2010 at 9:18

GoogleCodeExporter commented 9 years ago
Seems i've diagnosed my own problem as gdata runs smootly in fresh virtualenv. 
This issue can close.

Original comment by dstrijdh...@gmail.com on 2 Sep 2010 at 4:15

GoogleCodeExporter commented 9 years ago
This issue should not close after all: how to get gdata to play nice with pinax?
I will also ask this at the pinax forum. In the mean time,
I've tried with the latest version of gdata as well 1.3.3 that comes with pinax:

1. get pinax bundle from http://pinaxproject.com/download/
2. get gdata-1.3.3.tar.gz from google code
3. install pinax in virtualenv: python scripts/pinax-boot.py 
$WORKON_HOME/pinax072
4. untar gdata and run tests : (pinax072): python tests/run_data_tests.py

All tests pass except these:

Running all tests in module gdata_tests.docs_test
....EE..
======================================================================
ERROR: testToAndFromStringWithData (gdata_tests.docs_test.DocumentListEntryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/ricket/Projects/gdata-1.3.3/tests/gdata_tests/docs_test.py", line 46, in testToAndFromStringWithData
    self.assertEqual(entry.writersCanInvite.value, 'true')
AttributeError: 'NoneType' object has no attribute 'value'

======================================================================
ERROR: testConvertActualData (gdata_tests.docs_test.DocumentListFeedTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/ricket/Projects/gdata-1.3.3/tests/gdata_tests/docs_test.py", line 73, in testConvertActualData
    self.assertEqual(an_entry.writersCanInvite.value, 'true')
AttributeError: 'NoneType' object has no attribute 'value'

----------------------------------------------------------------------
Ran 8 tests in 0.019s

FAILED (errors=2)

Original comment by dstrijdh...@gmail.com on 5 Sep 2010 at 9:39

GoogleCodeExporter commented 9 years ago
Marking as closed, please update when you get a response in the pinax forum.

Original comment by joe.gregorio@gmail.com on 10 Sep 2010 at 2:25