Open jayantanth opened 8 years ago
Asked here https://github.com/alexz-enwp/wikitools/issues/40 to the makers of wikitools library.
on the file pdf-djvu-uploader-commons.py
on line 134, the existing line is
page.edit(text=wikidata)
change this to
page.edit(text=wikidata,skipmd5=True)
run the program again and share the results.
Hope you are changing the values at the variable wikidata_part2 with relevant to your pdf files.
Hi, https://github.com/alexz-enwp/wikitools/issues/40 fixed the issues, should i re-install wiki-tools?
Sure.
Download that repo. Run "sudo python setup.py install"
This will install the latest version of wikitools.
Then run the uploader.
share the results.
2016-08-31 21:24 GMT+05:30 Jayanta Nath notifications@github.com:
Hi, alexz-enwp/wikitools#40 https://github.com/alexz-enwp/wikitools/issues/40 fixed the issues, should i re-install wiki-tools?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tshrinivasan/tools-for-wiki/issues/17#issuecomment-243810377, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNbONy1LIvsuQ8uuBm-BUDuJ_le86c4ks5qlaPMgaJpZM4JtRxC .
Regards, T.Shrinivasan
My Life with GNU/Linux : http://goinggnu.wordpress.com Free E-Magazine on Free Open Source Software in Tamil : http://kaniyam.com
Get Free Tamil Ebooks for Android, iOS, Kindle, Computer : http://FreeTamilEbooks.com
tested with page.edit(text=wikidata,skipmd5=True)
, works fine.
Logged in. Uploading the file পদ্মাপুরাণ - নারায়ণ দেব.pdf Traceback (most recent call last): File "local.py", line 140, in
upload_pdf_file(pdf_file)
File "local.py", line 132, in upload_pdf_file
page.edit(text=wikidata)
File "/usr/local/lib/python2.7/dist-packages/wikitools/page.py", line 623, in edit
result = req.query()
File "/usr/local/lib/python2.7/dist-packages/wikitools/api.py", line 165, in query
raise APIError(data['error']['code'], data['error']['info'])
wikitools.api.APIError: (u'badmd5', u'The supplied MD5 hash was incorrect')