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

I got an error (python3.6/macos) #25

Closed
PatchLion opened this issue May 23, 2017 · 2 comments
Closed

I got an error (python3.6/macos) #25

PatchLion opened this issue May 23, 2017 · 2 comments

Comments

@PatchLion
Copy link

:( emoji in a sentence. (e.g.) "Great app for styling photo's 👍"

File "", line 1, in
File "/Users/fotor-desktop/anaconda/lib/python3.6/site-packages/googletrans/client.py", line 118, in translate
translated = self.translate(item, dest=dest, src=src)
File "/Users/fotor-desktop/anaconda/lib/python3.6/site-packages/googletrans/client.py", line 123, in translate
data = self._translate(text, dest, src)
File "/Users/fotor-desktop/anaconda/lib/python3.6/site-packages/googletrans/client.py", line 75, in _translate
data = utils.format_json(r.text)
File "/Users/fotor-desktop/anaconda/lib/python3.6/site-packages/googletrans/utils.py", line 51, in format_json
converted = json.loads(text)
File "/Users/fotor-desktop/anaconda/lib/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/Users/fotor-desktop/anaconda/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/fotor-desktop/anaconda/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None

@PatchLion PatchLion changed the title I got a error (python3.6/macos) I got an error (python3.6/macos) May 24, 2017
@vvtommy
Copy link

vvtommy commented Sep 9, 2017

+1

@ssut
Copy link
Owner

ssut commented Sep 9, 2017

@PatchLion @vvtommy I have been trying to fix this problem with no lucks. This has been a known issue for ages (like #20, #21), but it is very hard to determine where caused the token to be invalid, so I believe this might turn out quite hard to fix.

@ssut ssut added the bug label Sep 9, 2017
@ssut ssut added this to the Refactor googletrans milestone Oct 1, 2017
@ssut ssut closed this as completed Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants