tshrinivasan / tools-for-wiki

Tools required for wiki projects
6 stars 9 forks source link

Unable to upload above 100mb file by pdf-djvu-uploader-commons.py #18

Open tha-uzhavan opened 8 years ago

tha-uzhavan commented 8 years ago

tools-for-wiki/pdf-upload-commons/pdf-djvu-uploader-commons.py The following error comes while uploading above 100 mb size file.

`info-farmer-lm17mate@64bit-Lenovo-Flex-2-14 ~/Desktop/பதிவேற்றுக $ python 8-pdf-djvu-uploader-commons.py
Logged in.
Uploading the file இதயத்தின் கட்டளை-தமிழாக்கம்.pdf
Traceback (most recent call last):
  File "8-pdf-djvu-uploader-commons.py", line 142, in 
    upload_pdf_file(pdf_file)
  File "8-pdf-djvu-uploader-commons.py", line 84, in upload_pdf_file
    pdf.upload(fileobj=file_object,comment=caption, ignorewarnings=True)
  File "/usr/local/lib/python2.7/dist-packages/wikitools/wikifile.py", line 240, in upload
    res = req.query()
  File "/usr/local/lib/python2.7/dist-packages/wikitools/api.py", line 158, in query
    rawdata = self.__getRaw()
  File "/usr/local/lib/python2.7/dist-packages/wikitools/api.py", line 265, in __getRaw
    data = self.opener.open(self.request)
  File "/usr/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
    raise URLError(err)
urllib2.URLError: 
info-farmer-lm17mate@64bit-Lenovo-Flex-2-14 ~/Desktop/பதிவேற்றுக $ 
`