tshrinivasan / google-ocr-python

Automation of google ocr through gdcmdtools library.
22 stars 12 forks source link

Error at gdauth.py #3

Open rajak7gmail opened 6 years ago

rajak7gmail commented 6 years ago

raja@raja-HP-Notebook:~/Downloads/Test$ gdauth.py -h client_secret_1031422630992-c5no71ptld3v8kld0fpkt0fqfu043f6j.apps.googleusercontent.com.json Traceback (most recent call last): File "/usr/local/bin/gdauth.py", line 4, in import('pkg_resources').run_script('gdcmdtools==1.7', 'gdauth.py') File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 742, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1495, in run_script raise ResolutionError("No script named %r" % script_name) pkg_resources.ResolutionError: No script named 'gdauth.py'

Im trying your OCR automation, but in stuck with gdauth stage. Please guide me how to proceed next. Regards, Raja.K

tshrinivasan commented 6 years ago

How did you get the gdauth.py?

What is your OS? version? Python version?

Follow the installation steps here. https://github.com/tienfuc/gdcmdtools

rajak7gmail commented 6 years ago

Im new to linux... I have installed gdcmd as per your video. Hope gdauth.py also included in gdcmd. Im Using Ubuntu 17.10 and Python 2.7.14

rajak7gmail commented 6 years ago

i tried again with latest link which you shared here. Im getting the same error.

tshrinivasan commented 6 years ago

https://github.com/tienfuc/gdcmdtools#api-setup

Try these commands

2018-03-22 18:28 GMT+05:30 rajak7gmail notifications@github.com:

i tried again with latest link which you shared here. Im getting the same error.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tshrinivasan/google-ocr-python/issues/3#issuecomment-375295684, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNbOAqx-dLAS94M42K9PWNMraEEazonks5tg6AIgaJpZM4S245t .

-- 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

rajak7gmail commented 6 years ago

1. sudo apt-add-repository ppa:ctf/gdcmdtools - Worked well

2. sudo apt-get update - Error E: The repository 'http://ppa.launchpad.net/ctf/gdcmdtools/ubuntu artful Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

3. sudo apt-get install python-gdcmdtools - Error E: Unable to locate package python-gdcmdtools

rajak7gmail commented 6 years ago

I tried with ubuntu 16.04 and it works like gem... Thank you for your effort and prompt response.

rajak7gmail commented 6 years ago

All is fine, but the CONVERT command is too slow and not responding for more than 200 pages pdf. How to handle it.

tshrinivasan commented 6 years ago

https://github.com/tshrinivasan/OCR4wikisource

This is great improved version. But tightly coupled with wikisource. All the outputs will be sent to wikisource.

Will modify it to suit your personal need and share in a week.

2018-03-24 22:42 GMT+05:30 rajak7gmail notifications@github.com:

All is fine, but the CONVERT command is too slow and not responding for more than 200 pages pdf. How to handle it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tshrinivasan/google-ocr-python/issues/3#issuecomment-375909082, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNbONkstB9Um8j-oOZUHPH4-TkiLIlbks5thn6MgaJpZM4S245t .

-- 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

rajak7gmail commented 6 years ago

Thank you