markolofsen / py_translator

The end goal is a simple application for translating text in the terminal. Text can be generated interactively or programmatically in the shell environment.

Home Page:https://pypi.org/project/py-translator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception JSONDecodeError

georgenv opened this issue · comments

Hi, I'm trying to run the basic usage example from py-translator's official page and I'm getting the following error:

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Code:

from py_translator import Translator
s = Translator().translate(text='Hello my friend', dest='es').text
print(s)

Python version: 3.5.2
py-translator 1.8.9