Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Translate Python Script Attribute Error #130

Closed
jed49 opened this issue Jun 29, 2016 · 1 comment
Closed

Google Translate Python Script Attribute Error #130

jed49 opened this issue Jun 29, 2016 · 1 comment

Comments

@jed49
Copy link

jed49 commented Jun 29, 2016

Sorry to add yet another issue, but I have been trying find out why I can't get the
translate function to work.

I ran the google_translate script in the terminal using the command:
python2 google_translate.py work.

I received the following error:

Traceback (most recent call last):
File "google_translate.py", line 53 in
if 'dict' in get_page.keys() and 'entry' in get_page['dict'][0]:
AttributeError: 'unicode' object has no attribute 'keys'

Could I be missing any source files? I installed mutate from
source so I'm not sure if I'm missing anything. I followed all the
instructions exactly as they are posted on the <>Code page.

Thanks,
Josue.

@jed49
Copy link
Author

jed49 commented Jun 29, 2016

NVM, guys. I realized that the install contained an old version of the google_translate script. I manually updated it.

@jed49 jed49 closed this as completed Jun 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant