migscabral / gdatacopier

Automatically exported from code.google.com/p/gdatacopier
0 stars 0 forks source link

Cannot upload word document #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Latest

Please provide any additional information below.
Traceback (most recent call last):
  File "U:\dt\p\gdoc-cp.py", line 396, in <module>
    main()
  File "U:\dt\p\gdoc-cp.py", line 391, in main
    parse_user_options()
  File "U:\dt\p\gdoc-cp.py", line 348, in parse_user_options
    copy_local_to_google(local_file, document_title)
  File "U:\dt\p\gdoc-cp.py", line 185, in copy_local_to_google
    google_url = _copier.import_document(source_file, document_title)
  File "U:\dt\p\gdatacopier.py", line 345, in import_document
    entry = self._gd_client.UploadDocument(media_source, document_title)
  File "C:\apps\Python26\Lib\site-packages\gdata\docs\service.py", line
180, in UploadDocument
    return self._UploadFile(media_source, title, category)
  File "C:\apps\Python26\Lib\site-packages\gdata\docs\service.py", line
201, in _UploadFile
    extra_headers = {'Slug' : media_source.file_name })
  File "C:\apps\Python26\Lib\site-packages\gdata\service.py", line 1147, in
Post
    media_source=media_source, converter=converter)
  File "C:\apps\Python26\Lib\site-packages\gdata\service.py", line 1267, in
PostOrPut
    'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 400, 'body': 'Could not convert
document.', 'reason': 'Bad Request'}

Original issue reported on code.google.com by msr...@gmail.com on 7 Feb 2009 at 1:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
When I use this command line: python.exe gdoc-cp.py --username me@gmail.com -p 
passwrd
--import --local ..\test.doc --title "testtitle"

I get the above errors

Original comment by msr...@gmail.com on 7 Feb 2009 at 4:59

GoogleCodeExporter commented 9 years ago
Are these the new MSWord docx format?

Original comment by devraj on 7 Feb 2009 at 10:43

GoogleCodeExporter commented 9 years ago
No it MSWord 2003. Also, when I try to upload an html file, I simply get:
Error: Unable to import content of type .html to Google
Here is the full output:

c:\apps\Python26\lib\site-packages\gdata\tlslite\utils\cryptomath.py:9:
DeprecationWarning: the sha module is deprecated; use the hashlib module
 instead
  import sha
gdoc-cp.py version 1.0.2, bi-directional copy utility for Google documents & 
spreadsheets
Distributed under the GNU/GPL v2, at <http://code.google.com/p/gdatacopier/>
Written by Devraj Mukherjee, Copyright (c) De Bortoli Wines
<http://www.debortoli.com.au/>

Logging into Google authentication server as me@gmail.com ... done
Caching a list of documents and spreadsheets ... done

Error: Unable to import content of type .html to Google

U:\dt\p\gdatacopier-1.0.2>

Original comment by msr...@gmail.com on 7 Feb 2009 at 11:42

GoogleCodeExporter commented 9 years ago

Original comment by devraj on 15 Sep 2009 at 1:19