tshrinivasan / OCR4wikisource

OCR for WikiSource using Google Drive OCR
GNU General Public License v2.0
33 stars 24 forks source link

Mv command creates issue #48

Closed commonssibi closed 8 years ago

commonssibi commented 8 years ago
sibi@sibi:~/OCR4wikisource-master$ python mediawiki_uploader.py 
INFO:__main__:Running do_ocr.py 1.48
INFO:__main__:URL = https://upload.wikimedia.org/wikipedia/commons/d/dd/%E0%AE%87%E0%AE%B2%E0%AE%9F%E0%AF%8D%E0%AE%9A%E0%AE%BF%E0%AE%AF_%E0%AE%AA%E0%AF%82%E0%AE%AE%E0%AE%BF.pdf
INFO:__main__:Columns = 1
INFO:__main__:Wiki Username = Commons sibiBOT
INFO:__main__:Wiki Password = Not logging the password
INFO:__main__:Wiki Source Language Code = ta
INFO:__main__:Edit Summary = Text from Google OCR
INFO:__main__:File Name = இலட்சிய_பூமி.pdf
INFO:__main__:File Type = pdf
INFO:__main__:Original URL = https://upload.wikimedia.org/wikipedia/commons/d/dd/இலட்சிய_பூமி.pdf
INFO:__main__:Wiki URL = https://ta.wikisource.org/w/api.php
INFO:root:Login Status = True
INFO:root:

Logged in to https://ta.wikisource.org
INFO:root:Checking for bot access rights
INFO:root:The user Commons sibiBOT does not have bot access
INFO:root:
Done. Uploaded all text files to wiki source

mv: cannot stat ‘all_text_for*’: No such file or directory
mv: cannot stat ‘OCR*’: No such file or directory
mv: cannot stat ‘upload-*’: No such file or directory
mv: cannot stat ‘இலட்சிய_பூமி.pdf’: No such file or directory

I cannot understand why the mv issue is cropping up . Also not able to see the uploads done in the wikisource . https://ta.wikisource.org/wiki/%E0%AE%9A%E0%AE%BF%E0%AE%B1%E0%AE%AA%E0%AF%8D%E0%AE%AA%E0%AF%81:Contributions/Commons_sibiBOT

tshrinivasan commented 8 years ago

There is no need to run mediawiki uploader separately.

Do_ocr.py calls it automatically once it is executed successfully.

Run do_ocr alone and read the outputs.

tshrinivasan commented 8 years ago

Closing this.

comment here if any assistance is required.