Public bug reported:

Hi,

trying to play with python-gdata, I was experiencing problems uploading
documents. I stopped looking at my own code and tried to start from
scratch looking at the examples. But... docs_examples.py is raising
exactly the same error as my code:

Document List Sample
1) List your documents.
2) Search your documents.
3) Upload a document.
4) Download a document.
5) List a document's permissions.
6) Add/change a document's permissions.
7) Exit.

> 1
Retrieve (all/document/folder/presentation/spreadsheet/pdf): 
Enter a category: all
Traceback (most recent call last):
  File "docs_example.py", line 347, in <module>
    main()
  File "docs_example.py", line 343, in main
    sample.Run()
  File "docs_example.py", line 291, in Run
    self._ListDocuments()
  File "docs_example.py", line 177, in _ListDocuments
    feed = self.gd_client.GetDocumentListFeed()
  File "/usr/lib/pymodules/python2.6/gdata/docs/service.py", line 252, in 
GetDocumentListFeed
    return self.QueryDocumentListFeed(uri)
  File "/usr/lib/pymodules/python2.6/gdata/docs/service.py", line 231, in 
QueryDocumentListFeed
    return self.Get(uri, converter=gdata.docs.DocumentListFeedFromString)
  File "/usr/lib/pymodules/python2.6/gdata/service.py", line 1068, in Get
    return converter(result_body)
  File "/usr/lib/pymodules/python2.6/gdata/docs/__init__.py", line 245, in 
DocumentListFeedFromString
    return atom.CreateClassFromXMLString(DocumentListFeed, xml_string)
  File "/usr/lib/pymodules/python2.6/atom/__init__.py", line 92, in 
optional_warn_function
    return f(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/atom/__init__.py", line 126, in 
CreateClassFromXMLString
    tree = ElementTree.fromstring(xml_string)
  File "<string>", line 85, in XML
SyntaxError: syntax error: line 1, column 54

2 conclusions so far:

    - nothing to do with my code
    - nothing to do with upload

I googled a bit but did not find anything

Jean-Philippe

** Affects: gdata (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/702460

Title:
  docs_example.py does not work

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to